]> git.basschouten.com Git - openhab-addons.git/commitdiff
Add Sptrip6 device (#14584)
authorgoopilot <40123561+goopilot@users.noreply.github.com>
Sat, 18 Mar 2023 09:25:10 +0000 (04:25 -0500)
committerGitHub <noreply@github.com>
Sat, 18 Mar 2023 09:25:10 +0000 (10:25 +0100)
Signed-off-by: Alexandr Salamatov <goopilot@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/services/DeviceManager.java

index d8bd40fee478fbf26513884285630a5fa0bb2004..f2b61b5f19c8fb58ca1f247d6d7311c4f6732fe1 100644 (file)
@@ -99,6 +99,7 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
             case ct_bulb:
                 return new ThingUID(YeelightBindingConstants.THING_TYPE_CTBULB, device.getDeviceId());
             case stripe:
+            case strip6:
                 return new ThingUID(YeelightBindingConstants.THING_TYPE_STRIPE, device.getDeviceId());
             case desklamp:
                 return new ThingUID(YeelightBindingConstants.THING_TYPE_DESKLAMP, device.getDeviceId());
@@ -125,6 +126,7 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
             case ct_bulb:
                 return YeelightBindingConstants.THING_TYPE_CTBULB;
             case stripe:
+            case strip6:
                 return YeelightBindingConstants.THING_TYPE_STRIPE;
             case desklamp:
                 return YeelightBindingConstants.THING_TYPE_DESKLAMP;
index 7c9f5fe7e48f4266ec4b9508a81897a9b59167eb..e283badcd48bfffd775b4c9408ded820e376d62d 100644 (file)
@@ -48,6 +48,7 @@ public class DeviceFactory {
             case ct_bulb:
                 return new CtBulbDevice(id);
             case stripe:
+            case strip6:
                 return new PitayaDevice(id);
             case desklamp:
                 return new DesklampDevice(id);
index e3115028a876f1eaf6d1ac71a6b689ba5546b0a3..a962671c83624b5924188d36028a8e4fd07df163 100644 (file)
@@ -346,6 +346,7 @@ public class DeviceManager {
             case ct_bulb:
                 return "Yeelight White LED Bulb v2";
             case stripe:
+            case strip6:
                 return "Yeelight Color LED Stripe";
             case desklamp:
                 return "Yeelight Mi LED Desk Lamp";