Flux LED Component Issue

I have 3 LED strips set up as a flux led components they show up in home assistant no problem however it takes toggling them twice to change state. It seems like the control and status is out of sync with one another. Has anyone else ran into this?

1 Like

Yes happening to me as well sometimes.

Have you found any solution? It’s strange that it with the MagicHome app works flawlessly but with HA the problem you describe happens all the time.

I haven’t found a solution to this issue

It is possible that brightness is not adjusted at all? I am using it with Xiaomi Ceiling lights.

  • disable_brightness_adjust ( Optional ): If true, brightness will not be adjusted besides color temperature. Defaults to False.

    - platform: flux
      lights:
        - light.yeelight_lights_1
      name: Fluxer Ceiling Lights
      start_time: '7:00'
      stop_time: '23:00'
      start_colortemp: 4000
      sunset_colortemp: 3000
      stop_colortemp: 1900
      brightness: 200
      mode: mired
      transition: 30
      interval: 60
    

light.yeelight_lights_1:

at 18:00 I checked:

brightness: 199
color_temp: 332

at 21:00 I checked:

brightness: 199
color_temp: 370

In log I see:

2018-10-09 21:12:00 ERROR (SyncWorker_2) [homeassistant.components.light.yeelight] Error when calling <function YeelightLight.set_colortemp at 0x7f24ff8499d8>: {'code': -5000, 'message': 'general error'}

2018-10-09 21:12:00 ERROR (SyncWorker_5) [homeassistant.components.light.yeelight] Error when calling <function YeelightLight.set_colortemp at 0x7f24ff8499d8>: {'code': -5000, 'message': 'general error'}

It’s two different things, we are talking about the led controller brand Flux :slight_smile:

I have the same issue on 0.83.3 (still). My 2 Flux WiFi controllers are frequently stubborn and need a toggle or 5

I got an Error, too. I don’t know why.
i am using hass.io Home Assistant 0.84.6

Error when calling <function YeelightLight.set_colortemp at 0x7322c420>: {‘code’: -5000, ‘message’: ‘general error’}

I have a different Issue, Flux_LED doesn’t load now. It failed on

2019-02-26 14:08:36 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform flux_led
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
  SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/flux_led.py", line 154, in setup_platform
  light = FluxLight(device)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/flux_led.py", line 169, in __init__
  self._custom_effect = device[CONF_CUSTOM_EFFECT]
KeyError: 'custom_effect

Not sure which of the Magic_light type controllers is failing on, I have some LED strip controllers and magic_lights as well.

Anyone else have this issue??

Rene’