Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Created January 1, 2021 19:13
Show Gist options
  • Save Didgeridrew/59c7dd82478f4d7f1f0cf2a77a3e2387 to your computer and use it in GitHub Desktop.
Save Didgeridrew/59c7dd82478f4d7f1f0cf2a77a3e2387 to your computer and use it in GitHub Desktop.
HA heater automation help for Roy
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