Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Alert on motion while we're away
- trigger:
- - platform: state
- entity_id: group.home_motion_sensors
- from: 'off'
- to: 'on'
- condition:
- - condition: state
- entity_id: switch.vacation
- state: 'on'
- action:
- - service: notify.gmail_notifier
- data_template:
- title: "Motion has been detected in the house"
- message: 'Motion has been detected by one of the motion sensors'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement