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.
This commit is contained in:
Michael Rumpf 2021-02-08 23:40:02 +01:00 committed by GitHub
parent a3f54134ca
commit 717ef5950a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 3 deletions

View File

@ -55,14 +55,23 @@
"property": "bg_bright", "property": "bg_bright",
"friendlyName": "Ambient Brightness", "friendlyName": "Ambient Brightness",
"channel": "ambientBrightness", "channel": "ambientBrightness",
"channelType": "ambientBrightness", "type": "Dimmer",
"type": "Number",
"refresh": true, "refresh": true,
"ChannelGroup": "actions", "ChannelGroup": "actions",
"actions": [ "actions": [
{ {
"command": "bg_set_bright", "command": "bg_set_bright",
"parameterType": "NUMBER" "parameterType": "NUMBER",
"condition": {
"name": "BrightnessExisting"
}
},
{
"command": "set_power",
"parameterType": "ONOFF",
"condition": {
"name": "BrightnessOnOff"
}
} }
] ]
}, },