[dali] Use correct command argument to query current color temperature (#13118)

Signed-off-by: Sebastian Philipp <github-ebqurd@s3lph.me>
This commit is contained in:
Sebastian P 2022-07-14 22:19:04 +02:00 committed by GitHub
parent c780d7598a
commit 8e16c411f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(