Switch / Hue Bulb State Change Toggle

Oh, and if you really want to make it look like a lazy eight even when it isn’t, then make sure that changing the switch does not in any way control the current to the hue bulb.

There are a couple of ways to then create a toggle that takes into account the previous state of the bulb. I think the easiest way is going to be web core.