Clicking desktop notification custom action?
Is there a way when I get a push notification to my desktop (windows 11) and click on it, that it does something specific on the computer (like opens a browser to a certain page)?
14 Replies
Not currently if memory serves me right, it works for the buttons you add (just like on messages on android for example) to the notification
I've implemented it as part of the hass.agent v3 development, if there is interest in it I might backport it to v2
err how do i do that
like in the has automation?
Normally I'd give you some personalized examples but I'm away from home so I'll let my PR to original HASS.Agent repo do the job 😄
GitHub
Feature: notification library change to Windows APP SDK / misc. imp...
This PR:
Mainly: replaces UWP.Toolkit library which was used to handle Windows Notifications with Windows APP SDK.
adds proper handling of notifications activated when HASS.Agent is not running
e...
Sadly, this shows the button but it doesn't do anything when you click on it.
Which version of hass agent are you using?
Does the test notification show properly?
is this wrong?
only one appears in my system tray, says version 2.1.0-beta2
yes. the notification i made does show up, complete with the clickable button element, but clicking the button looks like it clicks the entire notification element and not the button element and then it just goes away after a moment. same with the test notification.
beta2 should be ok, can I see the yaml for notification?
Just for reference this docs page does have a "dumber" guide, as in, non programmer speak guide with screenshots for both UI and yaml.
https://www.hass-agent.io/latest/getting-started/notifications/#create-a-new-scriptautomation
Sending Notifications - Hass Agent Documentation
Access your homeassistant from any windows machine - send notifications, collect data and automate repetitive tasks
am i supposed to have this third option enabled?
resolved after i checked those boxes. 🙂