From: goopilot <40123561+goopilot@users.noreply.github.com> Date: Sat, 18 Mar 2023 09:25:10 +0000 (-0500) Subject: Add Sptrip6 device (#14584) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=979ecb0f98e091f4cc1a73622bfe3edb9ff13f49;p=openhab-addons.git Add Sptrip6 device (#14584) Signed-off-by: Alexandr Salamatov --- diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java index d8bd40fee4..f2b61b5f19 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/discovery/YeelightDiscoveryService.java @@ -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; diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java index 7c9f5fe7e4..e283badcd4 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/device/DeviceFactory.java @@ -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); diff --git a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java index e3115028a8..a962671c83 100644 --- a/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java +++ b/bundles/org.openhab.binding.yeelight/src/main/java/org/openhab/binding/yeelight/internal/lib/services/DeviceManager.java @@ -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";