Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for IKEA lights that don't update multiple state attributes #830

Closed
ebaauw opened this issue Nov 23, 2020 · 16 comments
Closed

Workaround for IKEA lights that don't update multiple state attributes #830

ebaauw opened this issue Nov 23, 2020 · 16 comments

Comments

@ebaauw
Copy link
Owner

ebaauw commented Nov 23, 2020

Several IKEA lights have a firmware bug, where they don't execute a second command received from the Hue bridge or deCONZ gateway, when the previous command is still in transition. Typically when setting both bri and ct or both bri and xy in one API call, the colour (temperature) changes, but the brightness does not. This is especially noticeable when adaptive lighting is enabled, as this changes the colour temperature when changing the brightness.

The usual workaround is to add a transitiontime of 0 to the API call. As of v0.12.3, Homebridge Hue does this automatically. The trade-off is, of course, that the transition is less smooth than usual. Because of this, the lights with the firmware bug need to be whitelisted, so well-behaving lights don't suffer unnecessarily.

Currently the following models are whitelisted:

  • TRADFRI bulb E27 CWS opal 600lm;
  • TRADFRI bulb E27 WS opal 980lm.

Please reply to this issue when you have another model with the firmware bug. I need the precise (case sensitive) modelid to whitelist the light, including any spaces and unprintable characters. Best attach the debug dump file, or run ph get /lights/xx/modelid and copy/paste the output.

@dheckl
Copy link

dheckl commented Nov 23, 2020

Please put the following bulbs on the whitelist, which also have the firmware bug:

  • "modelid": "TRADFRI bulb E12 WS2 opal 600lm"
  • "modelid": "TRADFRI bulb E14 WS opal 600lm"

@miquellaboria
Copy link

Also: “TRADFRI bulb E27 WS opal 1000lm”
Thanks!

@Einstein2150
Copy link

"modelid": "FLOALT panel WS 60x60",

"modelid": "TRADFRI bulb GU10 WS 400lm",

"modelid": "TRADFRI bulb E14 WS 470lm",

ebaauw added a commit that referenced this issue Nov 24, 2020
Whitelist more IKEA lights, see #830.
@jensflorian
Copy link

"modelid": "FLOALT panel WS 30x30"

@ebaauw
Copy link
Owner Author

ebaauw commented Nov 24, 2020

That's a lot of models with the firmware bug. Are there any IKEA lights that don't have this bug? I might be easier just to enable the workaround for all IKEA lights...

@luedefengzi
Copy link

  • FLOALT panel WS 30x90

This one is also having the same issue. And yes, probably all of the IKEA bulbs seem to have this bug, which might be an issue for quite some time now (even with Tradfri bridge it seems): https://www.reddit.com/r/tradfri/comments/jda2p5/homekit_scenes_dont_change_light_colour/?sort=confidence

btw: Thanks for this great plugin!

@Kristian8606
Copy link

Ikea needs to fix the firmware on their bulbs and they know about the problem. Until that happens, is it possible to add a button to turn off this option only for ikea bulbs, as my Chinese bulbs have no problem with this.

@kmplngj
Copy link

kmplngj commented Nov 26, 2020

@ebaauw Is this something decenz should be fix in the first row?

@ebaauw
Copy link
Owner Author

ebaauw commented Nov 26, 2020

It’s something that IKEA should fix in their firmware.

I’m really not sure whether a workaround should be implemented in the deCONZ REST API plugin, or in clients of the API, like Homebridge Hue. With their respective current designs, it’s relatively easy to implement in Homebridge Hue, and next to impossible in deCONZ. Also, the issue mostly appears with API clients for integration into other systems, updating multiple attributes in a single API call, rather than API clients providing a UI, typically providing separate controls (sliders) for brightness vs colour (temperature). For efficiency, Homebridge Hue combines the user-initiated new brightness and the computed colour temperature under adaptive lighting in one API call, further increasing exposure to the IKEA firmware bug.

@luedefengzi
Copy link

It’s just quite unfortunate that IKEA hasn’t fixed this since quite some time now. So your current work around is really helping me. Thank you for that!

@ebaauw
Copy link
Owner Author

ebaauw commented Dec 4, 2020

Looks like all IKEA light models exhibit the firmware bug. I'll just whitelist the brand, so we don't have to whitelist each model individually.

ebaauw added a commit that referenced this issue Dec 4, 2020
- Support `colorloopspeed` through new `ColorLoopSpeed` characteristic (deCONZ only);
- Support `effectSpeed` and `effectColours` for LIDL Xmas light strip;
- Apply workaround for firmware bug to all IKEA lights, instead of whitelisting models, see #830.
- Update HomeKit colour during colorloop, see #840.
@ebaauw
Copy link
Owner Author

ebaauw commented Dec 4, 2020

In v0.12.6.

@ebaauw ebaauw closed this as completed Dec 4, 2020
@FezVrasta
Copy link

Hi, I still experience this problem. Most of the times when I turn on an Ikea bulb nothing happens. May you please let me know if have you noticed a regression?

@ebaauw
Copy link
Owner Author

ebaauw commented Jun 18, 2021

Most of the times when I turn on an Ikea bulb nothing happens.

That's something completely different. Please don't hijack closed threads.

@FezVrasta
Copy link

FezVrasta commented Jun 18, 2021

I don't think it's a different issue, this can be observed when a brightness + color commands are sent in the same call, like it's described in this issue.

(Because sometimes only the color command is applied but the bulb stays off.)

@ebaauw
Copy link
Owner Author

ebaauw commented Jun 18, 2021

(Because sometimes only the color command is applied but the bulb stays off.)

That is technically impossible. Zigbee doesn’t support changing colour or brightness while a light is off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants