I want to create a script, that accepts 4 different commands (on, off, lock, unlock) to create a “black box” with special features. BUT i can’t pass any data from the sender script to the receiver script, better say i can’t get the receiver to react to it.
Sorry, maybe i misdirected you. The Problem is Not, that the Data doesnt Reach the Receiver Script. The Problem is, that the condition Template doesnt seem to be interpreted right.
I don’t get that. I want to do an automation, which i can trigger from a script, or a love lace button and send 4 parameters as a command, on, off, lock and unlock. Depending on this command, i want the automation to do things. But i have to do it by an automation, because the same automation has to be triggered by a timer. If this wasn’t, i could do it by a script.
It should be a “blackbox” for light. on - light on, off - start timer, off after timer finishes, lock - light on and stay on, whatever happens, unlock - switch off light an go back to “automatic mode”, so to say switch of by timer.
Thats why i need an automation, which takes a variable command.
That’s the first time you’ve told us that. Automations do not take parameters, which is why you’re getting the error message. You could use an input_text helper and set that from your button, then have a change of that helper as one of the triggers for your automation; and the last step of the automation clears the helper.
Not sure how much help you’re looking for here: have you written the automation?