Add Sptrip6 device (#14584)

Signed-off-by: Alexandr Salamatov <goopilot@gmail.com>
This commit is contained in:
goopilot 2023-03-18 04:25:10 -05:00 committed by GitHub
parent 7268442c25
commit 979ecb0f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

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

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

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