Hi,
I have managed to create automations to save snapshots to a folder when my nest doorbell is pressed and also a person has been detected. I save these as a file with the type of detection (person or doorbell) and the datetime in the filename.
For example, to give a saved image with the filename front_door_doorbell20211120-135722.jpg
for doorbell and front_door_person20211120-143441.jpg
for person.
There is two things I would like to do with these snapshots that I can’t quite wrap my head around.
-
Only save the last three snapshots: I have added the datetime to the filename for this reason. This would result in deleting the oldest file when a new image is created in order to only have three of each type of snapshot to be saved.
-
Displaying information on a glance card: I would then like to have a glance card (or something with similar effect) on my dashboard, like in the mockup image below, which shows the last three events of either person or doorbell and how long ago this event occurred. I would then like to be able to press on an event to open the relevant screenshot.
Any help would be very much appreciated. Very new to home assistant so am not really sure what the right direction would be to implement these two ideas after a while of searching around. Cheers