Media Attachment stopped working in my rule

I have a rule that sends a notification with an image when someone rings my Doorbird doorbell. This has worked fine, until recently, around the time I upgraded to openHABv5. The notification still arrives, but without the media attached. I created the rule through the UI. In trouble shooting I wrote a script that sends a notification with an image, it also doesn’t work. I’ve tried using a URL and an item:itemname, both without success. The notification script is:

actions.notificationBuilder("Test").addUserId('me@yahoo.com').withMediaAttachmentUrl('item:Doorbird_D210x_Doorbell_Pressed_Image').send()

I’ve run out of ideas.

I see the same, also shared it in another post. Can you confirm if your title also is not sent? I think Dan was working on a fix. I’ll look for the post and share here for you to check it out.

Edit:
Here you go -

Since you tagged me :wink: here’s the breakdown:

Which components exist in the push notification I’m using:

– Title

– Image

– Text

– One Click Button

What works with the TestFlight version:

– Text

– One Click Button

What works with the regular iOS version:

– Title

– Text

– One Click Button

Image only works when on the same network.

Therefore, I suspect two issues:

– A bug in the TestFlight app

– A bug in the openHAB service, since images used to work even outside the same network a few weeks ago.

1 Like

@Anpro what about the notifications in the remote service? What do you see there? I only see the text, which leads me to believe that nothing is coming out from the local network.
Additionally mine doesn’t send anything except from the text from neither outside or inside the network.

It depends on whether I’m using the TestFlight app — with that one, only the text and buttons come through.
With the regular iOS app, everything works again after a restart.
You should test that one.

Ah. I misunderstood that. I’ll test the normal app then

I’m also using the testflight version. icon, title, and media attachment don’t work for me.

Which version (TestFlight or App Store) is the most current?

Alright now I can confirm that neither the TestFlight nor the iOS one works. The one that is working is the V1.0 legacy app.

At least now something is working :rofl:

See Fixes a number of issues where background processing would crash by digitaldan · Pull Request #976 · openhab/openhab-ios · GitHub

The latest Testflight build that just released should fix.

What version should it be, do you know by heart? I installed the 3.1.23, but I see the same behavior. We probably need to wait longer right?

i show 3.1.23(79) , if you are still having issues its likely something else as notifications with images work now (locally or through myopenhab) where before our process was silently dying in the background and could not attach an image.

Ah! Understood!
So locally now it works indeed, remotely I get the title now but no image. I tried an icon but that didn’t come through either, so maybe some additional exploratory tests are in order.

I also noticed that my “camera page” where I have all of my camera feeds on webframes is now empty. The widgets are there but no feeds come through. But there’s a connection there…
Edit: ah ha! There must be a connection indeed because locally the camera feeds show normally, just like the image on the notification. But remotely no image of camera feeds show up.