Notifications not functioning correctly

I am trying to trigger actionable notifications for android while passing through the data via data_template but it doesn’t want to work. I am passing data to the script and then calling the script s_alarm_trigger.

s_alarm_trigger:
  sequence:
  - delay:
      seconds: 1    
  - service: notify.mobile_app_josh_s8
    data_template:
      message: "{{ message }}"
    data:
      actions:
        - action: "silence_alarm"
          title: "Disarm Alarm"

I think you have an indentation problem. Should look like

  - service: notify.mobile_app_josh_s8
    data_template:
      message: "{{ message }}"
      data:
        actions:
          - action: "silence_alarm"
            title: "Disarm Alarm"
2 Likes