Hello guys.
Been reading around regarding the delay/timer thing….
I’m planning a small automation where a timer runs out after 2 min - but can be reset if it’s triggered again before it runs out.
I’ve read around, so far I’m at using delays or a timer - as I understand both needs to be canceled if they exist - so I need to make a if statement to see if it’s already created before starting it - I assumed it’s same for both timers and delays?
Also I’ve read someone states that it’s easier to use a time stamp when it was triggered and set an action after some time….
This script is triggered by a helper, which is based on the door state. Any idea why it is instead turning the light off when the door is opened and closed again?