Skip to content

Commit

Permalink
[Yeelight] Add color4 bulb (openhab#11908)
Browse files Browse the repository at this point in the history
* [Yeelight] Add color4 bulb

Signed-off-by: Vlado Ilic <kakonema@gmail.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
  • Loading branch information
kakonema authored and andrasU committed Nov 12, 2022
1 parent 4ba6a99 commit ac85657
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private ThingUID getThingUID(DeviceBase device) {
case ceiling4:
return new ThingUID(YeelightBindingConstants.THING_TYPE_CEILING4, device.getDeviceId());
case color:
case color4:
return new ThingUID(YeelightBindingConstants.THING_TYPE_WONDER, device.getDeviceId());
case mono:
return new ThingUID(YeelightBindingConstants.THING_TYPE_DOLPHIN, device.getDeviceId());
Expand All @@ -117,6 +118,7 @@ private ThingTypeUID getThingTypeUID(DeviceBase device) {
case ceiling4:
return YeelightBindingConstants.THING_TYPE_CEILING4;
case color:
case color4:
return YeelightBindingConstants.THING_TYPE_WONDER;
case mono:
return YeelightBindingConstants.THING_TYPE_DOLPHIN;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static DeviceBase build(String model, String id) {
case ceiling4:
return new CeilingDeviceWithAmbientDevice(id);
case color:
case color4:
return new WonderDevice(id);
case mono:
return new MonoDevice(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public enum DeviceType {
mono4,
ct_bulb,
color,
color4,
ceiling,
ceiling1,
ceiling3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ public static String getDefaultName(DeviceBase device) {
case ceiling4:
return "Yeelight LED Ceiling with ambient light";
case color:
case color4:
return "Yeelight Color LED Bulb";
case mono:
return "Yeelight White LED Bulb";
Expand Down

0 comments on commit ac85657

Please sign in to comment.