Emulated Hue: changed fallback device-type to fix Alexa compatibility issues (#30013) (#31330)

* Emulated Hue: changed the reported fallback device-type to fix Alexa compatibility issues (#30013)

* Emulated Hue: updated tests (#30013)
This commit is contained in:
Martin authored and Pascal Vizeli committed 2020-01-31 09:23:58 +00:00
1 parent 73f27c728c
commit 3635c4df50
2 files changed
+5 -4

No files matched your search

@@ -704,9 +704,10 @@ def entity_to_json(config, entity):
retval["modelid"] = "HASS123"
retval["state"].update({HUE_API_STATE_BRI: state[STATE_BRIGHTNESS]})
else:
# On/off light (Zigbee Device ID: 0x0000)
# Supports groups, scenes and on/off control
retval["type"] = "On/off light"
# On/off plug-in unit (Zigbee Device ID: 0x0000)
# Supports groups and on/off control
# Used for compatibility purposes with Alexa instead of "On/off light"
retval["type"] = "On/off plug-in unit"
retval["modelid"] = "HASS321"
return retval