Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- automation:
- - alias: gabinete Motion Detected
- initial_state: True
- trigger:
- - platform: state
- entity_id: sensor.sn5_pir
- from: "standby"
- to: "motion detected"
- condition:
- condition: and
- conditions:
- - condition: state
- entity_id: device_tracker.sebastiao
- state: 'not_home'
- - condition: state
- entity_id: device_tracker.graca
- state: 'not_home'
- action:
- - service: "light.turn_on"
- entity_id: light.sn5_led
- - service: camera.snapshot
- data:
- entity_id: camera.gabinete_cam
- filename: '/config/www/sala.jpg'
- - service: notify.telegram
- data:
- title: "movimento"
- message: "em {{now().strftime('%H:%M %d-%m-%Y')}}"
- data:
- photo:
- file: /config/www/sala.jpg
- caption: Movimento no Gabinete em {{now().strftime('%H:%M %d-%m-%Y')}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement