Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.77 KB | None | 0 0
  1. alias: Doorbell Notification
  2. initial_state: 'on'
  3. hide_entity: True
  4. trigger:
  5. - platform: state
  6. entity_id: binary_sensor.doorbell_state
  7. from: 'off'
  8. to: 'on'
  9. action:
  10. - service: camera.snapshot
  11. data_template:
  12. entity_id: camera.garage
  13. filename: "/config/www/snapshots/garage_{{ now ().year }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg"
  14. - service: notify.html5
  15. data:
  16. title: 'DoorBell'
  17. message: 'There is someone at the door'
  18. data:
  19. url: https://(PublicURLToHass.io/local/snapshots/garage_{{ now ().year }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg
  20. 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