Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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