Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Created January 1, 2021 19:14
Show Gist options
  • Save Didgeridrew/6c919d4ff70f1cf7763f6691bd96f38f to your computer and use it in GitHub Desktop.
Save Didgeridrew/6c919d4ff70f1cf7763f6691bd96f38f to your computer and use it in GitHub Desktop.
HA heater automation help for Roy
alias: 'Heat on when close to home'
description: Turn on heat when Roy is leaving work on his way home.
trigger:
- platform: zone
entity_id: device_tracker.roy
zone: zone.work
event: leave
condition:
- condition: state
entity_id: proximity.roy_home
state: towards
attribute: dir_of_travel
action:
- condition: state
entity_id: binary_sensor.people_home
state: 'off'
- service: HOWEVER YOU TURN ON YOUR HEATER
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment