I’ve been playing around with Homeassistant for a while now and its all working well. I’ve added in a few automations, and this is where my problem lies!
I am trying to take a 20sec video stream from one of my cameras when my garage door opens and send it as an attachment in an iOS notification. My current config works, but only sometimes.
Assuming the notification always show up on your iphone, just sometimes without the mp4.
Are you sure the captured mp4 file is ready for notification?
Depending on your system and live stream, ffmpeg capture may take couple of seconds to finish creating/updating mp4 file. Also, not sure how the system behaves if the mp4 file is being written to when HA tries to send the notification.
Maybe try testing with already created mp4 file to see if the problem is from the mp4 creation and/or timing of creation.
In case anyone is interested, it turns out my wireless camera feed was recording in 1280x1024 which wasn’t working so altered my recording script to resize to 320x240 and it worked!
I’m having the same issue. 320x240 and 640x480 work for me but nothing larger. It’s frustrating because the apple documentation doesn’t list any limitations of the UNNotificationAttachment class other than a 50MB file size. I wonder if the limitation is in the app itself rather than an iOS issue. Do you happen to have a 1920x1440 video file that you know works? I’m curious to do more testing.
im, after a long time this issue been not discussed, still struggeling with this - i have a notification that should show a video recorded locally - sometimes everything works fine but on other days there is just this spinning wheel. We are about a hug step ahead of the old config for ios notification, but things doesnt changed for me - still no video arriving here.
will try the resolution fix mentioned here, but could this also be due to internet speed restrictions? video is about 800kb so its likely not that important…