Generic Infrared RGB Light Button Driver
This driver provides a better user experience interface to control RGB lights with infrared control.
This is a generic driver, that will work with all RGB infrared devices. The driver will fire an event when a color is selected. The user will cycle through all the colors and after 5 seconds, the IR command is sent to the device.
Add the driver to the project, and connect the IR connection to the output.
If you do not want to offer the choice of all colors or white then set the corresponding ‘Display color’ property to ‘No’. This will ensure that the color is not available when you cycle through. Note you cannot remove all the colors!
Set the Infrared code for each light state:
The Select Color Now property enables you to select the color immediately for testing. Note if the color you select has its property set to No then the event will not fire.
Use the Navigator tab in System Design to select which rooms and on which menu the button will appear. It will be available for every room but will be hidden by default.
The driver don't need extra programming to work because it already send the IR code to the RGB device.
But you can create some buttons to execute this example:
Each press of the button will cycle to the next color available. A two second ‘debounce’ delay occurs before the event fires. This prevents the light showing unwanted colors as the customer cycles through.
Five seconds after the color has been set the next press of the button will turn the light off.