mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-06 14:31:13 +00:00
Fix light color temperature decoding
This commit is contained in:
@@ -1612,9 +1612,9 @@ def _light_color_temperature_event_type(mode: str) -> str | None:
|
||||
if mode == "relative":
|
||||
return "percent"
|
||||
if mode == "absolute":
|
||||
return "7.600"
|
||||
return "2byte_unsigned"
|
||||
if mode == "absolute_float":
|
||||
return "9"
|
||||
return "2byte_float"
|
||||
return None
|
||||
|
||||
|
||||
@@ -1668,8 +1668,7 @@ def _light_uses_white_channel(port: LightPort) -> bool:
|
||||
|
||||
|
||||
def _relative_dimming_step(value: int) -> tuple[str, int] | None:
|
||||
if value < 0 or value > 15:
|
||||
return None
|
||||
value = value & 0x0F
|
||||
if value == 0 or value == 8:
|
||||
return None
|
||||
if value <= 7:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"domain": "ha_knx_bridge",
|
||||
"name": "HA KNX Bridge",
|
||||
"version": "0.0.23",
|
||||
"version": "0.0.24",
|
||||
"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