Hello,
no that long ago I was asking how to clear my notifications in some cases and I was asked why I am not using alerts instead of notifications and so I did start. Life is easier since then as in some cases it is repeatable activity which I really do not need to check every time and I do not have a pile of notification on my phone. And of course other features are great there.
Today I decided to make an actionable notification when I am in the shop, to open my shopping list. But it seems I cannot pass the correct page to open. Is it a feature or am I doing something wrong?
Here is my alert
shopping:
name: shopping
message: check the shopping list
title: So you wanna buy something?
data:
actions:
- action: buy
title: Show me
icon: sfsymbols:cart
## not sure if this is needed but I found it on the forum and internet, no difference without that
clickaction: http://xxx.xxx.xxx.xxx:8123/todo?entity_id=todo.nakup
## I tried that with URI instead of URL first, no change though
url: ->
http://xxx.xxx.xxx.xxx:8123/todo?entity_id=todo.nakup
- action: nah
title: Not today
icon: sfsymbols:xmark
destructive: true
tag: nakup
done_message: clear_notification
entity_id: input_boolean.nakup_helper
state: "on"
repeat: 1
can_acknowledge: true
skip_first: false
notifiers:
- mobile_app_telefon
There are two lists in my To-do list, one called nakup, second one is my real to do list. It working a little, it is opening homeassistant app but only on the last opened page - not good enough. When using classic notification th uri is working perfectly.
I am afraid it cannot read the the address properly, even with just /todo
or any other page in address the result is the same. Any ideas? Is it even possible with alerts? I like the idea when I leave the zone it will go off itself when no action took.