-
-
Save danieleparazza/0342467484089d815152d274408bcab1 to your computer and use it in GitHub Desktop.
HA HVAC Pause Blueprint
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
# ver 1.3 | |
blueprint: | |
name: HVAC Pause Old | |
description: Pauses HVAC when windows/doors open; resumes last state once closed | |
domain: automation | |
input: | |
climate_device: | |
description: Climate entity used for climate control. | |
name: Climate Device | |
selector: | |
entity: | |
domain: climate | |
doors_windows: | |
description: Group of entities that will activate automation. (Assumes 'on' means 'open') | |
name: Door and window sensors. | |
selector: | |
entity: | |
domain: | |
- group | |
- binary_sensor | |
pause_delay: | |
description: Time to wait before pausing the HVAC system. | |
name: Pause Delay | |
default: | |
hours: 00 | |
minutes: 05 | |
seconds: 00 | |
selector: | |
duration: | |
resume_delay: | |
description: Time to wait before resuming the HVAC system. | |
name: Resume Delay | |
default: | |
hours: 00 | |
minutes: 00 | |
seconds: 30 | |
selector: | |
duration: | |
mode: single | |
trigger: | |
- platform: state | |
entity_id: !input doors_windows | |
from: 'off' | |
to: 'on' | |
for: !input pause_delay | |
id: group_open | |
condition: | |
- condition: not | |
conditions: | |
- condition: state | |
entity_id: !input climate_device | |
state: 'off' | |
action: | |
- service: scene.create | |
data: | |
scene_id: climate_snapshot | |
snapshot_entities: !input climate_device | |
- service: climate.set_hvac_mode | |
target: | |
entity_id: !input climate_device | |
data: | |
hvac_mode: 'off' | |
- wait_for_trigger: | |
- platform: state | |
entity_id: !input doors_windows | |
from: 'on' | |
to: 'off' | |
for: !input resume_delay | |
continue_on_timeout: false | |
- scene: scene.climate_snapshot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment