Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Last active November 13, 2018 04:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LarsBergqvist/cbdc79706862095d0e7a31352d6da00d to your computer and use it in GitHub Desktop.
Save LarsBergqvist/cbdc79706862095d0e7a31352d6da00d to your computer and use it in GitHub Desktop.
Home Assistant automation based on presence detection
automation:
- alias: Turn on window lights when Lars gets home
trigger:
platform: zone
entity_id: device_tracker.my_iphone
zone: zone.home
event: enter
action:
service: switch.turn_on
entity_id: group.window_lights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment