[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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -27,6 +27,8 @@ public enum DeviceType {
|
||||
ceiling1,
|
||||
ceiling3,
|
||||
ceiling4,
|
||||
ceil26,
|
||||
ceiling11,
|
||||
stripe,
|
||||
strip6,
|
||||
desklamp
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user