openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.43k stars 254 forks source link

MOOD Light #670

Open valeklubomir opened 1 year ago

valeklubomir commented 1 year ago

Functionality. Is it possible on RGB LED light to activate mode where color is randomly changed ? Standalone. I have LSC Smart LED MOOD LIGHT. Button just toggles last color setup.

openshwprojects commented 1 year ago

There are no animations yet, but there is a "led_nextColor" command and you could create a loop with scripting system and call that command every second or 500ms. You could also write a script that changes led_saturation and led_hue every 50ms or so (on each quicktick, maybe?), if that is what you need.

Or do you want a button for a random color change once, when user presses? Then, there is already a "led_nextColor" command which can be tied to double click/triple click/4 clicks, etc.

I will try making an example of it later today, wait...