]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] Add support for Yeelight Jade Smart LED Ceiling Light (#11241)
authorMarcel <marcel@verpaalen.com>
Mon, 13 Sep 2021 17:54:35 +0000 (19:54 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Sep 2021 17:54:35 +0000 (19:54 +0200)
Add support for  yeelink.light.ceil26 - Yeelight Jade Smart LED Ceiling
Light C2001

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
bundles/org.openhab.binding.miio/README.md
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java
bundles/org.openhab.binding.miio/src/main/resources/database/yeelink.light.ceiling.json

index cd88291ed48b462ec0fb38d3e7b4b62d914b65b1..8662022cbc9c55f27efa1f6b2306db6172133d05 100644 (file)
@@ -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 (<a name="yeelink-light-ceil26">yeelink.light.ceil26</a>) 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 (<a name="yeelink-light-color1">yeelink.light.color1</a>) 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" <status>
+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.
index 4a851d72c07eae8544e6c513a9c24c13bfc340d3..f40350b3a0b3738ca0618903f4b8e0e83d8c78b8 100644 (file)
@@ -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),
index e330f542f6125d11e78d2eb37b548f94c247ebef..8bb665c0921ec3803a549e3e00164becd2a3fa5f 100644 (file)
@@ -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"