diff --git a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/LightThingHandler.java b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/LightThingHandler.java index 8668bc708..b576a9283 100644 --- a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/LightThingHandler.java +++ b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/LightThingHandler.java @@ -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); } diff --git a/bundles/org.openhab.binding.deconz/src/test/resources/org/openhab/binding/deconz/windowcovering.json b/bundles/org.openhab.binding.deconz/src/test/resources/org/openhab/binding/deconz/windowcovering.json index ddb63490f..3820c6936 100644 --- a/bundles/org.openhab.binding.deconz/src/test/resources/org/openhab/binding/deconz/windowcovering.json +++ b/bundles/org.openhab.binding.deconz/src/test/resources/org/openhab/binding/deconz/windowcovering.json @@ -4,7 +4,7 @@ "r": "lights", "state": { "alert": null, - "bri": 102, + "lift": 41, "on": true, "reachable": true },