From 717ef5950a064ba4599f5cb2c9a89a07ac6469e3 Mon Sep 17 00:00:00 2001 From: Michael Rumpf Date: Mon, 8 Feb 2021 23:40:02 +0100 Subject: [PATCH] GH-9936 Fixed datatype for brightness of the ambient light (#10065) The ceiling10 Yeelight lamp has 2 dimmer for brightness: "bright" for the main light and bg_bright for the ambient light. Both are of type dimmer and accept percentage values between 1 and 100. This fix changes the datatype of the bg_bright property from Number to Dimmer in the device mapping database file ceiling4, which is also the one that is used for the ceiling10 lamp. Accepted without sign-off under minor change exemption. --- .../database/yeelink.light.ceiling4.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling4.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling4.json index a589bc11a..488353fdd 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling4.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling4.json @@ -55,14 +55,23 @@ "property": "bg_bright", "friendlyName": "Ambient Brightness", "channel": "ambientBrightness", - "channelType": "ambientBrightness", - "type": "Number", + "type": "Dimmer", "refresh": true, "ChannelGroup": "actions", "actions": [ { "command": "bg_set_bright", - "parameterType": "NUMBER" + "parameterType": "NUMBER", + "condition": { + "name": "BrightnessExisting" + } + }, + { + "command": "set_power", + "parameterType": "ONOFF", + "condition": { + "name": "BrightnessOnOff" + } } ] },