You must be able to access image directly from web(internet not local) from provided link.
If password is used for HA you must include that in url as shown in example
Guys, is it possible to expand notification to see full image? My image is cropped vertically inside of notification. I tried to pull with 2 fingers, but no success. When i click on the notification it’s just gone.
No sorry, still looking for a proper script to pull image from my hikvision or dahua cameras. Hope someone has the same setup and can share the script?
Sorry about the poor formatting but this came from autoconfig file created by automation UI in HA and I do not want to muck around with spacing and provide something that hasnt been verified functional
To make button you need (x2) automation.
AUTOMATION 1
generates the notification and includes the buttons
AUTOMATION 2
receives the button response from HTML5 message and does the action you set
---------Below are code examples of each-------------
AUTOMATION 1 EXAMPLE
When Ring Doorbell Motion is sensed, a message is sent that has buttons [Open Gate] and [Dismiss] with some text and an image
action>>data>>data>>actions>>action defines the button
AUTOMATION 2 EXAMPLE
When “Open Gate” pressed in Automation 1 notification, HA receive some listener reply and perform an action. It knows the action to perform based on the “action” specified in both automations. In this case the action will Turn ON entry gate (open gate)
trigger>>event_data>>action identifies the listener and should match action for automation 1 button
My image was cropped like @deviant experienced way back in 2018.
I fixed this now by giving the notification the url under data to be send to the entity_picture when you click the notification.
When someone rings my doorbell I have an automation with the following action:
Sending html5 notification with: message, picture of cam1 (cropped), 2 buttons to open the door and when you click the notification it opens the full image.
action:
- service: notify.html5notify
data:
message: "Ding Dong, deurbel ingedrukt"
data:
actions:
- action: open_door_5s
title: Deur open 5s
- action: open_door_10s
title: Deur open 10s
image: https://yourthing.duckdns.org/api/camera_proxy/camera.cam1?token=[use your own access token here]
url: https://yourthing.duckdns.org/api/camera_proxy/camera.cam1?token=[use your own access token here]