]> git.basschouten.com Git - openhab-addons.git/commit
[knx] Fix decoding of DPT 242.600 and add tests (#14875)
authorHolger Friedrich <holgerfriedrich@users.noreply.github.com>
Sun, 30 Apr 2023 12:03:54 +0000 (14:03 +0200)
committerGitHub <noreply@github.com>
Sun, 30 Apr 2023 12:03:54 +0000 (14:03 +0200)
commit043759567871d97ec00c1ba6eac371c0ed1d48f9
tree5df190c753d3287d982117e1e3b83494535b8c4c
parent6e2dddfe73d13442ab8ad77079062f1f595c4474
[knx] Fix decoding of DPT 242.600 and add tests (#14875)

* [knx] Fix decoding of DPT 242.600 and add tests

Correct handling of parameter Y for DPT 242.600.

Add back to back tests of DPT 232.600 and 242.600,
testing color conversion from raw bytes to HSB and
back to Calimero color representation as String.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/SerialTransportAdapter.java
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/dpt/ValueDecoder.java
bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/dpt/DPTTest.java