From d8e604d64d0ca00c7dfd48ddc021cadfc098aa46 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 3 Nov 2026 19:19:48 +0100 Subject: [PATCH] Heatpump now works during the winter as well --- apps/global/heating.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/global/heating.yaml b/apps/global/heating.yaml index 1bb7891..6823da8 100644 --- a/apps/global/heating.yaml +++ b/apps/global/heating.yaml @@ -5,7 +5,9 @@ heating_sensors: sensors: binary_sensor.heatpump_winter_mode: - trigger_conditions: false #sensor.month >= 10 or sensor.month <= 4 + local_expressions: + temp_threshold: "self ? 20 : 15" + trigger_conditions: sensor.min_temp_outside < temp_threshold value_selector.target_temperature_heatpump: attributes: unit_of_measurement: °C @@ -14,7 +16,7 @@ heating_sensors: values: winter_mode: conditions: binary_sensor.heatpump_winter_mode - value: 18 + value: input_number.heatpump_temperature_winter default: conditions: True value: input_number.heatpump_temperature @@ -31,10 +33,11 @@ smart_heating_templates_library: trigger_conditions: - "not binary_sensor.heatpump_winter_mode and (ext_temperature >= room_temperature or ext_temperature >= target_temperature or cant_open_window) and room_temperature >= (quick_resume ? target_temperature : (target_temperature + temp_threshold))" - not binary_sensor.heatpump_winter_mode and self and (ext_temperature >= target_temperature or cant_open_window) - - binary_sensor.heatpump_winter_mode and room_temperature <= (target_temperature - 1) and ext_temperature <= 10 - - binary_sensor.heatpump_winter_mode and self and room_temperature < target_temperature + - binary_sensor.heatpump_winter_mode and room_temperature < target_temperature and ext_temperature <= target_temperature + - binary_sensor.heatpump_winter_mode and self and room_temperature < target_temperature + 1 blocking_conditions: - binary_sensor.is_everybody_sleeping and not sleeping_in_the_room and not stay_on_while_sleeping + - binary_sensor.is_everybody_sleeping and binary_sensor.heatpump_winter_mode - not room_occupancy and not (sleeping_in_the_room or (occupied_tonight and binary_sensor.day_interval_night)) - not binary_sensor.someone_home - window_open @@ -147,7 +150,7 @@ living_room_heatpump: constants: window_open: binary_sensor.living_room_any_window_open - ext_temperature: sensor.ext_front_temperature + ext_temperature: sensor.ext_back_temperature room_temperature: sensor.living_room_temperature room_occupancy: binary_sensor.living_room_occupancy target_temperature: sensor.target_temperature_heatpump @@ -157,7 +160,7 @@ living_room_heatpump: occupied_tonight: input_boolean.living_room_occupied_tonight stay_on_while_sleeping: false - target_temperature: sensor.target_temperature_heatpump + 0.5 + target_temperature: "sensor.target_temperature_heatpump + (binary_sensor.heatpump_winter_mode ? 0 : 0.5)" hvac_mode: "binary_sensor.heatpump_winter_mode ? 'heat' : 'cool'" fan_mode: sensor.living_room_heatpump_fan_mode