From 9db3900cff5ff746ef564406b4c1f9e27f9f871c Mon Sep 17 00:00:00 2001 From: Slava Date: Fri, 13 Mar 2020 23:42:47 +0100 Subject: [PATCH] Add brightness state to emulated hue when devices support only color temp and brightness (#31834) --- homeassistant/components/emulated_hue/hue_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/emulated_hue/hue_api.py b/homeassistant/components/emulated_hue/hue_api.py index 9a2d624a55f..06a57960898 100644 --- a/homeassistant/components/emulated_hue/hue_api.py +++ b/homeassistant/components/emulated_hue/hue_api.py @@ -677,7 +677,11 @@ def entity_to_json(config, entity): retval["type"] = "Color temperature light" retval["modelid"] = "HASS312" 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 & ( SUPPORT_BRIGHTNESS