Created
January 1, 2021 19:13
-
-
Save Didgeridrew/59c7dd82478f4d7f1f0cf2a77a3e2387 to your computer and use it in GitHub Desktop.
HA heater automation help for Roy
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
alias: 'Proximity Heat Control' | |
description: Control heat based on Roy's proximity to home. | |
trigger: | |
- platform: zone | |
entity_id: device_tracker.roy | |
zone: zone.the_in_between | |
event: leave | |
action: | |
- choose: | |
- conditions: | |
- condition: state | |
entity_id: proximity.roy_home | |
state: toward | |
attribute: dir_of_travel | |
- condition: state | |
entity_id: binary_sensor.people_home | |
state: 'off' | |
sequence: | |
- service: HOWEVER YOU TURN ON YOUR HEATER | |
- conditions: | |
- condition: state | |
entity_id: binary_sensor.people_home | |
state: 'off' | |
- condition: state | |
entity_id: proximity.roy_home | |
state: away_from | |
attribute: dir_of_travel | |
sequence: | |
- service: HOWEVER YOU TURN OFF YOUR HEATER | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment