Hi
I try to create automation but something wrong
when I open door, close door, and open again - the light its turn off even in 30 secondes
I try after 10 minutes the light its turn off
First of all, could you explain what exactly you want to achieve?
I presume it is to have the light on for 10 minutes after the door was open, but who knows…
Speaking about the solution, I’d recommend to use timer instead of delay as to start with.
Create a timer and start it every time your door is open. You’ll need a second automation that triggers when your timer finishes and it should actually turn off your light.
Let me know if you need further help with it.
Have you read the documentation on timer, the very first paragraph?
You need to define one timer in your configuration and on opening the door call timer.start service for the particular timer (so you always have one timer).
The result is your timer will finish 10 minutes after the last time your door was opened (and the light will be turned off as a result).
Basically this is my translation from the documentation and it works fine for me. In my case. It is well documented but does require you to learn and understand how to configure it. That will stand you in good stead for all future automatons/configurations.