[Yeelight] Support of ceil26 and ceiling11 devices (#14668)
* Support of ceil26 and ceiling11 devices Signed-off-by: Alexandr Salamatov <goopilot@gmail.com>pull/14777/head
parent
ca667e39c5
commit
14d6b3e4fe
|
@ -4,10 +4,16 @@ This binding integrates the [Yeelight Lighting Product](https://www.yeelight.com
|
||||||
|
|
||||||
## Supported Things
|
## Supported Things
|
||||||
|
|
||||||
- [Yeelight LED White Bulb](https://www.yeelight.com/zh_CN/product/wifi-led-w) (Thing type `dolphin`)
|
| Device | Thing type ID | Device model |
|
||||||
- [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://us.yeelight.com/category/ceiling-light/) | `ceiling` | `ceiling`, `ceiling3` |
|
||||||
- [Yeelight LED Ceiling Light](https://www.yeelight.com/en_US/product/luna) (Thing type `ceiling`)
|
| [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
|
## Preconditions
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,8 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
|
||||||
case ceiling3:
|
case ceiling3:
|
||||||
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING, device.getDeviceId());
|
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING, device.getDeviceId());
|
||||||
case ceiling1:
|
case ceiling1:
|
||||||
|
case ceil26:
|
||||||
|
case ceiling11:
|
||||||
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING1, device.getDeviceId());
|
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING1, device.getDeviceId());
|
||||||
case ceiling4:
|
case ceiling4:
|
||||||
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
|
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
|
||||||
|
@ -113,6 +115,8 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
|
||||||
case ceiling:
|
case ceiling:
|
||||||
return YeelightBindingConstants.THING_TYPE_CEILING;
|
return YeelightBindingConstants.THING_TYPE_CEILING;
|
||||||
case ceiling1:
|
case ceiling1:
|
||||||
|
case ceil26:
|
||||||
|
case ceiling11:
|
||||||
return YeelightBindingConstants.THING_TYPE_CEILING1;
|
return YeelightBindingConstants.THING_TYPE_CEILING1;
|
||||||
case ceiling3:
|
case ceiling3:
|
||||||
return YeelightBindingConstants.THING_TYPE_CEILING3;
|
return YeelightBindingConstants.THING_TYPE_CEILING3;
|
||||||
|
|
|
@ -37,6 +37,8 @@ public class DeviceFactory {
|
||||||
return new CeilingDevice(id);
|
return new CeilingDevice(id);
|
||||||
case ceiling1:
|
case ceiling1:
|
||||||
case ceiling3:
|
case ceiling3:
|
||||||
|
case ceil26:
|
||||||
|
case ceiling11:
|
||||||
return new CeilingDeviceWithNightDevice(id);
|
return new CeilingDeviceWithNightDevice(id);
|
||||||
case ceiling4:
|
case ceiling4:
|
||||||
return new CeilingDeviceWithAmbientDevice(id);
|
return new CeilingDeviceWithAmbientDevice(id);
|
||||||
|
|
|
@ -27,6 +27,8 @@ public enum DeviceType {
|
||||||
ceiling1,
|
ceiling1,
|
||||||
ceiling3,
|
ceiling3,
|
||||||
ceiling4,
|
ceiling4,
|
||||||
|
ceil26,
|
||||||
|
ceiling11,
|
||||||
stripe,
|
stripe,
|
||||||
strip6,
|
strip6,
|
||||||
desklamp
|
desklamp
|
||||||
|
|
|
@ -335,6 +335,8 @@ public class DeviceManager {
|
||||||
return "Yeelight LED Ceiling";
|
return "Yeelight LED Ceiling";
|
||||||
case ceiling1:
|
case ceiling1:
|
||||||
case ceiling3:
|
case ceiling3:
|
||||||
|
case ceil26:
|
||||||
|
case ceiling11:
|
||||||
return "Yeelight LED Ceiling with night mode";
|
return "Yeelight LED Ceiling with night mode";
|
||||||
case ceiling4:
|
case ceiling4:
|
||||||
return "Yeelight LED Ceiling with ambient light";
|
return "Yeelight LED Ceiling with ambient light";
|
||||||
|
|
Loading…
Reference in New Issue