Skip to content

Commit

Permalink
force Invverted to levelcontrol command
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Oct 6, 2023
1 parent eafc401 commit 074d35c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Classes/GroupMgtv2/GrpDomoticz.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ def best_group_widget(self, GroupId):
WidgetType = self.ListOfDevices[NwkId]["Ep"][devEp]["ClusterType"][DomoDeviceUnit]
self.logging("Debug", "------------ GroupWidget: %s WidgetType: %s" % (GroupWidgetType, WidgetType))

if WidgetType in ("VenetianInverted", "VanneInverted", "CurtainInverted"):
# Those widgets are commanded via cluster Level Control
GroupWidgetType = "LvlControl"
continue

if GroupWidgetType is None and WidgetType in WIDGET_STYLE:
GroupWidgetType = WidgetType
continue
Expand Down Expand Up @@ -240,11 +245,8 @@ def best_group_widget(self, GroupId):
GroupWidgetType = WidgetType
continue

if WidgetType in ("VenetianInverted", "VanneInverted", "CurtainInverted"):
GroupWidgetType = "LvlControl"
continue

if WidgetType in ("Venetian", "VenetianInverted", "WindowCovering", "BlindPercentInverted"):
if WidgetType in ("Venetian", "WindowCovering", "BlindPercentInverted"):
GroupWidgetType = WidgetType

if GroupWidgetType is None:
Expand Down

0 comments on commit 074d35c

Please sign in to comment.