iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Snapshots/thumbnails/clips in notifications

Open JoshuaSeidel opened this issue 1 year ago • 22 comments
trafficstars

iOS device model, version and app version

Model Name: iPhone 15 pro Software Version: 18.1 beta App version: 2024.9 (2024.842)

Home Assistant Core Version 2024.9.1

Describe the bug All my automations that used to show clips/thumbnails/snapshots no longer display them in notifications. The only thing that works is the text in the box.

To Reproduce

Setup a notification from a ip camera or frigate. Set to send snapshot

Expected behavior The notification to come through with a snapshot in the bar

JoshuaSeidel avatar Sep 16 '24 17:09 JoshuaSeidel

Can you provide one automation example and which integration are you use for the camera?

Also, can you send a screenshot of what you receive on your phone? (Notification itself)

And finally, rebooting the iPhone helps?

bgoncal avatar Sep 16 '24 17:09 bgoncal

I am not the OP but I can confirm the issue. I am using unifi as cameras and I am using NODE-RED to trigger the notify service:

{
    "title": "Doorbell Ringing",
    "message": "🔔 Someone is at the door",
    "data": {
        "entity_id": "camera.doorbell_high",
        "push": {
            "sound": {
                "name": "default",
                "critical": 1,
                "volume": 1
            }
        }
    }
}

Results in: image image

This has worked fine in the past, but then hasn't worked for quite a bit but then worked again. So I am not exactly sure when it started to not-work.

Rebooting the phone has no effect.

ultimate-tester avatar Sep 17 '24 15:09 ultimate-tester

I am not the OP but I can confirm the issue. I am using unifi as cameras and I am using NODE-RED to trigger the notify service:

{
    "title": "Doorbell Ringing",
    "message": "🔔 Someone is at the door",
    "data": {
        "entity_id": "camera.doorbell_high",
        "push": {
            "sound": {
                "name": "default",
                "critical": 1,
                "volume": 1
            }
        }
    }
}

Results in: image image

This has worked fine in the past, but then hasn't worked for quite a bit but then worked again. So I am not exactly sure when it started to not-work.

Rebooting the phone has no effect.

thank you, ive been waiting to get notifications to be able to post. this is what happens to me. or it doesnt even show the thumbnail box

JoshuaSeidel avatar Sep 18 '24 20:09 JoshuaSeidel

Any difference between being on local wifi or not? Can you try?

Can you confirm that the câmera entity ID is correct? I also use Unifi and it is working properly for me, do you have more than one device to test to see if it is related?

https://github.com/user-attachments/assets/cc561612-dd89-40df-a74f-7c6b5ed13b07

bgoncal avatar Sep 18 '24 20:09 bgoncal

For 3 of my cameras . Two Reolink through fargate, 1 Wyze through fargate same issue. The Apple watch displays video and snapshot, but the app on the phone won't, WiFi or cellular

JoshuaSeidel avatar Sep 18 '24 21:09 JoshuaSeidel

image

JoshuaSeidel avatar Sep 18 '24 21:09 JoshuaSeidel

Do you have another phone to test?

Meanwhile send me your app logs please:

https://forms.gle/rZthn7H7pmZLyWjR8

bgoncal avatar Sep 18 '24 21:09 bgoncal

Do you have another phone to test?

Meanwhile send me your app logs please:

https://forms.gle/rZthn7H7pmZLyWjR8

I don't have another phone but the other user shows it's not just me

Submitted logs from app

JoshuaSeidel avatar Sep 18 '24 21:09 JoshuaSeidel

30min later the existing notifications show on long press but the snapshots don't on the actual notification

JoshuaSeidel avatar Sep 18 '24 22:09 JoshuaSeidel

Do you have another phone to test? Meanwhile send me your app logs please: https://forms.gle/rZthn7H7pmZLyWjR8

I don't have another phone but the other user shows it's not just me

Submitted logs from app

I didnt mean it was just happening to you, I just want to find the root cause since it's working for some users but not for others, for example, in the screenshot it shows that the "response status" is 404, which means the media couldn't be found.

