From 6831ede562333c793e99063185a7f19e8663abae Mon Sep 17 00:00:00 2001 From: bkbartk Date: Tue, 1 Oct 2024 19:58:36 +0200 Subject: [PATCH] fix for statusses fix for statusses --- heatpump.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/heatpump.yaml b/heatpump.yaml index 5d1e600..e2322e6 100644 --- a/heatpump.yaml +++ b/heatpump.yaml @@ -2906,14 +2906,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