]> git.basschouten.com Git - openhab-addons.git/commitdiff
[Yeelight] Add color4 bulb (#11908)
authorkakonema <kakonema@gmail.com>
Fri, 31 Dec 2021 15:39:46 +0000 (16:39 +0100)
committerGitHub <noreply@github.com>
Fri, 31 Dec 2021 15:39:46 +0000 (16:39 +0100)
* [Yeelight] Add color4 bulb

Signed-off-by: Vlado Ilic <kakonema@gmail.com>
bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java
bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java
bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/enums/DeviceType.java
bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java

index bbb6aba467773ccab10ae2b668dfffb6dac67a76..b03b0a50f891530ca4a196bf7e7caebc42d100fc 100644 (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;
index 4e85060877d8a32938805ebe73f48c310d525c1f..3006ea3e9d1195d2b5a9b181958a186ba36badea 100644 (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);
index e32b85aeac6743547c7a7f8b7c06401db111d1de..518cb5348c4c5db2dd7db690b9d9fb1af7e5c3dc 100644 (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";