Advertisement
denperss

Doorbell

Dec 30th, 2023 (edited)
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.66 KB | None | 0 0
  1. Merry Christmass all 🙂
  2.  
  3. I have some issue with a template from my nest doorbell 😦
  4. So when i call the service, it creates the file but it dosent have a image in it.
  5. Also it dosent add the time stamp to the file, only "doorbell_"
  6.  
  7. This is the code:
  8. service: camera.snapshot
  9. target:
  10.   device_id: 6f76b7518d4efa9
  11.   entity_id: camera.doorbell
  12. data:
  13.   filename: >-
  14.     /config/www/nest/notify/doorbell_{{
  15.     states.input_text.as_doorbell_snap_timestamp.state }}.jpg
  16.  
  17. This is the input text i call before the snap
  18.  
  19. service: input_text.set_value
  20. entity_id: input_text.as_doorbell_snap_timestamp
  21. data:
  22.   value: "{{ now().strftime(\"%Y%m%d_%H%M%S\") }}"
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement