Skip to content

Instantly share code, notes, and snippets.

@peyanski
Created March 11, 2020 14:03
Show Gist options
  • Save peyanski/9690450322d094e37393206d8eb25d21 to your computer and use it in GitHub Desktop.
Save peyanski/9690450322d094e37393206d8eb25d21 to your computer and use it in GitHub Desktop.
Room-Assistant Automation to turn on the Kitchen Lights when smart watch device is detected as in home
Automations.yaml
# presence detection with room assistant
- id: '1574110134678355'
alias: Lights ON when I got home
description: 'When Im home'
trigger:
platform: state
entity_id: sensor.kirils_apple_watch_room_presence
from: not_home
to: kitchen
action:
- data:
entity_id: light.kitchen_lights
service: light.turn_on
- data:
entity_id: light.livingroom_lights
service: light.turn_on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment