In YIPI, there are a variety of ways to accomplish the same thing, depending on your design. A good example is controlling a device with a command that toggles. For instance:
- power on/off
- lights on/off
In some projects, you may want to use a single button that visually toggles (and sends 2 discreet commands. Other times you might want discreet on/off buttons.
In the example below, we demonstrate different techniques to send a toggle command using different button components. Included in the file are all the YIPI and WOWE project files to show how this works.