Notify clickAction in automation

I’m using latest HASSIO version and having problem with sending a clickable notification to my android phone through the android home assistant app.
When i create a service call in the development area with the following code it works as it should

{ 
  "title": "Ytterdörr öppnad!",
  "message": "View camera snapshots",
  "data": {
    "clickAction": "https://xxxx.yy.nabu.casa/local/stream/front_door.mp4"
    }
}

But i cant get it to work when i’m adding the code into an automation. No notifications is sent to my phone when using this in the automation

data:
  clickaction: 'https://xxxx.yy.nabu.casa/local/stream/front_door.mp4'

Anyone of you experts, who can help me in the right direction here?

It’s highly amusing that I just got this working…
Not sure why though, but this might come of as a stupid question:
Did you try clickAction: ?
I’ll leave my automation for referens, though it did work (you should be able to read the swedish):

- id: larm, lampa tändes
  alias: Notis när en lampa tänds
  trigger:
    - platform: state
      entity_id: 
        - light.kokslisten
        - light.vardagsrumslampan
        - light.lamporna_i_hallen
      from: 'off'
      to: 'on'
  action:
    - service_template: >
          {% if is_state('sensor.andreas_current_phone', 'device_tracker.iphone_11') %}
            notify.mobile_app_iphone_11
          {% elif is_state('sensor.andreas_current_phone', 'device_tracker.oneplus_7t_pro') %}
            notify.mobile_app_gm1913
          {% else %} notify.notify {% endif %}
      data_template: 
        message: >
          '{{ trigger.to_state.name }} tändes!'
        data:
          clickAction: '/lovelace/lampor/'

I’m far from an expert mind you.

1 Like

I know it’s been a few years on this, but I have the same issue.

I can get the click action to work in development, but not in an automation. Your examples are identical to what I currently have.

Calling service works:

{ 
  "message": "View camera snapshots",
  "data": {
    "clickAction": "https://homeassistant.xxxxx.net/lovelace-cameras/11"
    }
}

But calling it in an automation nope:

attachment:
  content-type: jpeg
push:
  badge: 0
  sound: wind-chimes-37762.wav
  category: camera
entity_id: camera.doorbell_cam_snapshots_sub
clickAction": https://homeassistant.xxxxx.net/lovelace-cameras/11

Any suggestions you found?