Hello community!
Can you please help me with ESPhome built-in automation on Sonoff Basic with reed switch.
The goal is next:
I have a closet, there is a reed switch on the door. When the door opens, the light turns on, when it closes, it turns off accordingly (this was already implemented on Tasmota)
I also have a cat that can open doors, but haven’t learned how to close doors yet:(, so it is advisable that the light turns off if the door is open for more than i.e. 5 minutes.
I tried many options, nothing worked, I broke my head.
Hope for your help, THANKS!