[Yeelight] Add color4 bulb (#11908)

* [Yeelight] Add color4 bulb

Signed-off-by: Vlado Ilic <kakonema@gmail.com>
This commit is contained in:
kakonema
2021-12-31 16:39:46 +01:00
committed by GitHub
parent a1df7a82ff
commit 52b4bd8f10
4 changed files with 5 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -22,6 +22,7 @@ public enum DeviceType {
mono4, mono4,
ct_bulb, ct_bulb,
color, color,
color4,
ceiling, ceiling,
ceiling1, ceiling1,
ceiling3, ceiling3,

View File

@@ -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";