Use mired color temperature service

This commit is contained in:
2026-02-15 21:46:50 +01:00
parent d9b4e39a69
commit 60b436f79f
5 changed files with 10 additions and 6 deletions

View File

@@ -1167,7 +1167,7 @@ class BridgeManager:
await self._call_light_service(
port.entity_id,
"turn_on",
{ATTR_COLOR_TEMP_KELVIN: int(round(kelvin))},
{"color_temp": _kelvin_to_mireds(kelvin)},
)
return
@@ -1477,7 +1477,7 @@ class BridgeManager:
await self._call_light_service(
port.entity_id,
"turn_on",
{ATTR_COLOR_TEMP_KELVIN: int(round(next_kelvin))},
{"color_temp": _kelvin_to_mireds(next_kelvin)},
)
await asyncio.sleep(0.3)