mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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:
parent
c780d7598a
commit
8e16c411f0
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user