Skip to content

Commit

Permalink
Hot fix ts000 f tyzgth4 ch d1 (#1791)
Browse files Browse the repository at this point in the history
* remove .txt from constraints.txt filename
* Tuya device TS000F-TYZGTH4CH-D1RF.json, use data point to receive Temp and Humi, but send Switcn On,Off command via standard Zigbee
  • Loading branch information
pipiche38 authored Nov 26, 2024
1 parent 92eddb3 commit fc84e94
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 fc84e94

Please sign in to comment.