I am trying to create a simple script that takes 2 variables: a “garage_door” entity_id and “open_id” entity_id". I want to check that the state of the “open_id” is on (open) before I run the sequence to turn on the light of “garage_door” (that’s how the opener works. Essentially, I don’t want the script to execute if the door is closed. I have 2 garage doors and am trying to abstract the common components.
But I get "Message malformed: extra keys not allowed @data[‘condition’]. I’ve tried every format I can find, but nothing works. By the way, the part from sequence and below does work (with the one variable, “garage_door”).
Any help you could provide would help immensely. Thank you.