Core: FLUX_LED LEDENET - Cannot change color

Created on 28 Aug 2017  路  13Comments  路  Source: home-assistant/core

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.52.0

Python release (python3 --version):
3.4.2

Component/platform:
Flux LED / ledenet protocol

Description of problem:
I can only turn on/off the led strip, but changing the color or brightness has no effect

Expected:
Changing the color scheme in HASS should change the led strip color

Problem-relevant configuration.yaml entries and steps to reproduce:

light:
    - platform: flux_led
      devices:
        192.168.1.2:
            name: kitchen_led
            protocol: 'ledenet'
            mode: 'rgb'



    1. 2.
  1. 3.

Traceback (if applicable):


Additional info:
Running with this controller: https://www.amazon.com/gp/product/B01DY56N8U

problem in dependency

All 13 comments

Have you tested your light with Flux led library we are using? https://github.com/Danielhiversen/flux_led
It might not be supported: https://github.com/Danielhiversen/flux_led/issues/47

https://github.com/home-assistant/home-assistant.github.io/pull/1669/files

According to this pull request (which was merged on Jan 9th) it should support that specific wifi controller

It needs RGBWWCW, I tried with flux_led but to no avail. Even set protocol to LEDENET

Have you tested your light directly with the Flux led library we are using? https://github.com/Danielhiversen/flux_led

$ pip install flux_led
Requirement already satisfied: flux_led in /srv/homeassistant/lib/python3.4/site-packages
$ python -m flux_led 192.168.1.2 --protocol LEDENET -c 0,255,0
Setting color RGB:(0, 255, 0)
[(0, 255, 0)]
Unknown ID [192.168.1.2] ON  [Color: (201, 62, 73) White: 13 raw state: 129,37,35,97,33,16,201,62,73,13,1,13,240,182,]

And for some reason I'm getting:

$ python -m flux_led 192.168.1.2 --protocol LEDENET -1
Unable to connect to bulb at [192.168.1.2]: bytearray index out of range

as an error now

It isn't working as it doesn't set the color, it says it is setting it. But it isn't propagating

Ok, than someone (probably you) with your light have to fix this in the library,
There is not much I can do without the light device.
There are a lot of these bulbs with similar protocols, and we currently do not support all of them

It works when duplicating line 944 of __main__.py
msg.append(special) Needs the extra CW byte.

Great, please open a pull request to the flux led library, and it will be added to the next version of HA

I don't know what the effect are on other led controller though!

That is a problem. We have some tests, so you have to make sure they are passing.
Then you can open a pull request, and I will ask some other users to test the changes before merging.

@Dunky13 Thank you!!! adding the extra CW byte works correctly on my LEDENET!

EDIT:
the last sources of the official repository works correctly, apparently the sources in home assistant are not the last version.

https://github.com/Danielhiversen/flux_led/commit/a97551d45a448bdb9ff8be8b397db0a9696f7140

I have made a new release of the flux led library, and it will be part of HA 0.55

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ciqsky picture Ciqsky  路  129Comments

neotrunks picture neotrunks  路  169Comments

WilldabeastHA picture WilldabeastHA  路  203Comments

sagilo picture sagilo  路  130Comments

ariel-madril picture ariel-madril  路  451Comments