Hi all,
I have the following automation:
- initial_state: 'on'
alias: Diun Notify James
trigger:
platform: webhook
webhook_id: diun
action:
- service: notify.jamesgroup
data:
title: "{{trigger.json.status}} {{trigger.json.image}}"
message: "{{trigger.json.image}} updated on {{as_timestamp(trigger.json.created) | int | timestamp_custom('%d/%m at %H:%M')}}"
data:
tag: "{{ trigger.json.image }}"
clickAction: "{{trigger.json.hub_link}}"
icon_url: "/local/images/docker-icon.png"
notification_icon: "mdi:docker"
actions:
- action: "UPDATE_DOCKER"
title: "Update docker/restart"
- action: "URI"
title: "See site"
uri: "{{trigger.json.hub_link}}"
however, it appears I do not get the second action in my android notification (the URI one), and when I click the main notification - clickAction
should take me to the URL specified in the JSON, but it does not. Is anyone able to help with why this isn’t working? I suspect you cannot template URLs, but I cannot find this documented anywhere, and I’m not really sure why wit wouldn’t be possible!