Danielhiversen / flux_led

A utility for controlling Flux WiFi Smart LED Light Bulbs
GNU Lesser General Public License v3.0
158 stars 144 forks source link

Magic Home Gradient On/Off Function? #394

Open TheAdamWoods opened 1 year ago

TheAdamWoods commented 1 year ago

Hello! I'm pretty new to HA and ultra new to Flux/Magic Home as I'm trying to get my fish tank light integrated into HA for gradual on/off as well as being able to control it from my dashboard. I'm using a Lominie 4 Channels WiFi Controller for Upgraded F20 S120 P80 S20 P30 (WiFi-4 Channels) which is getting picked up as an 0x6 device by the Magic Home integration.

I'm running HA Container as I'm running all my HA stuff on a Ubuntu machine. The light is found via the Magic Home integration with no problem and basic controls like turning the light on/off, as well as jumping between "colors" (the light isn't true RGB as it's it's just using different white lights for those channels).

I saw in the Magic Home App that there is the ability to do gradient on/off. Is this something that could be brought into the Flux_led/Magic Home integration? It would be awesome to have my HA trigger the gradient on/off at various times, as it's currently not possible within the Magic Home App to schedule a gradient on/off event..

Attached is a copy of the diagnostics for the controller if it will help and provide any insight.

I've tried writing a few different scripts including using a float for "transition" thinking maybe that would get it to work, but I've had no luck. Maybe I'm just missing something, or maybe it's not implemented yet (as this appears to be a newish controller).

Any help would be appreciated. Thanks!

config_entry-flux_led-5afc1c443403de0f6e305599c965a57c.json.txt

TheAdamWoods commented 1 year ago

So, I did a little more digging and was able to launch the console via Portainer and mess with flux_led directly. It looks like the sunrise and sunset feature is available, however, it only allows for RGB and not RGBW. I'm guessing this would now be a two-part request

  1. Allowing sunrise/sunset timers created via flux_led to include the white channel value. However, when testing these, I wasn't able to get them to work at all via CLI.
  2. Updating the Magic Home integration to allow sending the sunrise/sunset commands.