Message malformed. Extra keys not allowed @data

Guys,
Here is my code:

description: “”
mode: single
alias: Front Gate - Known Plate
triggers:

  • trigger: mqtt
    topic: BlueIris/FrontGate/alert
    payload: “"plate":"&PLATE"”
    condition: template
    value_template: “{{ trigger.payload_json.plate == ‘123456’ }}”
    action: cover.open_cover
    data:
    entity_id: cover.xhouse_971501361982083072
    target: null
    actions:
  • action: cover.open_cover
    target:
    entity_id: cover.xhouse_971501361982083072

I’m stuck. Any wise help much appreciated.

You need to post your code again and embed it in a “preformatted text” section in the post.
Mark the code from one line above to one line below and click the </>

Marking the text as preformatted text makes it show it as posted. Without it important indentations get lost.

1 Like

What WallyR said, it’s important. Also ‘@data’ stops just short of the important part of the error.

But if I had to guess from glancing at your post I’d go with the value of payload: should not be double quoted.

I detected at least three errors in the automation you posted.

If you composed it in YAML manually (or used AI), I recommend you delete it and start over using Home Assistant’s Automation Editor in Visual mode.