You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The brightness is now also sent as color_mode which leads to the following error message in the integration: TODO light.theater_lights implement color mode conversion for color_mode: brightness.
However, brightness setting is still working.
The brightness, onoff and unknown color modes can be filtered out in the integration. They only generate log warnings.
What needs to be implemented is XY -> HS color mode conversion.
RGB* color modes need further investigation. I don't have any lights which return this color mode. Also, the automatic conversion in HA (through the WS API) is still a mystery :-) My Hue lights report XY color mode, but setting a color still works with the hs_color parameter.
Extract and convert color information from received HA light entities.
Supported color modes: hs, xy, rgb
Assumption: HA sends the color_mode of the light, plus converted color
models. For example if the color_mode is `rgb`, then `hs` and `xy` modes
are included as well.
Include color model conversions as fallback, since the HA documentation
isn't very specific about the returned data.
Fixes#7
zehnm
changed the title
Light entity: verify color mode conversion for brightness
Light entity: fix color conversion & verify color mode conversion for brightness
Feb 2, 2024
Extract and convert color information from received HA light entities.
Supported color modes: hs, xy, rgb
Assumption: HA sends the color_mode of the light, plus converted color
models. For example if the color_mode is `rgb`, then `hs` and `xy` modes
are included as well.
Include color model conversions as fallback, since the HA documentation
isn't very specific about the returned data.
Fixes#7
Verify brightness handling / conversion.
The brightness is now also sent as
color_mode
which leads to the following error message in the integration:TODO light.theater_lights implement color mode conversion for color_mode: brightness
.However, brightness setting is still working.
https://developers.home-assistant.io/docs/core/entity/light/
The text was updated successfully, but these errors were encountered: