Fix elgato light color detection (#119177)

This commit is contained in:
Quentin 2024-06-10 20:58:15 +02:00 committed by GitHub
parent 51d78c3c25
commit 04c8a5574a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 4 deletions

View File

@ -59,7 +59,15 @@ class ElgatoLight(ElgatoEntity, LightEntity):
self._attr_unique_id = coordinator.data.info.serial_number
# Elgato Light supporting color, have a different temperature range
if self.coordinator.data.settings.power_on_hue is not None:
if (
self.coordinator.data.info.product_name
in (
"Elgato Light Strip",
"Elgato Light Strip Pro",
)
or self.coordinator.data.settings.power_on_hue
or self.coordinator.data.state.hue is not None
):
self._attr_supported_color_modes = {ColorMode.COLOR_TEMP, ColorMode.HS}
self._attr_min_mireds = 153
self._attr_max_mireds = 285

View File

@ -1,5 +1,5 @@
{
"productName": "Elgato Key Light",
"productName": "Elgato Light Strip",
"hardwareBoardType": 53,
"firmwareBuildNumber": 192,
"firmwareVersion": "1.0.3",

View File

@ -218,7 +218,7 @@
'labels': set({
}),
'manufacturer': 'Elgato',
'model': 'Elgato Key Light',
'model': 'Elgato Light Strip',
'name': 'Frenck',
'name_by_user': None,
'serial_number': 'CN11A1A00001',
@ -333,7 +333,7 @@
'labels': set({
}),
'manufacturer': 'Elgato',
'model': 'Elgato Key Light',
'model': 'Elgato Light Strip',
'name': 'Frenck',
'name_by_user': None,
'serial_number': 'CN11A1A00001',