Last active
January 3, 2025 09:04
-
-
Save toanju/a6b3aa67dea47e9cf746d18cc9ab9d5c to your computer and use it in GitHub Desktop.
This file contains hidden or 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: Window open, climate off | |
| description: | |
| "An automation that turns off your climate device for exmple a heater or an | |
| air conditioning if a window sensor is open. Turning the climate device on is | |
| not considered in this blueprint, check | |
| https://community.home-assistant.io/t/window-open-climate-off/257293 this is | |
| required for you." | |
| domain: automation | |
| input: | |
| window_entity: | |
| name: Window Sensor | |
| description: The window sensor that controls the climate entity. | |
| selector: | |
| entity: | |
| domain: binary_sensor | |
| device_class: window | |
| climate_target: | |
| name: Climate Device | |
| description: The climate entity that is controlled by the window sensor. | |
| selector: | |
| entity: | |
| domain: climate | |
| allow_enable: | |
| name: Blocking switch | |
| description: Do not enable climate entity if switch is off. | |
| selector: | |
| entity: | |
| domain: input_boolean | |
| trigger: | |
| - platform: state | |
| entity_id: !input "window_entity" | |
| to: "on" | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: !input "climate_target" | |
| state: "off" | |
| action: | |
| - service: climate.turn_off | |
| entity_id: !input "climate_target" | |
| - wait_for_trigger: | |
| - platform: state | |
| entity_id: !input "window_entity" | |
| to: "off" | |
| continue_on_timeout: false | |
| - condition: state | |
| entity_id: !input "allow_enable" | |
| state: "on" | |
| - service: climate.set_hvac_mode | |
| entity_id: !input "climate_target" | |
| data: | |
| hvac_mode: auto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment