diff --git a/bundles/org.openhab.binding.yeelight/README.md b/bundles/org.openhab.binding.yeelight/README.md index 059864aaca7..0a2e925950c 100644 --- a/bundles/org.openhab.binding.yeelight/README.md +++ b/bundles/org.openhab.binding.yeelight/README.md @@ -4,10 +4,16 @@ This binding integrates the [Yeelight Lighting Product](https://www.yeelight.com ## Supported Things -- [Yeelight LED White Bulb](https://www.yeelight.com/zh_CN/product/wifi-led-w) (Thing type `dolphin`) -- [Yeelight LED Color Bulb](https://www.yeelight.com/zh_CN/product/wifi-led-c) (Thing type `wonder`) -- [Yeelight LED Color Stripe](https://www.yeelight.com/zh_CN/product/pitaya) (Thing type `stripe`) -- [Yeelight LED Ceiling Light](https://www.yeelight.com/en_US/product/luna) (Thing type `ceiling`) +| Device | Thing type ID | Device model | +|-------------------------------------------------------------------------------|---------------|-----------------------------------| +| [Yeelight LED Ceiling Light](https://us.yeelight.com/category/ceiling-light/) | `ceiling` | `ceiling`, `ceiling3` | +| [Yeelight LED Ceiling Light](https://us.yeelight.com/category/ceiling-light/) | `ceiling1` | `ceiling1`, `ceiling11`, `ceil26` | +| [Yeelight LED Ceiling Light](https://us.yeelight.com/category/ceiling-light/) | `ceiling4` | `ceiling4` | +| [Yeelight LED Color Bulb](https://us.yeelight.com/category/smart-bulb/) | `wonder` | `color`, `color4` | +| [Yeelight LED White Bulb](https://us.yeelight.com/category/smart-bulb/) | `dolphin` | `mono` | +| [Yeelight LED White Bulb v2](https://us.yeelight.com/category/smart-bulb/) | `ct_bulb` | `ct_bulb` | +| [Yeelight LED Color Stripe](https://us.yeelight.com/category/led-strip/) | `stripe` | `stripe`, `strip6` | +| [Yeelight Mi LED Desk Lamp](https://us.yeelight.com/category/table-lighting/) | `desklamp` | `desklamp` | ## Preconditions diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java index f2b61b5f19c..f43f7230d25 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java @@ -88,6 +88,8 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement case ceiling3: return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING, device.getDeviceId()); case ceiling1: + case ceil26: + case ceiling11: return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING1, device.getDeviceId()); case ceiling4: return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId()); @@ -113,6 +115,8 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement case ceiling: return YeelightBindingConstants.THING_TYPE_CEILING; case ceiling1: + case ceil26: + case ceiling11: return YeelightBindingConstants.THING_TYPE_CEILING1; case ceiling3: return YeelightBindingConstants.THING_TYPE_CEILING3; diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java index e283badcd48..c75dc3bc3c5 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java @@ -37,6 +37,8 @@ public class DeviceFactory { return new CeilingDevice(id); case ceiling1: case ceiling3: + case ceil26: + case ceiling11: return new CeilingDeviceWithNightDevice(id); case ceiling4: return new CeilingDeviceWithAmbientDevice(id); diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/enums/DeviceType.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/enums/DeviceType.java index 58f0f631067..6cabb1837a1 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/enums/DeviceType.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/enums/DeviceType.java @@ -27,6 +27,8 @@ public enum DeviceType { ceiling1, ceiling3, ceiling4, + ceil26, + ceiling11, stripe, strip6, desklamp diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java index a962671c836..091ed07d3a5 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java @@ -335,6 +335,8 @@ public class DeviceManager { return "Yeelight LED Ceiling"; case ceiling1: case ceiling3: + case ceil26: + case ceiling11: return "Yeelight LED Ceiling with night mode"; case ceiling4: return "Yeelight LED Ceiling with ambient light";