mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-06 16:51:14 +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:
|
||||
|
||||
Reference in New Issue
Block a user