sstratoti / actionable-notifications-subflow-for-ios

Actionable Notifications Node-Red Subflow for Home Assistant Companion - iOS
33 stars 5 forks source link

Image/Content overrides not displaying? #9

Open wgregorian opened 2 months ago

wgregorian commented 2 months ago

Describe the bug I can't call this a bug; it is likely something I did. Here's my Node-Red flow:

Screenshot 2024-04-26 101758

I'm reading from the frigate/events MQTT in, filtering the camera, objects, and zones, then passing along the variables to the following function:

image

My goal is to load the snapshot in the notification, so I'm using the overrides to do that, but I can't get it to work.

Debug Output Screenshot 2024-04-26 101601

As you can see, the overrides end up with the correct value. I even pass the values from the function to an image viewer in node-red to ensure they render correctly and are readable.

Version Information (please complete the following):

Expected behavior I expected the thumbnail to be the event's snapshot from the HTTPS URL for that notification; it only displays the camera entity view but not the actual image.

How can I debug this to figure out what I'm doing incorrectly? Any guidance?

sstratoti commented 2 months ago

Hey, saw you closed this, but I think that the developer from frigate is working on an image snapshot functionality for the camera feeds into HA. I'm very much looking forward to it. It might sneak in to next months release. HTH!

wgregorian commented 1 month ago

Hey, saw you closed this, but I think that the developer from frigate is working on an image snapshot functionality for the camera feeds into HA. I'm very much looking forward to it. It might sneak in to next months release. HTH!

It's already there; my issue is that I have the snapshot stored, but no matter what I try, I can't figure out how to attach it to the override in the notification unless I misunderstood.

There is also image image.camera_person as an entity, the last captured object from a specific camera. Still, for my purposes, I'm using the event-generated image because that's the one I want to see, which is stored on disk (my NAS) with its unique ID, etc. It is also accessible when direct linking, but for my life, I can't figure out why I can't attach the image as a URL.

sstratoti commented 3 weeks ago

Ah, are you using a full url? http / https included?

This has the details as to what can be sent in.

https://companion.home-assistant.io/docs/notifications/notification-attachments