Skip to content

Commit

Permalink
On is 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Aug 16, 2024
1 parent d6def0c commit 9a606aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Modules/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ def handle_command_stop(self,Devices, DeviceID, Unit, Nwkid, EPout, DeviceType,
actuator_stop( self, Nwkid, EPout, "WindowCovering")

if DeviceType in ( "CurtainInverted", "Curtain"):
if ts0601_extract_data_point_infos( self, model_name):
ts0601_actuator(self, Nwkid, "CurtainState", 1)
update_domoticz_widget(self, Devices, DeviceID, Unit, 0, "Off", BatteryLevel, SignalLevel, ForceUpdate_=forceUpdateDev)

# Refresh will be done via the Report Attribute
return

Expand Down Expand Up @@ -605,7 +609,7 @@ def handle_command_on(self,Devices, DeviceID, Unit, Level, Nwkid, EPout, DeviceT

elif DeviceType in ( "CurtainInverted", "Curtain"):
if ts0601_extract_data_point_infos( self, model_name):
ts0601_actuator(self, Nwkid, "CurtainState", 1)
ts0601_actuator(self, Nwkid, "CurtainState", 2)
update_domoticz_widget(self, Devices, DeviceID, Unit, 0, "Open", BatteryLevel, SignalLevel, ForceUpdate_=forceUpdateDev)

return
Expand Down

0 comments on commit 9a606aa

Please sign in to comment.