Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Doorbell Notification
- initial_state: 'on'
- hide_entity: True
- trigger:
- - platform: state
- entity_id: binary_sensor.doorbell_state
- from: 'off'
- to: 'on'
- action:
- - service: camera.snapshot
- data_template:
- entity_id: camera.garage
- filename: "/config/www/snapshots/garage_{{ now ().year }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg"
- - service: notify.html5
- data:
- title: 'DoorBell'
- message: 'There is someone at the door'
- data:
- url: https://(PublicURLToHass.io/local/snapshots/garage_{{ now ().year }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg
- image: https://(PublicURLToHass.io/local/snapshots/garage_{{ now ().year }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement