I have a very basic question but I want to know how to program it the right way. What I want to do is control is a simple dimmer that goes ON and OFF on a timer schedule BUT can also be manually controlled by a switch. So when the Timer is active and the light is ON I'm always able to switch it OFF manually and when the Timer is OFF and the light is OFF I can switch it ON manually. The Timer has to take over when there is a Time trigger so when I go to bed and forget to switch off the light, the Timer will do it for me.
Everything I tried is not working 100%, or I can't switch ON and OFF manually or when I do switch ON manually, the timer does not switch it OFF?
I have included an example but I know this is not the right way, can somebody please help me on my way

Kommentar