[deconz] Update the roller shutter status (#14827)
* [deconz] update the roller shutter status (14826) - if the REST interface from deconz provides a 'lift' value to show the current position of the roller shutter, it will be used. Signed-off-by: Daniel Zainzinger <dza1@mailbox.org>
This commit is contained in:
parent
5ed52d7109
commit
6436cdffb9
|
@ -395,7 +395,12 @@ public class LightThingHandler extends DeconzBaseThingHandler {
|
|||
updateState(channelUID, new DecimalType(miredToKelvin(ct)));
|
||||
}
|
||||
}
|
||||
case CHANNEL_POSITION -> updatePercentTypeChannel(channelUID, newState.bri, true); // always post value
|
||||
case CHANNEL_POSITION -> {
|
||||
Integer lift = newState.lift;
|
||||
if (lift != null) {
|
||||
updateState(channelUID, new PercentType(lift));
|
||||
}
|
||||
}
|
||||
case CHANNEL_EFFECT -> updateStringChannel(channelUID, newState.effect);
|
||||
case CHANNEL_EFFECT_SPEED -> updateDecimalTypeChannel(channelUID, newState.effectSpeed);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"r": "lights",
|
||||
"state": {
|
||||
"alert": null,
|
||||
"bri": 102,
|
||||
"lift": 41,
|
||||
"on": true,
|
||||
"reachable": true
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue