Add brightness state to emulated hue when devices support only color temp and brightness (#31834)
This commit is contained in:
parent
e365dc398b
commit
86c4fa0fc5
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue