Hi all,
I have a notification which shows a short text and a snapshot when someone rings my doorbell. Right now an old picture is shown in the notification on my phone. I read online that this is a cache issue and more people are experiencing it. I thought about including the last triggered state of my automation in the filename of the snapshot so the automation has to pull an unique file name. This would prevent the automation from grabbing the cached file.
But I'm having trouble giving the file name the last triggered state of my automation.
I had this:
metadata: {}
data:
filename: /config/www/doorbell/reolink-snapshot.jpg
target:
entity_id: camera.reolink_video_doorbell_fluent
I tried this:
metadata: {}
data:
filename: >- /config/www/doorbell/reolink-snapshot.jpg?{{
states.automation.er_is_aangebeld.last_triggered}}
target:
entity_id: camera.reolink_video_doorbell_fluent```
But it creates a file named: "reolink-snapshot.jpg?" which doesn't work.
Can anyone help me out with this?
Side question: I use google AI to create a message based on the image, but on Android the notification screen is too small to read the whole message. When I press and swipe down, it's still not fully shown. On Apple you can press and hold the notification to show all the text. Is there a solution for Android?