[Yeelight] Support of ceil26 and ceiling11 devices (#14668)

* Support of ceil26 and ceiling11 devices

Signed-off-by: Alexandr Salamatov <goopilot@gmail.com>
This commit is contained in:
goopilot
2023-04-10 03:31:01 -05:00
committed by GitHub
parent ca667e39c5
commit 14d6b3e4fe
5 changed files with 20 additions and 4 deletions

View File

@@ -88,6 +88,8 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
case ceiling3:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING, device.getDeviceId());
case ceiling1:
case ceil26:
case ceiling11:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING1, device.getDeviceId());
case ceiling4:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
@@ -113,6 +115,8 @@ public class YeelightDiscoveryService extends AbstractDiscoveryService implement
case ceiling:
return YeelightBindingConstants.THING_TYPE_CEILING;
case ceiling1:
case ceil26:
case ceiling11:
return YeelightBindingConstants.THING_TYPE_CEILING1;
case ceiling3:
return YeelightBindingConstants.THING_TYPE_CEILING3;

View File

@@ -37,6 +37,8 @@ public class DeviceFactory {
return new CeilingDevice(id);
case ceiling1:
case ceiling3:
case ceil26:
case ceiling11:
return new CeilingDeviceWithNightDevice(id);
case ceiling4:
return new CeilingDeviceWithAmbientDevice(id);

View File

@@ -27,6 +27,8 @@ public enum DeviceType {
ceiling1,
ceiling3,
ceiling4,
ceil26,
ceiling11,
stripe,
strip6,
desklamp

View File

@@ -335,6 +335,8 @@ public class DeviceManager {
return "Yeelight LED Ceiling";
case ceiling1:
case ceiling3:
case ceil26:
case ceiling11:
return "Yeelight LED Ceiling with night mode";
case ceiling4:
return "Yeelight LED Ceiling with ambient light";