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.
WallyR
(Wally)
April 11, 2026, 8:56am
2
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.
123
(Taras)
April 11, 2026, 3:28pm
4
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.