Anyway, I'll check your logs

bgoncal avatar Sep 19 '24 07:09 bgoncal

@JoshuaSeidel are you in discord? I want to check some things with you but I'll need to share personal info from your logs, can you drop me a message? (discord username bgoncal2)

bgoncal avatar Sep 19 '24 07:09 bgoncal

Me and my wife are experiencing the same but I do have to say: for the first time I had this issue it was only my wife who had it. Not me. At the moment, it's both of us though.

No difference on WiFi or not.

I see in your config you are using the _low entity while I'm using the _high entity. I'll try the low one now. Brb.

EDIT: the low entity has the same

ultimate-tester avatar Sep 19 '24 07:09 ultimate-tester

Thanks for the info @ultimate-tester , I see @JoshuaSeidel is on Core 2024.9.1, what about you? And also the App version please.

bgoncal avatar Sep 19 '24 07:09 bgoncal

Thanks for the info @ultimate-tester , I see @JoshuaSeidel is on Core 2024.9.1, what about you? And also the App version please.

Hi Joshua, both app (looked in App Store) and core version are 2024.9.1.

ultimate-tester avatar Sep 19 '24 10:09 ultimate-tester

Beta app 2024.9.2

JoshuaSeidel avatar Sep 19 '24 11:09 JoshuaSeidel

When I long press and hit view clip I get

{"message":"Event not found","success":false}

JoshuaSeidel avatar Sep 19 '24 23:09 JoshuaSeidel

Quick update: I fixed the issue. I suddenly remembered that I swapped my HDD for an SSD in my unifi cloud key and I started from scratch instead of migrating. Turns out, my RTSP streams were turned off... turned them back on and voila, problem fixed.

image

In unifi, select the camera, settings > advanced RTSPS. Enable the stream that matches your entity (e.g. _low, _medium, _high). image

ultimate-tester avatar Sep 20 '24 14:09 ultimate-tester

I'm on frigate, and only use rstp still having the issue

JoshuaSeidel avatar Sep 20 '24 20:09 JoshuaSeidel

For my issue. Image attachment load properly on my iPhone 15 pro (iOS 18), but always get this error when load on my Apple Watch Ultra 2 (WatchOS 11).

apple watch ss

Tuatop avatar Oct 04 '24 04:10 Tuatop

I am having the same issue. Anyone solved?

marcoisabella avatar Dec 01 '24 12:12 marcoisabella

I had the same problem after updating to 2025.1.2, not sure about the app version, but I guess the latest as there is no update in the app store (iOS). I changed it to the direct path, both for snapshot making and as attachment in notification, but it now tries to play it as video, even when I use as image,

actions:
  - device_id: x
    domain: button
    entity_id: x
    type: press
    enabled: false
  - delay:
      hours: 0
      minutes: 0
      seconds: 3
      milliseconds: 0
  - data:
      filename: media/snapshot.jpg
    action: camera.snapshot
    target:
      entity_id: camera.doorbell_medium_resolution_channel
  - metadata: {}
    data:
      data:
        image: /config/media/snapshot.jpg
      message: Doorbell just rang
    action: notify.mobile_app_iphone
    ```

Ramshield avatar Jan 10 '25 19:01 Ramshield

Hello everyone,

I have the opposite problem, notifications work well on my iPhone and my Mac, but if I attach a camera for live view, my Apple Watch gives me a 404 error. If I remove the live view (so only the image), everything works..

My Node-RED code for the notifications that doesn't work:

{ "title": "Detect", "message": "Detection in the yard", "data": { "url":"/dashboard-cameras/avant", "image":"https://NABUCASA/xxx/xxx/xxx"& msg.eventid &".jpg", "entity_id": "camera." & msg.camera } }

This one works:
{ "title": "Detect", "message": "Detection in the yard", "data": { "url":"/dashboard-cameras/avant", "image":"https://NABUCASA/xxx/xxx/xxx"& msg.eventid &".jpg" } }

Balooforever avatar Jan 23 '25 11:01 Balooforever