mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +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) {
|
if (readDeviceTargetId != null) {
|
||||||
readAddress = DaliAddress.createShortAddress(readDeviceTargetId);
|
readAddress = DaliAddress.createShortAddress(readDeviceTargetId);
|
||||||
}
|
}
|
||||||
// Write argument 0x02 (query color temperature) to DTR0 and set DT8
|
// Write argument 0xc2 (query temporary color temperature) to DTR0 and set DT8
|
||||||
daliHandler.sendCommand(DaliStandardCommand.createSetDTR0Command(2));
|
daliHandler.sendCommand(DaliStandardCommand.createSetDTR0Command(0xc2));
|
||||||
daliHandler.sendCommand(DaliStandardCommand.createSetDeviceTypeCommand(8));
|
daliHandler.sendCommand(DaliStandardCommand.createSetDeviceTypeCommand(8));
|
||||||
// Mirek MSB is returned as result
|
// Mirek MSB is returned as result
|
||||||
CompletableFuture<@Nullable NumericMask> responseMsb = daliHandler.sendCommandWithResponse(
|
CompletableFuture<@Nullable NumericMask> responseMsb = daliHandler.sendCommandWithResponse(
|
||||||
|
Loading…
Reference in New Issue
Block a user