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