KaufHA / kauf-rgbww-bulbs

Files for the KAUF RGBWW Smart Bulbs
43 stars 19 forks source link

Default setting timeout after DDP stops #25

Closed bulldozer2003 closed 1 year ago

bulldozer2003 commented 1 year ago

I have my bulb (soon to be plural, I just ordered 5 more from Amazon) set to be controlled by WLED via DDP. It's awesome and thanks for this great product.

Is there a way to have the bulb return to a default setting after DDP packets stop being sent? I have my WLED controller and string on a basic mains timer. My kauf bulb is plugged into a socket with mains voltage all the time. I'd like for the kauf bulb to return to a default setting after a certain amount of time after WLED has stopped sending packets to control it.

I know WLED has the ability to turn on and off by timer, but it's more complex than just controlling them via an on/off timer.

Thanks!

bulldozer2003 commented 1 year ago

I inadvertently answered my own question. My bulb was rebooting itself and I found an issue here in GitHub where the solution for rebooting was to turn on the no hass option. Since I'm not using home assistant my bulb was rebooting itself with the "no client connected to API" message printed in the logs. Leaving that option off works in my favor because the bulb reboots itself periodically and boots into the power on state selected in the settings.

Now I just wish it would not reboot while receiving DDP packets, but that isn't a deal breaker for me, just a minor inconvenience. The bulb will reboot into the power on state but quickly change as as soon as DDP packets are received.