So I’m using the automation found here: Blue Iris motion alerts to notification with image in Home Assistant - #118 by wjbeckett
It works great, except the notifications don’t show the pictures like they are supposed to. Looking in the traces of the automation I can see HA is sending the image URL to the companion app like its supposed to. And if I put in the URL for the image into chrome, it loads perfectly.
I am accessing HA and BI through a VPN, so server access is not the problem. I can click the links to the live view and clip view and they load flawlessly. Its just getting the snapshot to load on the notification that’s the issue.
On the companion app I get this error when running the notification:
home assistant failed to create image decoder with message ‘unimplemented’
A quick search got me nothing on that error, anyone have any insight there?
Im including the automation so you can see, but the automation itself works
type or - id: blueiris_notification
alias: Cameras - Blue Iris Notification
description: ''
triggers:
- topic: BlueIris/+/alert
variables:
camera_name: '{{ trigger.topic.split(''/'')[1] }}'
trigger: mqtt
conditions: []
actions:
- data:
message: A {{ trigger.payload_json.object.split(":")[0].strip('%') }} was detected
on the {{ trigger.payload_json.name }} camera.
data:
ttl: 0
notification_icon: mdi:cctv
channel: BlueIris
importance: high
clickAction: http://192.168.1.127:75/ui3.htm?maximize=1&tab=alerts&cam={{
trigger.payload_json.camera }}&rec={{ trigger.payload_json.id }}
image: http://192.168.1.127:75/alerts/{{ trigger.payload_json.id }}&fulljpeg
actions:
- action: URI
title: Live View
uri: http://192.168.1.127:75/ui3.htm?maximize=1&cam={{ trigger.payload_json.camera
}}
- action: URI
title: View Clip
uri: http://192.168.1.127:75/ui3.htm?maximize=1&tab=alerts&cam={{ trigger.payload_json.camera
}}&rec={{ trigger.payload_json.id }}
action: notify.mobile_app_pixel
And the companion app log for this event
04-06 10:16:32.946 14267 14267 D MessagingService: Creating notification with following data: {action_2_title=View Clip, notification_icon=mdi:cctv, image=http://192.168.1.127:75/alerts/@124889246288029, webhook_id=79d401c68700837353c20a19d2f75e1e6c64598d88f67e563947000ab7a3dfc8, channel=BlueIris, clickAction=http://192.168.1.127:75/ui3.htm?maximize=1&tab=alerts&cam=FY&rec=@124889246288029, message=A car was detected on the Front Yard camera., action_1_title=Live View, action_1_key=URI, action_1_uri=http://192.168.1.127:75/ui3.htm?maximize=1&cam=FY, action_2_key=URI, action_2_uri=http://192.168.1.127:75/ui3.htm?maximize=1&tab=alerts&cam=FY&rec=@124889246288029, importance=high, server_id=10}
04-06 10:16:32.961 14267 14267 D ServerConnectionInfo: Using external URL
04-06 10:16:33.109 14267 17471 D HWUI : --- Failed to create image decoder with message 'unimplemented'
04-06 10:16:33.143 14267 14267 D MessagingService: Show notification with tag "null" and id "192270764"
04-06 10:16:42.832 14267 14267 D NotifManagerCompat: Cancel notification with tag "null" and id "0"
04-06 10:16:42.833 14267 14267 D NotifManagerCompat: Check if the notification is in a group...
04-06 10:16:42.833 14267 14267 D NotifManagerCompat: Notification is not in a group. Cancel notification...
04-06 10:16:42.868 14267 17471 D NotifDeleteReceiver: Notification cleared event successful!
04-06 10:17:27.121 14267 14267 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1743948554255, currentMillis: 1743949047121)
Note: for testing I just created a dummy automation that just uses that static URL that gets generated by BI. This is a known good image URL
OK, a little update:
I can make the notification display .png and .jpeg files by using a url of a picture on the internet. Works perfectly. Maybe something about how BI formats the picture or the filename?
Here is a file that will display in my notif: https://www.planetizen.com/files/styles/featured_small/public/images/AdobeStock_1101977636_Editorial_Use_Only.jpeg.webp?itok=fub8Y_fG
And here is mine from BI that will not: http://192.168.1.127:75/alerts/@124889246288029?fulljpeg&session=075214af191c238419825b241a172b8f
Again, if i type that into my browser, it displays, and everything works
Are you sure the last URL is even an image? The app needs to download the image to display it so the URL needs to be accessible and it needs to be an image on the other end. I also use blue iris but never used that alert URL.