Is there and easy way to set up a virtual switch to toggle light on and off. Ive created a momentary virtual switch from the IDE. But im not finding a good way to link everything together.
I want to press the virtual button and it turn the light on. I want to press the same button again and it turn the light off.