The Red, Green, Blue LEDs of a Sonoff B1 Lamp can be controlled by sending individual R, G, B vales, OR a single 24bit combined RGB value. At the bottom of the Annex Toolkit UDP Console tab are 3 sliders which broadcasts a 24bit combined RGB value to the subnet. These can be used as a UDP RGB lamp controller for the simple scripts below. Don't let the relative simplicity fool you... the identical script could be run on multiple devices to provide impressive synchronized lighting control. This first script is for use on a Sonoff B1 Lamp: |