diff --git a/bundles/org.openhab.binding.miio/README.md b/bundles/org.openhab.binding.miio/README.md index cd88291ed48b..8662022cbc9c 100644 --- a/bundles/org.openhab.binding.miio/README.md +++ b/bundles/org.openhab.binding.miio/README.md @@ -175,7 +175,7 @@ This will change the communication method and the Mi IO binding can communicate # Mi IO Devices -Currently the miio binding supports more than 290 different models. +Currently the miio binding supports more than 300 different models. | Device | ThingType | Device Model | Supported | Remark | |------------------------------|------------------|------------------------|-----------|------------| @@ -412,6 +412,7 @@ Currently the miio binding supports more than 290 different models. | Mi Smart LED Living Room Ceiling Light | miio:basic | [yeelink.light.ceiling21](#yeelink-light-ceiling21) | Yes | | | Mi Smart LED Ceiling Light | miio:basic | [yeelink.light.ceiling22](#yeelink-light-ceiling22) | Yes | | | Mi Smart LED Ceiling Light (350mm) | miio:basic | [yeelink.light.ceiling23](#yeelink-light-ceiling23) | Yes | | +| Yeelight Jade Smart LED Ceiling Light C2001 | miio:basic | [yeelink.light.ceil26](#yeelink-light-ceil26) | Yes | | | Yeelight Color Bulb | miio:basic | [yeelink.light.color1](#yeelink-light-color1) | Yes | | | Yeelight LED Bulb (Color) | miio:basic | [yeelink.light.color2](#yeelink-light-color2) | Yes | | | Mi LED Smart Bulb (White and Color) | miio:basic | [yeelink.light.color3](#yeelink-light-color3) | Yes | | @@ -3382,6 +3383,19 @@ Note, not all the values need to be in the json file, e.g. a subset of the param | customScene | String | Set Scene | | | nightlightBrightness | Number | Nightlight Brightness | | +### Yeelight Jade Smart LED Ceiling Light C2001 (yeelink.light.ceil26) Channels + +| Channel | Type | Description | Comment | +|----------------------|----------------------|------------------------------------------|------------| +| power | Switch | Power | | +| brightness | Dimmer | Brightness | | +| delayoff | Number:Time | Shutdown Timer | | +| 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 | Number | Nightlight Brightness | | + ### Yeelight Color Bulb (yeelink.light.color1) Channels | Channel | Type | Description | Comment | @@ -8563,6 +8577,22 @@ String customScene "Set Scene" (G_light) {channel="miio:basic:light:customScene" Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} ``` +### Yeelight Jade Smart LED Ceiling Light C2001 (yeelink.light.ceil26) item file lines + +note: Autogenerated example. Replace the id (light) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +``` +Group G_light "Yeelight Jade Smart LED Ceiling Light C2001" +Switch power "Power" (G_light) {channel="miio:basic:light:power"} +Dimmer brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"} +Number:Time delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"} +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"} +Number nightlightBrightness "Nightlight Brightness" (G_light) {channel="miio:basic:light:nightlightBrightness"} +``` + ### Yeelight Color Bulb (yeelink.light.color1) item file lines note: Autogenerated example. Replace the id (light) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java index 4a851d72c07e..f40350b3a0b3 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java @@ -294,6 +294,7 @@ public enum MiIoDevices { YEELINK_LIGHT_CEILING21("yeelink.light.ceiling21", "Mi Smart LED Living Room Ceiling Light", THING_TYPE_BASIC), YEELINK_LIGHT_CEILING22("yeelink.light.ceiling22", "Mi Smart LED Ceiling Light", THING_TYPE_BASIC), YEELINK_LIGHT_CEILING23("yeelink.light.ceiling23", "Mi Smart LED Ceiling Light (350mm)", THING_TYPE_BASIC), + YEELINK_LIGHT_CEIL26("yeelink.light.ceil26", "Yeelight Jade Smart LED Ceiling Light C2001", THING_TYPE_BASIC), YEELINK_LIGHT_COLOR1("yeelink.light.color1", "Yeelight Color Bulb", THING_TYPE_BASIC), YEELINK_LIGHT_COLOR2("yeelink.light.color2", "Yeelight LED Bulb (Color)", THING_TYPE_BASIC), YEELINK_LIGHT_COLOR3("yeelink.light.color3", "Mi LED Smart Bulb (White and Color)", THING_TYPE_BASIC), 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 e330f542f612..8bb665c0921e 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 @@ -25,6 +25,7 @@ "yeelink.light.ceiling10.ambi", "yeelink.light.ceiling19.ambi", "yeelink.light.ceiling20.ambi", + "yeelink.light.ceil26", "yilai.light.ceiling1", "yilai.light.ceiling2", "yilai.light.ceiling3"