MagicLight Flux WiFi Color LED Light Component Support

I have a number of these lights in the house. They are all the same, under different names, all ~ $28-$35:

They use the Magic Home app to control:

And someone reverse engineered the protocol and created a nice and easy to use python script to control via command line:

I’ve integrated them crudely into my system as command line switches:

- platform: command_line
  switches:
    lamppost:
      oncmd: "/usr/local/bin/flux_led.py 192.168.0.106 --on"
      offcmd: "/usr/local/bin/flux_led.py 192.168.0.106 --off"
      statecmd: "/usr/local/bin/flux_led.py 192.168.0.106 -i | awk '/ON/{ print \"on\" }'"
      value_template: '{{ value == "on" }}'

Would it be so difficult, given the availability of the python script already written, to create a more feature rich, native LED color light? Could someone take on this challenge?

1 Like

I would suggest you make a post in the Feature request part of the forum with all the available information.
Have in mind that it’s in general hard to make a component without access to the hardware.

1 Like

Beautiful idea! Ok - if someone (in the US) feels confident they could create this component, I’ll send them one of these light bulbs to make it easier to test.

I’ll also cross post to Feature Request later when I have a few minutes. I was debating if this made more sense there or here. Perhaps I didn’t choose wisely. Thank you, though, Landrash, for the reply!

1 Like