mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add brightness state to emulated hue when devices support only color temp and brightness (#31834)
This commit is contained in:
parent
fd5895118e
commit
9db3900cff
@ -677,7 +677,11 @@ def entity_to_json(config, entity):
|
|||||||
retval["type"] = "Color temperature light"
|
retval["type"] = "Color temperature light"
|
||||||
retval["modelid"] = "HASS312"
|
retval["modelid"] = "HASS312"
|
||||||
retval["state"].update(
|
retval["state"].update(
|
||||||
{HUE_API_STATE_COLORMODE: "ct", HUE_API_STATE_CT: state[STATE_COLOR_TEMP]}
|
{
|
||||||
|
HUE_API_STATE_COLORMODE: "ct",
|
||||||
|
HUE_API_STATE_CT: state[STATE_COLOR_TEMP],
|
||||||
|
HUE_API_STATE_BRI: state[STATE_BRIGHTNESS],
|
||||||
|
}
|
||||||
)
|
)
|
||||||
elif entity_features & (
|
elif entity_features & (
|
||||||
SUPPORT_BRIGHTNESS
|
SUPPORT_BRIGHTNESS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user