From aa6fb42dd748b0c4f1b93e809599ed76c7f18d9e Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 27 May 2026 23:06:16 +0200 Subject: [PATCH] Add bedroom heat pump configuration and update presence conditions for bedroom occupancy --- apps/global/heating.yaml | 36 ++++++++++++++++++++++++++++++++++++ apps/global/presence.yaml | 3 +++ 2 files changed, 39 insertions(+) diff --git a/apps/global/heating.yaml b/apps/global/heating.yaml index 192ad9d..1886049 100644 --- a/apps/global/heating.yaml +++ b/apps/global/heating.yaml @@ -76,3 +76,39 @@ desk_heatpump: #input_buttons: # turn_on: input_button.clim_du_bureau_turn_on # turn_off: input_button.clim_du_bureau_turn_off + +bedroom_heatpump: + module: smartheatpump + class: SmartHeatpump + entity: climate.bedroom_heatpump + + templates_library: smart_heating_templates_library + + constants: + window_open: binary_sensor.bedroom_french_door + ext_temperature: sensor.ext_front_temperature + room_temperature: sensor.bedroom_temperature + room_occupancy: binary_sensor.bedroom_occupancy + target_temperature: sensor.target_temperature_heatpump + cant_open_window: false #binary_sensor.cant_open_window + sleeping_in_the_room: binary_sensor.is_bedroom_sleeping + quick_resume: binary_sensor.bedroom_heatpump_quick_resume + stay_on_while_sleeping: false + + virtual_sensors: + sensors: + value_selector.bedroom_heatpump_fan_mode: + auto: binary_sensor.heatpump_winter_mode + quiet: True + + target_temperature: sensor.target_temperature_heatpump + hvac_mode: "binary_sensor.heatpump_winter_mode ? 'heat' : 'cool'" + fan_mode: sensor.bedroom_heatpump_fan_mode + + smart_conditions: + callback_delay: 10 # on the morning it can happen that we ask to start and stop the heat pump immediately afterwards which in result in the heat pump ignoring the second command + template_conditions: + + quick_resume: + sensor: binary_sensor.bedroom_heatpump_quick_resume + reset_event: good_morning diff --git a/apps/global/presence.yaml b/apps/global/presence.yaml index bf8d876..d6d9021 100644 --- a/apps/global/presence.yaml +++ b/apps/global/presence.yaml @@ -40,6 +40,9 @@ occupancy_sensors: trigger_conditions: sensor.kitchen_last_motion <= 5 binary_sensor.restroom_occupancy: trigger_conditions: sensor.restroom_last_motion <= 3 + binary_sensor.bedroom_occupancy: + trigger_conditions: binary_sensor.is_bedroom_sleeping or binary_sensor.day_interval_night + blocking_conditions: not binary_sensor.someone_home retain_condition.desk_occupancy: retain_time: 5 * 60 conditions: