Hi!
Can somebody help me with automation in Esphome?``.I have door sensor and a switch in my esp32 yaml.And right now the door sensor toggles a switch only when door opens.(open the door to enter to toilet,switch turns on ,closing the door,switch does nothing,and whel i leavs toilet-open the door again,switch turns off.Works nice and perfect.Now i need to add automation,if door is open longer than 10 sec and door closes, the switch turning off.
sorry about my english.