I bought some modules that go inside your switch box that are zigbee control....so you can use the light switch OR control via hubitat. I automatically turn off the bathroom light if its been on for 20 mins.
The issue is that the light switch may be in the UP position when its turned off.
I want to come up with a webcore or some code,etc that would be able to detect when I flip the switch several times
For example the switch is
starting Up - off
flip down - goes on
flip up - goes off
flip down - goes on (but I want it to detect the 3 flips and turn off
Same for
starting Down - on
flip up - off
flip down - on
flip up - off (but detect the flips and go on).
Anyone have a good approach to this ?