From e7964f2b97521aaf704072eed5c7ba3c01c84ca9 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 16 Nov 2022 13:26:26 +0100 Subject: [PATCH] [miio] Fix dimming channels for several yeelights (#13724) The majority of brightness channels were already converted to dimmer. This PR applies same to the 'other'brightness channels like nightlight and/or ambient close: #9936 Signed-off-by: Marcel Verpaalen Signed-off-by: Andras Uhrin --- bundles/org.openhab.binding.miio/README.md | 130 +++++++++--------- .../database/yeelink.light.ceiling.json | 2 +- .../database/yeelink.light.ceiling2.json | 2 +- .../database/yeelink.light.ceiling4.json | 2 +- 4 files changed, 70 insertions(+), 66 deletions(-) diff --git a/bundles/org.openhab.binding.miio/README.md b/bundles/org.openhab.binding.miio/README.md index 85d5044a6e0a4..0b66a36358edd 100644 --- a/bundles/org.openhab.binding.miio/README.md +++ b/bundles/org.openhab.binding.miio/README.md @@ -184,7 +184,7 @@ This will change the communication method and the Mi IO binding can communicate # Mi IO Devices -Currently the miio binding supports more than 330 different models. +Currently the miio binding supports more than 340 different models. | Device | ThingType | Device Model | Supported | Remark | |------------------------------------|------------------|------------------------|--------------|------------| @@ -3599,7 +3599,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light SE (yeelink.light.ceiling2) Channels @@ -3612,7 +3612,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight LED Ceiling Light (yeelink.light.ceiling3) Channels @@ -3625,7 +3625,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight LED Ceiling Light (yeelink.light.ceiling4) Channels @@ -3643,7 +3643,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | ambientColorTemperature | Number | Ambient Color Temperature | | | customScene | String | Set Scene | | | ambientColorMode | Number | Ambient Color Mode | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling4.ambi) Channels @@ -3656,7 +3656,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Mi LED Ceiling Light (yeelink.light.ceiling5) Channels @@ -3669,7 +3669,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight HaoShi LED Ceiling Lamp Pro (yeelink.light.ceiling6) Channels @@ -3682,7 +3682,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Haoshi Ceiling Lamp (yeelink.light.ceiling7) Channels @@ -3695,7 +3695,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### LED Ceiling Light Crystal Plus (yeelink.light.ceiling8) Channels @@ -3708,7 +3708,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight HaoShi LED Ceiling Lamp Pro (yeelink.light.ceiling9) Channels @@ -3721,7 +3721,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Crystal Pendant Lamp (yeelink.light.ceiling10) Channels @@ -3739,7 +3739,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | ambientColorTemperature | Number | Ambient Color Temperature | | | customScene | String | Set Scene | | | ambientColorMode | Number | Ambient Color Mode | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling10.ambi) Channels @@ -3752,7 +3752,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light 320 1S (yeelink.light.ceiling11) Channels @@ -3765,7 +3765,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Stylized Ceiling Light Pro (yeelink.light.ceiling12) Channels @@ -3778,7 +3778,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light (yeelink.light.ceiling13) Channels @@ -3791,7 +3791,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light Mini (yeelink.light.ceiling14) Channels @@ -3804,7 +3804,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light 480 1S (yeelink.light.ceiling15) Channels @@ -3817,7 +3817,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Xingyu Ceiling Light (yeelink.light.ceiling16) Channels @@ -3830,7 +3830,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight ShaoHua Celing Light (yeelink.light.ceiling17) Channels @@ -3843,7 +3843,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light Pro (yeelink.light.ceiling18) Channels @@ -3856,7 +3856,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light Pro (yeelink.light.ceiling19) Channels @@ -3869,7 +3869,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling19.ambi) Channels @@ -3882,7 +3882,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Ceiling Light (yeelink.light.ceiling20) Channels @@ -3895,7 +3895,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling20.ambi) Channels @@ -3908,7 +3908,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Mi Smart LED Living Room Ceiling Light (yeelink.light.ceiling21) Channels @@ -3921,7 +3921,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Mi Smart LED Ceiling Light (yeelink.light.ceiling22) Channels @@ -3934,7 +3934,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Mi Smart LED Ceiling Light (350mm) (yeelink.light.ceiling23) Channels @@ -3947,7 +3947,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Jade Smart LED Ceiling Light C2001 (yeelink.light.ceil26) Channels @@ -3960,7 +3960,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Color Bulb (yeelink.light.color1) Channels @@ -4264,6 +4264,8 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorTemperature | Number | Color Temperature | | | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | +| customScene | String | Set Scene | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yeelight Lightstrip (yeelink.light.strip1) Channels @@ -4338,7 +4340,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yilai Ceiling Lamp Hefeng 430 (yilai.light.ceiling2) Channels @@ -4351,7 +4353,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Yilai Ceiling Lamp Hefeng Pro (yilai.light.ceiling3) Channels @@ -4364,7 +4366,7 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | colorMode | Number | Color Mode | Note, currently only supporting switching to RGB or CT mode. Value mapping `["0"="Default","2"="CT mode","1"="RGB mode","3"="HSV mode","4"="Color Flow mode","5"="Night Light mode"]` | | name | String | Name | | | customScene | String | Set Scene | | -| nightlightBrightness | Number | Nightlight Brightness | | +| nightlightBrightness | Dimmer | Nightlight Brightness | | ### Mi Water Purifier lx2 (yunmi.waterpuri.lx2) Channels @@ -9415,7 +9417,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Ceiling Light SE (yeelink.light.ceiling2) item file lines @@ -9431,7 +9433,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight LED Ceiling Light (yeelink.light.ceiling3) item file lines @@ -9447,7 +9449,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight LED Ceiling Light (yeelink.light.ceiling4) item file lines @@ -9468,7 +9470,7 @@ Color ambientColor "Ambient Color" (G_light) {channel="miio:basic:light:ambientC Number ambientColorTemperature "Ambient Color Temperature" (G_light) {channel="miio:basic:light:ambientColorTemperature"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} Number ambientColorMode "Ambient Color Mode" (G_light) {channel="miio:basic:light:ambientColorMode"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling4.ambi) item file lines @@ -9484,7 +9486,7 @@ Number colorTemperature "Color Temperature" (G_ceiling4) {channel="miio:basic:ce Number colorMode "Color Mode" (G_ceiling4) {channel="miio:basic:ceiling4:colorMode"} String name "Name" (G_ceiling4) {channel="miio:basic:ceiling4:name"} String customScene "Set Scene" (G_ceiling4) {channel="miio:basic:ceiling4:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_ceiling4) {channel="miio:basic:ceiling4:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_ceiling4) {channel="miio:basic:ceiling4:nightlightBrightness"} ``` ### Mi LED Ceiling Light (yeelink.light.ceiling5) item file lines @@ -9500,7 +9502,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight HaoShi LED Ceiling Lamp Pro (yeelink.light.ceiling6) item file lines @@ -9516,7 +9518,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Haoshi Ceiling Lamp (yeelink.light.ceiling7) item file lines @@ -9532,7 +9534,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### LED Ceiling Light Crystal Plus (yeelink.light.ceiling8) item file lines @@ -9548,7 +9550,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight HaoShi LED Ceiling Lamp Pro (yeelink.light.ceiling9) item file lines @@ -9564,7 +9566,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Crystal Pendant Lamp (yeelink.light.ceiling10) item file lines @@ -9585,7 +9587,7 @@ Color ambientColor "Ambient Color" (G_light) {channel="miio:basic:light:ambientC Number ambientColorTemperature "Ambient Color Temperature" (G_light) {channel="miio:basic:light:ambientColorTemperature"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} Number ambientColorMode "Ambient Color Mode" (G_light) {channel="miio:basic:light:ambientColorMode"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling10.ambi) item file lines @@ -9601,7 +9603,7 @@ Number colorTemperature "Color Temperature" (G_ceiling10) {channel="miio:basic:c Number colorMode "Color Mode" (G_ceiling10) {channel="miio:basic:ceiling10:colorMode"} String name "Name" (G_ceiling10) {channel="miio:basic:ceiling10:name"} String customScene "Set Scene" (G_ceiling10) {channel="miio:basic:ceiling10:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_ceiling10) {channel="miio:basic:ceiling10:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_ceiling10) {channel="miio:basic:ceiling10:nightlightBrightness"} ``` ### Yeelight Ceiling Light 320 1S (yeelink.light.ceiling11) item file lines @@ -9617,7 +9619,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Stylized Ceiling Light Pro (yeelink.light.ceiling12) item file lines @@ -9633,7 +9635,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Ceiling Light (yeelink.light.ceiling13) item file lines @@ -9649,7 +9651,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Ceiling Light Mini (yeelink.light.ceiling14) item file lines @@ -9665,7 +9667,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Ceiling Light 480 1S (yeelink.light.ceiling15) item file lines @@ -9681,7 +9683,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Xingyu Ceiling Light (yeelink.light.ceiling16) item file lines @@ -9697,7 +9699,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight ShaoHua Celing Light (yeelink.light.ceiling17) item file lines @@ -9713,7 +9715,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Ceiling Light Pro (yeelink.light.ceiling18) item file lines @@ -9729,7 +9731,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Ceiling Light Pro (yeelink.light.ceiling19) item file lines @@ -9745,7 +9747,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling19.ambi) item file lines @@ -9761,7 +9763,7 @@ Number colorTemperature "Color Temperature" (G_ceiling19) {channel="miio:basic:c Number colorMode "Color Mode" (G_ceiling19) {channel="miio:basic:ceiling19:colorMode"} String name "Name" (G_ceiling19) {channel="miio:basic:ceiling19:name"} String customScene "Set Scene" (G_ceiling19) {channel="miio:basic:ceiling19:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_ceiling19) {channel="miio:basic:ceiling19:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_ceiling19) {channel="miio:basic:ceiling19:nightlightBrightness"} ``` ### Yeelight Ceiling Light (yeelink.light.ceiling20) item file lines @@ -9777,7 +9779,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight LED Ceiling Ambi Lamp (yeelink.light.ceiling20.ambi) item file lines @@ -9793,7 +9795,7 @@ Number colorTemperature "Color Temperature" (G_ceiling20) {channel="miio:basic:c Number colorMode "Color Mode" (G_ceiling20) {channel="miio:basic:ceiling20:colorMode"} String name "Name" (G_ceiling20) {channel="miio:basic:ceiling20:name"} String customScene "Set Scene" (G_ceiling20) {channel="miio:basic:ceiling20:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_ceiling20) {channel="miio:basic:ceiling20:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_ceiling20) {channel="miio:basic:ceiling20:nightlightBrightness"} ``` ### Mi Smart LED Living Room Ceiling Light (yeelink.light.ceiling21) item file lines @@ -9809,7 +9811,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Mi Smart LED Ceiling Light (yeelink.light.ceiling22) item file lines @@ -9825,7 +9827,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Mi Smart LED Ceiling Light (350mm) (yeelink.light.ceiling23) item file lines @@ -9841,7 +9843,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Jade Smart LED Ceiling Light C2001 (yeelink.light.ceil26) item file lines @@ -9857,7 +9859,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Color Bulb (yeelink.light.color1) item file lines @@ -10239,6 +10241,8 @@ Number:Time delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delay Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light:colorTemperature"} Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} +String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yeelight Lightstrip (yeelink.light.strip1) item file lines @@ -10331,7 +10335,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yilai Ceiling Lamp Hefeng 430 (yilai.light.ceiling2) item file lines @@ -10347,7 +10351,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Yilai Ceiling Lamp Hefeng Pro (yilai.light.ceiling3) item file lines @@ -10363,7 +10367,7 @@ Number colorTemperature "Color Temperature" (G_light) {channel="miio:basic:light Number colorMode "Color Mode" (G_light) {channel="miio:basic:light:colorMode"} String name "Name" (G_light) {channel="miio:basic:light:name"} String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene"} -Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +Dimmer nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` ### Mi Water Purifier lx2 (yunmi.waterpuri.lx2) item file lines diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json index 09851a3c2b157..5cc6660e3801e 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json @@ -244,7 +244,7 @@ "property": "nl_br", "friendlyName": "Nightlight Brightness", "channel": "nightlightBrightness", - "type": "Number", + "type": "Dimmer", "refresh": true, "actions": [], "category": "light", diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json index c6cc80f464ccd..d7535a114b3f5 100644 --- a/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling2.json @@ -218,7 +218,7 @@ "property": "nl_br", "friendlyName": "Nightlight Brightness", "channel": "nightlightBrightness", - "type": "Number", + "type": "Dimmer", "refresh": true, "actions": [], "category": "light", 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 064f54009db18..854ba611de413 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 @@ -298,7 +298,7 @@ "property": "nl_br", "friendlyName": "Nightlight Brightness", "channel": "nightlightBrightness", - "type": "Number", + "type": "Dimmer", "refresh": true, "actions": [], "category": "light",