Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Yeelight] Support of ceil26 and ceiling11 devices #14668

Merged
merged 4 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ private ThingUID getThingUID(DeviceBase device) {
case ceiling3:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING, device.getDeviceId());
case ceiling1:
case ceil26:
lolodomo marked this conversation as resolved.
Show resolved Hide resolved
case ceiling11:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING1, device.getDeviceId());
case ceiling4:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
Expand All @@ -113,6 +115,8 @@ private ThingTypeUID getThingTypeUID(DeviceBase device) {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public static DeviceBase build(String model, String id) {
return new CeilingDevice(id);
case ceiling1:
case ceiling3:
case ceil26:
case ceiling11:
return new CeilingDeviceWithNightDevice(id);
case ceiling4:
return new CeilingDeviceWithAmbientDevice(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public enum DeviceType {
ceiling1,
ceiling3,
ceiling4,
ceil26,
ceiling11,
lolodomo marked this conversation as resolved.
Show resolved Hide resolved
stripe,
strip6,
desklamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ public static String getDefaultName(DeviceBase device) {
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";
Expand Down