Message malformed: Unable to determine action @ data['action'][0]

Hello all

I am trying to create an automation that will send me a push notification whenever the state of my front door changes.
When creating this, I have the trigger defined as this:

And the Action, I have it in YAML form as this:
action:

  • data_template:
    message: “Front Door {{ trigger.to_state.state }}”
    service: notify.notify

I keep getting this error when I try to save:
Message malformed: Unable to determine action @ data[‘action’][0]

What am I doing wrong?

Please post the entire YAML and enclose it in three back ticks ` so its formatted properly. Then someone can help. you… (the three hamburger dots in the top right of the automation.

Thanks for that! Here is the full YAML code

alias: Push - Front Door Lock
description: ''
trigger:
  - platform: state
    entity_id:
      - lock.front_door_2
condition: []
action:
  - data_template:
        message: Front Door {{ trigger.to_state.state }}
      service: notify.notify
mode: single

I fixed it, had to change this:

action:
  - data_template:
        message: Front Door {{ trigger.to_state.state }}
      service: notify.notify

To this:

action:
data_template:
  message: "Front Door {{ trigger.to_state.state }}"
service: notify.notify