[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,7 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
case ceiling4:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
case color:
case color4:
return new ThingUID(YeelightBindingConstants.THING_TYPE_WONDER, device.getDeviceId());
case mono:
return new ThingUID(YeelightBindingConstants.THING_TYPE_DOLPHIN, device.getDeviceId());
@ -117,6 +118,7 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
case ceiling4:
return YeelightBindingConstants.THING_TYPE_CEILING4;
case color:
case color4:
return YeelightBindingConstants.THING_TYPE_WONDER;
case mono:
return YeelightBindingConstants.THING_TYPE_DOLPHIN;

View File

@ -41,6 +41,7 @@ public class DeviceFactory {
case ceiling4:
return new CeilingDeviceWithAmbientDevice(id);
case color:
case color4:
return new WonderDevice(id);
case mono:
return new MonoDevice(id);

View File

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

View File

@ -339,6 +339,7 @@ public class DeviceManager {
case ceiling4:
return "Yeelight LED Ceiling with ambient light";
case color:
case color4:
return "Yeelight Color LED Bulb";
case mono:
return "Yeelight White LED Bulb";