I have downlights that have the option of three colors:
warm white, cold and day.
the color is changed by short pulsing the input.
I have a motion sensor and relays.
How do I set up a 3 position dial or switch with WW CW or DW so that the motion sensor and the manual switch selects the color according to this dial?
If the switch is in position WW then it just has to energize the relay.
In position CW it has to pulse once before powering the relay.
And in DW pulse twice before leaving it on.