Just replied to your reddit post. It’s easy with just three routines, no hub, no custom drivers, no more virtual switches:
- If the switch is On, Then “Turn on or Turn off” the light
- If the light is On for 15 seconds, precondition the switch is on, turn off the light
- If the light is Off for 15 seconds, precondition the switch is on, turn on the light


