Skip to content

Commit

Permalink
Tuya device TS000F-TYZGTH4CH-D1RF.json, use data point to receive Tem…
Browse files Browse the repository at this point in the history
…p and Humi, but send Switcn On,Off command via standard Zigbee
  • Loading branch information
pipiche38 committed Nov 24, 2024
1 parent 10d8f3d commit b2cf28d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Modules/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,12 @@ def handle_command_off(self,Devices, DeviceID, Unit, Level, Nwkid, EPout, Device
self.log.logging("Command", "Debug", "handle_command_off : Disable Window Cover Calibration")
tuya_window_cover_calibration(self, Nwkid, "01")

elif DeviceType == "Switch" and ts0601_extract_data_point_infos( self, model_name):
elif (
DeviceType == "Switch"
and not get_deviceconf_parameter_value(self, model_name, "StandardZigbeeCommand", return_default=False)
and ts0601_extract_data_point_infos( self, model_name)
):
ts0601_actuator(self, Nwkid, "switch", 0)

else:
# Remaining Slider widget
_off_command_default(self, Nwkid, EPout, profalux, model_name)
Expand Down Expand Up @@ -653,7 +656,11 @@ def handle_command_on(self,Devices, DeviceID, Unit, Level, Nwkid, EPout, DeviceT
self.log.logging("Command", "Debug", "mgtCommand : Enable Window Cover Calibration")
tuya_window_cover_calibration(self, Nwkid, "00")

elif DeviceType == "Switch" and ts0601_extract_data_point_infos( self, model_name):
elif (
DeviceType == "Switch"
and not get_deviceconf_parameter_value(self, model_name, "StandardZigbeeCommand", return_default=False)
and ts0601_extract_data_point_infos( self, model_name)
):
ts0601_actuator(self, Nwkid, "switch", 1)

elif profalux:
Expand Down

0 comments on commit b2cf28d

Please sign in to comment.