Skip to content

Commit

Permalink
fix miss-alignement in signature of tuya_eTRV_registration. See ( ##1771
Browse files Browse the repository at this point in the history
 )
  • Loading branch information
pipiche38 committed Oct 18, 2024
1 parent 18be38f commit 8c6d2c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Modules/deviceAnnoucement.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def device_annoucementv2(self, Devices, MsgData, MsgLQI):
tuya_sirene_registration(self, NwkId)

elif self.ListOfDevices[NwkId]["Model"] in (TUYA_eTRV_MODEL):
tuya_eTRV_registration(self, NwkId, False)
tuya_eTRV_registration(self, NwkId, tuya_data_request=False)

handle_device_specific_needs(self, Devices, NwkId)

Expand Down
4 changes: 2 additions & 2 deletions Modules/tuyaTRV.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
from Modules.zigateConsts import ZIGATE_EP


def tuya_eTRV_registration(self, nwkid, device_reset=False):
def tuya_eTRV_registration(self, nwkid, tuya_data_request=False):

self.log.logging("Tuya", "Debug", "tuya_eTRV_registration - Nwkid: %s" % nwkid)
# (1) 3 x Write Attribute Cluster 0x0000 - Attribute 0xffde - DT 0x20 - Value: 0x13
EPout = "01"
write_attribute(self, nwkid, ZIGATE_EP, EPout, "0000", "0000", "00", "ffde", "20", "13", ackIsDisabled=False)

# (3) Cmd 0x03 on Cluster 0xef00 (Cluster Specific)
if device_reset and get_model_name(self, nwkid) not in ("TS0601-thermostat", "TS0601-thermostat-Coil", "TS0601-eTRV5", ):
if tuya_data_request and get_model_name(self, nwkid) not in ("TS0601-thermostat", "TS0601-thermostat-Coil", "TS0601-eTRV5", ):
payload = "11" + get_and_inc_ZCL_SQN(self, nwkid) + "03"
raw_APS_request(
self,
Expand Down

0 comments on commit 8c6d2c5

Please sign in to comment.