From 8e16c411f0bdacfd0a14479828a03e6cb4e65324 Mon Sep 17 00:00:00 2001 From: Sebastian P <5564491+s3lph@users.noreply.github.com> Date: Thu, 14 Jul 2022 22:19:04 +0200 Subject: [PATCH] [dali] Use correct command argument to query current color temperature (#13118) Signed-off-by: Sebastian Philipp --- .../binding/dali/internal/handler/DaliDt8DeviceHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/handler/DaliDt8DeviceHandler.java b/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/handler/DaliDt8DeviceHandler.java index d9111615d44..36e82641a01 100644 --- a/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/handler/DaliDt8DeviceHandler.java +++ b/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/handler/DaliDt8DeviceHandler.java @@ -86,8 +86,8 @@ public class DaliDt8DeviceHandler extends DaliDeviceHandler { if (readDeviceTargetId != null) { readAddress = DaliAddress.createShortAddress(readDeviceTargetId); } - // Write argument 0x02 (query color temperature) to DTR0 and set DT8 - daliHandler.sendCommand(DaliStandardCommand.createSetDTR0Command(2)); + // Write argument 0xc2 (query temporary color temperature) to DTR0 and set DT8 + daliHandler.sendCommand(DaliStandardCommand.createSetDTR0Command(0xc2)); daliHandler.sendCommand(DaliStandardCommand.createSetDeviceTypeCommand(8)); // Mirek MSB is returned as result CompletableFuture<@Nullable NumericMask> responseMsb = daliHandler.sendCommandWithResponse(