mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-06 14:31:13 +00:00
Use mired color temperature service
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"domain": "ha_knx_bridge",
|
||||
"name": "HA KNX Bridge",
|
||||
"version": "0.0.28",
|
||||
"version": "0.0.29",
|
||||
"config_flow": true,
|
||||
"documentation": "https://github.com/bahmcloud/HA-KNX-Bridge",
|
||||
"issue_tracker": "https://github.com/bahmcloud/HA-KNX-Bridge/issues",
|
||||
|
||||
Reference in New Issue
Block a user