gh-6 Found coil for overpressure (3) by experimenting, fix HA status logic
This commit is contained in:
parent
b1aa71e5c7
commit
1759dabbca
|
@ -1,7 +1,7 @@
|
||||||
0;COIL_STOP;Stop the machine
|
0;COIL_STOP;Stop the machine
|
||||||
1;COIL_AWAY;Set the machine to away mode
|
1;COIL_AWAY;Set the machine to away mode
|
||||||
2;COIL_AWAYL;Set the machine to away long mode
|
2;COIL_AWAYL;Set the machine to away long mode
|
||||||
3;-;-
|
3;COIL_OVERPR;Set the machine to overpressure mode
|
||||||
4;-;-
|
4;-;-
|
||||||
5;-;-
|
5;-;-
|
||||||
6;COIL_MAX_H;Force the machine to heat at maximum effect.
|
6;COIL_MAX_H;Force the machine to heat at maximum effect.
|
||||||
|
|
|
|
@ -290,9 +290,8 @@ func (p *PingvinKL) populateStatus() {
|
||||||
func parseStatus(value int) string {
|
func parseStatus(value int) string {
|
||||||
val := int16(value)
|
val := int16(value)
|
||||||
pingvinStatuses := []string{
|
pingvinStatuses := []string{
|
||||||
"Normal",
|
|
||||||
"Max heating",
|
|
||||||
"Max cooling",
|
"Max cooling",
|
||||||
|
"Max heating",
|
||||||
"Stopped by alarm",
|
"Stopped by alarm",
|
||||||
"Stopped by user",
|
"Stopped by user",
|
||||||
"Away",
|
"Away",
|
||||||
|
@ -308,7 +307,7 @@ func parseStatus(value int) string {
|
||||||
"Summer night cooling",
|
"Summer night cooling",
|
||||||
"HRC defrost",
|
"HRC defrost",
|
||||||
}
|
}
|
||||||
for i := 1; i <= 16; i++ {
|
for i := 0; i < 15; i++ {
|
||||||
if val>>i&0x1 == 1 {
|
if val>>i&0x1 == 1 {
|
||||||
return pingvinStatuses[i]
|
return pingvinStatuses[i]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue