[Yeelight] Add color4 bulb (#11908)
* [Yeelight] Add color4 bulb Signed-off-by: Vlado Ilic <kakonema@gmail.com>
This commit is contained in:
parent
a1df7a82ff
commit
52b4bd8f10
|
@ -92,6 +92,7 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
|
||||||
case ceiling4:
|
case ceiling4:
|
||||||
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
|
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
|
||||||
case color:
|
case color:
|
||||||
|
case color4:
|
||||||
return new ThingUID(YeelightBindingConstants.THING_TYPE_WONDER, device.getDeviceId());
|
return new ThingUID(YeelightBindingConstants.THING_TYPE_WONDER, device.getDeviceId());
|
||||||
case mono:
|
case mono:
|
||||||
return new ThingUID(YeelightBindingConstants.THING_TYPE_DOLPHIN, device.getDeviceId());
|
return new ThingUID(YeelightBindingConstants.THING_TYPE_DOLPHIN, device.getDeviceId());
|
||||||
|
@ -117,6 +118,7 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
|
||||||
case ceiling4:
|
case ceiling4:
|
||||||
return YeelightBindingConstants.THING_TYPE_CEILING4;
|
return YeelightBindingConstants.THING_TYPE_CEILING4;
|
||||||
case color:
|
case color:
|
||||||
|
case color4:
|
||||||
return YeelightBindingConstants.THING_TYPE_WONDER;
|
return YeelightBindingConstants.THING_TYPE_WONDER;
|
||||||
case mono:
|
case mono:
|
||||||
return YeelightBindingConstants.THING_TYPE_DOLPHIN;
|
return YeelightBindingConstants.THING_TYPE_DOLPHIN;
|
||||||
|
|
|
@ -41,6 +41,7 @@ public class DeviceFactory {
|
||||||
case ceiling4:
|
case ceiling4:
|
||||||
return new CeilingDeviceWithAmbientDevice(id);
|
return new CeilingDeviceWithAmbientDevice(id);
|
||||||
case color:
|
case color:
|
||||||
|
case color4:
|
||||||
return new WonderDevice(id);
|
return new WonderDevice(id);
|
||||||
case mono:
|
case mono:
|
||||||
return new MonoDevice(id);
|
return new MonoDevice(id);
|
||||||
|
|
|
@ -22,6 +22,7 @@ public enum DeviceType {
|
||||||
mono4,
|
mono4,
|
||||||
ct_bulb,
|
ct_bulb,
|
||||||
color,
|
color,
|
||||||
|
color4,
|
||||||
ceiling,
|
ceiling,
|
||||||
ceiling1,
|
ceiling1,
|
||||||
ceiling3,
|
ceiling3,
|
||||||
|
|
|
@ -339,6 +339,7 @@ public class DeviceManager {
|
||||||
case ceiling4:
|
case ceiling4:
|
||||||
return "Yeelight LED Ceiling with ambient light";
|
return "Yeelight LED Ceiling with ambient light";
|
||||||
case color:
|
case color:
|
||||||
|
case color4:
|
||||||
return "Yeelight Color LED Bulb";
|
return "Yeelight Color LED Bulb";
|
||||||
case mono:
|
case mono:
|
||||||
return "Yeelight White LED Bulb";
|
return "Yeelight White LED Bulb";
|
||||||
|
|
Loading…
Reference in New Issue