Skip to content

Commit

Permalink
Merge pull request #39 from bkbartk/bkbartk-status-fix
Browse files Browse the repository at this point in the history
fix for statusses
  • Loading branch information
Mosibi authored Oct 4, 2024
2 parents 7ffa0b0 + 6831ede commit 1e1682e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions heatpump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2902,14 +2902,15 @@ text_sensor:
return {"Defrosting"};
} else if (id(${devicename}_load_output_sv1).state) {
return {"DHW"};
} else if (id(${devicename}_status_bit_1_heating_mode_set_by_room_thermostat).state
|| id(${devicename}_power_floor_heating_zone_1).state) {
return {"Heating"};
} else if (id(${devicename}_status_bit_1_cooling_mode_set_by_room_thermostat).state
|| id(${devicename}_power_air_conditioner_zone_1).state
|| id(${devicename}_power_air_conditioner_zone_2).state) {
return {"Cooling"};
} else {
if (id(${devicename}_status_bit_1_heating_mode_set_by_room_thermostat).state) {
return {"Heating"};
} else if (id(${devicename}_status_bit_1_cooling_mode_set_by_room_thermostat).state) {
return {"Cooling"};
} else {
return {"Unknown"};
}
return {"Unknown"};
}
} else {
// The heat pump is off
Expand Down

0 comments on commit 1e1682e

Please sign in to comment.