Advertisement
pqpxoxa

HA - Letterbox Push Notification with Camera Snapshot

Oct 8th, 2020
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. - id: '1593202103535'
  2. alias: Pushover Letter Box
  3. description: ''
  4. trigger:
  5. - entity_id: binary_sensor.letter_box
  6. from: 'off'
  7. platform: state
  8. to: 'on'
  9. condition:
  10. - condition: time
  11. after: 07:00:00
  12. before: '20:00:00'
  13. action:
  14. - service: camera.snapshot
  15. data:
  16. entity_id: camera.uniuvc1
  17. filename: /config/www/tmp/snapshot_camera.uniuvc1.jpg
  18. - service: notify.pushover
  19. data_template:
  20. data:
  21. attachment: /config/www/tmp/snapshot_camera.uniuvc1.jpg
  22. priority: 0
  23. sound: spacealarm
  24. message: You got mail at {{ now().strftime('%-I:%M:%S %p %-m/%-d/%y') }}
  25. title: Home Assistant - Letter Box
  26. - service: script.letterbox_alert
  27. data: {}
  28. mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement