Skip to content

Commit

Permalink
[deconz] Support window covering controller (openhab#15856)
Browse files Browse the repository at this point in the history
Some devices report "Window covering controller" instead of "Window covering device". They are controlled in the same way.

Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
  • Loading branch information
J-N-K authored and austvik committed Mar 27, 2024
1 parent 2b7460e commit 0e9c901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void addLight(String lightId, LightMessage light) {
case COLOR_TEMPERATURE_LIGHT -> thingTypeUID = THING_TYPE_COLOR_TEMPERATURE_LIGHT;
case COLOR_DIMMABLE_LIGHT, COLOR_LIGHT -> thingTypeUID = THING_TYPE_COLOR_LIGHT;
case EXTENDED_COLOR_LIGHT -> thingTypeUID = THING_TYPE_EXTENDED_COLOR_LIGHT;
case WINDOW_COVERING_DEVICE -> thingTypeUID = THING_TYPE_WINDOW_COVERING;
case WINDOW_COVERING_DEVICE, WINDOW_COVERING_CONTROLLER -> thingTypeUID = THING_TYPE_WINDOW_COVERING;
case WARNING_DEVICE -> thingTypeUID = THING_TYPE_WARNING_DEVICE;
case DOORLOCK -> thingTypeUID = THING_TYPE_DOORLOCK;
case CONFIGURATION_TOOL -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public enum LightType {
DIMMABLE_LIGHT("Dimmable light"),
DIMMABLE_PLUGIN_UNIT("Dimmable plug-in unit"),
WINDOW_COVERING_DEVICE("Window covering device"),
WINDOW_COVERING_CONTROLLER("Window covering controller"),
CONFIGURATION_TOOL("Configuration tool"),
WARNING_DEVICE("Warning device"),
DOORLOCK("Door Lock"),
Expand Down

0 comments on commit 0e9c901

Please sign in to comment.