/Updates: In the end I implemented with a timer inside ESPHome and works as expected. Even so, I don’t understand why lambda does not work with the delay.
I have the below implementation, and after a few runs, the switch stuck with ON state. Any ideas what I am doing wrong?
For small values (1-5s works as expected), but when I multiple with 60000 to have minutes it beginnings to not work anymore as expected.