Need some assistance creating "toggle" scripts

Hi. I have just received my Cozify hub. As a start I am using my existing 433MHz units. What I am trying to achieve is this: -1 wallswitch (up/down rocker) 1st push up (and 3rd, 5th etc.): Set dimmers to preset dim level. Turn on on/off switches if turned off. 2nd push up (and 4th, 6th etc.): Sett all dimmers to max power, keep on/off switches unchanged. Push down: Turn off lights. Previously, I solved this with this logic. Hopefully, it seems logically. IF wallswitch is turned on AND light X is turned off, THAN turn on on/off switches AND set dimmers to X%. IF wallswitch is turned on AND light X is dimmed, THAN turn on on/off switches AND set dimmers to 100%. IF wallswitch is turned on AND light X is on 100%, THAN turn on on/off switches AND set dimmers to X%. IF wallswitch is turned off, THAN turn off dimmers AND turn off on/off switches. Any example set-ups will be appreciated.
Login or Signup to post a comment