I need to setup my config to create a snapshot with timestamp, with date and time when pushed on the ring. Then i need to show the latest created file on HA lovelace.
I would create a snapshot with name cam_frontdoor-latest.jpg and show that in HA front end
Since name is static HA should retrieve it
If you need Save this I think below would save with time.
cam_frontdoor-{{ now() }}.jpg’
Just use snapshot service to make second image. Maybe same service call can make both files
I always send message last
If message send fails I think automation stops at that point
File creation is local so I trust it not fail over external service over internet
OK, with this config i receive a notification with the latest image on my phone and it create a imagefile with timestamp. But how can i get the latest image on the lovelace? Wich entity do i need to use and with which settings?
It is really some cacing issue with lovelace. I get the latest image on my phone as notification but lovelace will not update the image. How can i solve that?
Problem solved at this manner!!! Thank you so much.
1 things what i also need to do with all the created snapshots with timestamp. That folder will be increased in HA with all the snapshots, how can i delete it automatically old files or something like save the last 10 items on the folder.
I want also see the last 10 snapshots on this folder automatically on the lovelace, just not only the latest snapshots. Is that possible?
so writing a dated snapshot to the media share (and be able to browse it in the Media browser), write a overwrite able snapshot to the /config/www/snapshots/ folder, and serve that as /local/snapshots/camera_poort.jpg
thanks.
Would have hoped to keep my config share free of those file writes, but apparently that wont be…
remarkable, since the docs explicitly state the media share to serve the attachments from. Will ask in Discord #iOS_and_Mac to be sure
appreciate your help
EDIT
found my error!
I had to enter local to the path:
image: /media/local/snapshots/camera_poort.jpg
writing to: /media/snapshots/camera_poort.jpg needs serving from /media/local/snapshots/camera_poort.jpg
just like
writing to /config/www/snapshots/camera_poort.jpg needs serving from /local/snapshots/camera_poort.jpg