Skip to content

Commit

Permalink
introduce Tuya Magic Read Attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Feb 17, 2024
1 parent d0e48ab commit 16cbdfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Modules/pairingProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ def handle_device_specific_needs(self, Devices, NWKID):
if "Model" not in self.ListOfDevices[NWKID]:
return

# Do the Magic Read Attributes
if get_deviceconf_parameter_value(self, self.ListOfDevices[NWKID]["Model"], "TUYA_MAGIC_READ_ATTRIBUTES", return_default=False):
ReadAttributeRequest_0000_for_tuya( self, NWKID)

# Tuya_regitration ?
tuya_registration_parameter = get_deviceconf_parameter_value(self, self.ListOfDevices[NWKID]["Model"], "TUYA_REGISTRATION", return_default=None)
ty_data_request = get_deviceconf_parameter_value(self, self.ListOfDevices[NWKID]["Model"], "TUYA_RESET_CMD", return_default=False)
Expand Down

0 comments on commit 16cbdfa

Please sign in to comment.