Hey everyone,
i’m trying to get a clickAction notification on my phone with the call service node but it wont work.
I got it to work with an actionable notification, the data looks like this:
{
"message": "Test",
"data": {
"actions": [
{
"action": "URI",
"uri": "/lovelace/shopping-list"
}
]
}
}
But i want that i get the action while simply clicking on the notification without first swiping down to reveal the action. This should work like this in yaml:
automation:
- alias: "Notify of Motion click action"
trigger:
...
action:
- service: notify.mobile_app_<your_device_id_here>
data:
title: "Motion Detected in Backyard"
message: "Someone might be in the backyard."
data:
# iOS URL
url: "https://google.com"
# Android URL
clickAction: "https://google.com"
I tried to convert the working example to use the clickAction instead:
{
"message": "Test",
"data": {
"actions": [
{
"action": "clickAction",
"clickAction": "/lovelace/shopping-list"
}
]
}
}
Does anyone know how to correctly use the clickAction in this case ? And also where do i find documentation on what actions are supported ?