URI Notification action not opening URI

Been debugging this for about an hour, tried reinstall and completely cleared all hass.agent including registry and scheduling before installing latest notification changes in 2.1.0-beta4 but still no luck. HA yaml service:
service: notify.pc
data:
title: Fancy title
message: Test message
data:
actions:
- action: uri
title: Open Link
uri: https://hass-agent.io
service: notify.pc
data:
title: Fancy title
message: Test message
data:
actions:
- action: uri
title: Open Link
uri: https://hass-agent.io
JSON MQTT payload:
{
"message": "Test message",
"title": "Fancy title",
"data": {
"actions": [
{
"action": "uri",
"title": "Open Link",
"uri": "https://hass-agent.io"
}
]
}
}
{
"message": "Test message",
"title": "Fancy title",
"data": {
"actions": [
{
"action": "uri",
"title": "Open Link",
"uri": "https://hass-agent.io"
}
]
}
}
No significant errors with extended logging on.
Solution:
GitHub
Fix: URI not being properly launched when attached to a button by a...
This PR fixes a bug where the URI option attached to a button wouldn't open the URI upon clicking on it.
Jump to solution
13 Replies
HASS.Agent Helper
Help us Help Others!
To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution
From An unknown user
HASS.Agent Helper
Help us Help You!
Please don't delete messages or posts because it makes it impossible to understand what happened. If you don't want your messages to be seen then don't post here. Please provide us with the version number of your app.
You can find it by clicking the ? at the bottom of the main page and checking under the logo that shows.
We will help as soon as possible. While you're waiting you can try the following:
- Checkout the documentation. - Search here in discord for previously solved similar issues.
HASS.Agent Helper
@Amadeo
DrR0x
DrR0xOP6d ago
Tried "openuri" as action, similar to whats done in PR example here, however nothing changed. Dug through the code and see no mention of 'openuri', in fact afaict whether or not the "uri" field exists is the only thing that decides whether a URL is added to the button?
Cake1468
Cake14686d ago
Thanks for looking into this @DrR0x 🙂
DrR0x
DrR0xOP5d ago
All good, I stopped using Uri buttons in favour of clickactions, hence why I never noticed the bug
Amadeo
Amadeo5d ago
🐛 something ate "!" from the line 236 yup, adding missing negation and enabling the required settings works
Amadeo
Amadeo5d ago
I'll add it to beta3
Solution
Amadeo
Amadeo5d ago
GitHub
Fix: URI not being properly launched when attached to a button by a...
This PR fixes a bug where the URI option attached to a button wouldn't open the URI upon clicking on it.
Amadeo
Amadeo5d ago
I'll release 2.1.1 with it today evening or tmrw
DrR0x
DrR0xOP5d ago
Nice 😂

Did you find this page helpful?