Created
March 1, 2025 09:31
-
-
Save hazcod/51bf223dd86680a95705d0e67b638401 to your computer and use it in GitHub Desktop.
Home Assistant blueprint that pauses your heating when a window opens.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: "Tado: Turn off heating when window is open" | |
description: "Disables heating in a specific room when the window is open." | |
domain: automation | |
input: | |
# the window which opens | |
window_sensor: | |
name: "Window Sensor" | |
selector: | |
entity: | |
filter: | |
- domain: [binary_sensor] | |
# the hvac that is controlled | |
climate_entity: | |
name: "Tado Climate Entity" | |
selector: | |
entity: | |
filter: | |
- domain: [climate] | |
mode: single | |
triggers: | |
# always run when a window opens | |
- trigger: state | |
entity_id: !input window_sensor | |
to: "on" | |
variables: | |
# store the current climate hvac state before changing it | |
climate_entity: !input climate_entity | |
current_mode: "{{ states[climate_entity].state }}" | |
condition: | |
# Only proceed if heating is not already off | |
- condition: template | |
value_template: "{{ current_mode != 'off' }}" | |
action: | |
# turn off the heating whilst the window is open | |
- action: climate.set_hvac_mode | |
target: | |
entity_id: !input climate_entity | |
data: | |
hvac_mode: "off" | |
# wait until the window closes again | |
- wait_for_trigger: | |
- trigger: state | |
entity_id: !input window_sensor | |
to: "off" | |
timeout: | |
hours: 12 | |
continue_on_timeout: false | |
# reset the original hvac mode | |
- action: climate.set_hvac_mode | |
target: | |
entity_id: !input climate_entity | |
data: | |
hvac_mode: "{{ current_mode }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment