I don't know what's going on, I have an automation set up to grab alert images and videos from blue Iris 5, and sometimes when it updates the notification it doesn't resolve the image and video:
https://i.imgur.com/GkPgMOr.jpeg
I can't see any reason why this would happen, I run an mqtt topic which is fired directly from bi5, home assistant grabs the file path on the network share directly from BI and fires an initial notification with just the image. It then listens for a second topic to confirm the video clip is converted, does a quick shell command to copy it to a temporary directory in /www, then updates the notification with the video link while preserving the same image using variables in the automation. I'll post the script below.
The normal behavior ~75-80% of the time is it just works, but every so often the update notification action breaks the image and the video link leads to an error:
https://i.imgur.com/JgJeTWZ.jpeg
For example, this one came in with the image on the initial notification, then when it updated the image broke and I got the above error. When I check the automation itself there are no missing or incorrect parameters:
https://i.imgur.com/WUUnPDy.jpeg
https://i.imgur.com/Vw42iLF.jpeg
Furthermore, when I go check the file system from an ssh shell, the image exists where the automation is pointing to:
https://i.imgur.com/Y6nl7Xy.jpeg
So the image at the very least should not be disappearing.
The video on the other hand...it's there in the nas but when I go to the direct path on one of these broken notifications it returns a 404 and it seems the shell command didn't actually copy the file to the www dir even though it exists in the source path exactly as provided, and the shell command didn't error out in the logbook.
I'm not sure where to go from here? The shell command itself is dead simple, copies from the file path provided in the payload to the www folder, and it uses the same variables passed from the original automation.