I’ve been using the UniFi Protect Blueprints for a few years, which have been generally great. One of my 12 cameras started reporting this error when pushing notifications to my iOS devices, so I posted this last year, but I haven’t found anything helpful in resolving the issue.
Now it seems the issue has gotten worse, which may be due to some change in UniFi Protect. What’s happening is that when the automation detects a person or vehicle, it will sometimes find the snapshot and send it correctly to my iOS device, but within a few seconds, the snapshot in the iOS notification is changed to this “Failed to load attachment” error. And it’s not consistent across cameras.
I also understand this Blueprint is no longer maintained by the author, so I’m evaluating options. I liked how this one would originally show a snapshot in the notification and then play the clip with a long press, but I may just have to revert back to an easy snapshot notification. Any ideas?
I am in the same boat. My notification just won’t show any images, and if I hold on it won’t show any actions anymore. Not sure what happened and what to do.
I narrowed this down to a race condition by sending the notification, captured from the automation trace that triggered the error, a little bit later. In that case, it works. So, the nvr_id and event_id are correct and available. Just not when the notification was sent.
By waiting for the sensor to be in the off state for 10 seconds, I almost never see the error.
I suspect this is a bug in the integration and/or a limitation of the Unifi Protect API.
I’ve been using the Smart Detection variant that provided a few more options via the blueprint. The original creator of the blueprint is no longer contributing, but this post has the latest version of it.
I’m wondering if adding this 10 second waiting buffer may help improve this version as well. I’ll try to dig into that over the next few days.
The delay improved the situation for me but didn’t resolve it completely. I switched to using notifications via the Protect app and Alarm Manager instead. Alarm Manager supports suppressing recurrent notifications now and that was my primary reason for rolling my own notifications.