LAB02-Research / HASS.Agent-Integration

HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant.
MIT License
101 stars 17 forks source link

Actionable notification with URL doesnt work #29

Open BNWEIN opened 1 year ago

BNWEIN commented 1 year ago

I have an actionable notification setup, that when clicked should go to a URL, but it simply does not work.

service: notify.mycomputer data: message: "This is a test message." data: image: "http://192.168.0.239:5000/api/driveway_cam/latest.jpg" actions:

DrR0X-glitch commented 8 months ago

HASS.agent doesn't do actionable notifications the exact same as ios and android. Instead you pass action names and action titles and then it fires an event in hass. You can then use an automation to redirect the client to the url. Something like this:

Script to run notification: image

HASS.agent command to open url: image

Automation to open the url: image

A notification is sent with an action and the title of that action. When the action is clicked an event is fired in hass and the automation detects it. The automation then preses the button that activates the launchurl command in hass.agent.