Thank you for the advice it worked just fine. 👍
Now the lights turn on when I open the door, but also when I close the door.
How can I solve this situation, because I only want the light to turn on when I open the door?
The action is only on the "BUTTON SWITCHED ON URL".
I have a magnetic switch to know when the door is open. With this switch I also know when it is opening and close, because the status changes (opens Off to On) (closes On to Off).
How can I use this information to control the lights?