Open Srjosep opened 10 months ago
Have the same issue. Was able to add ZigBee Gateway and sub-devices, but Entity is in "unavailable" status.
ZigBee Gateway: GIRIER Tuya Smart Wireless Multi-mode Gateway
Tried to add using YAML and Configure. Tried different sub-devices and different DPs.
I can provide any information to solve this issue.
# Zigbee or Bluetooth gateway.
- host: 192.168.1.99
device_id: "xxx"
local_key: "yyy"
friendly_name: Tuya Gateway
protocol_version: "3.4"
is_gateway: "true" # This tells it is to be treated as a gateway and skip adding entities
# Devices under a gateway.
- parent_gateway: "xxx" # This tells it is a sub-device dependent on a parent gateway
device_id: "zzz" # The cid of sub-device. **Tried CID and device_id.**
friendly_name: Pink
protocol_version: "3.4"
entities:
- platform: sensor
friendly_name: Sensor Battery
id: 15
device_class: battery
Deciphered data = ['nvalid'] ERROR Invalid JSON Response from Device - 900 - payload: "nvalid"'
2023-09-10 23:59:47.330 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration xiaomi_miot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-09-10 23:59:47.331 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration tesla_custom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-09-10 23:59:47.331 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-09-10 23:59:47.332 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-09-10 23:59:47.332 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration smartir which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-09-11 00:00:01.071 WARNING (MainThread) [custom_components.tesla_custom.teslamate] Cannot enable TeslaMate as MQTT has not been configured.
2023-09-11 00:00:01.246 WARNING (MainThread) [custom_components.xiaomi_miot.sensor] Get xiaomi message for 6679873938 failed: {'code': 0, 'message': 'ok', 'result': {'messages': None}}
2023-09-11 00:00:03.948 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ac_lacaltuyawatt (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'GJ', 'kWh', 'MWh', 'Wh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22
2023-09-11 00:00:24.788 DEBUG (MainThread) [custom_components.localtuya] Device bf61aab26a4c46d739gkpr found with IP 192.168.1.100
2023-09-11 00:00:26.039 DEBUG (MainThread) [custom_components.localtuya] Device bfbbf6518e51a3aac7k7bj found with IP 192.168.1.99
2023-09-11 00:00:27.168 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 9 (device type: type_0d)
2023-09-11 00:00:27.168 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:27.169 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 9: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:27.170 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number -100
2023-09-11 00:00:27.170 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00\xa5\xc6\x00\x00\x00\t\x00\x00\x00t\x8a\xd7\x00\xdf]\xddVQ\xb3\xb1=\xd3*S\xf7yXQ\xc4%\x8f\x1c\xc4\xd0\xe5\xf5\x1f\x9e\\\xe5|\xd4\x1f\x16\xa8\x90\xa9\x9e\xd1\x0bJ\x7f\x99\xd4+\x87lx\xd6;v\xb7\xa1\xc5J\xed\xec:\xcb\x8b\x94"\xd5\xbb:m\xae\\*\xb9\xd9\xae\xe8\xe7zs\x02\x1e]j0-\xac\xf66z\rM\xa6.\xfcl\xef\xed}\xf8>\x12\xae\xceb\xd7\x80\xcb\xa60m\x1biJc\xf0\x00\x00\xaaU' - MessagePayload(cmd=9, payload=b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}')
2023-09-11 00:00:27.171 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 9 waiting for sequence number -100
2023-09-11 00:00:27.194 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 9 TuyaMessage(seqno=42438, cmd=9, retcode=0, payload=b'', crc=b'\x10\xcd\x1f\x8b\x8f\xed\xda\xf2\xfcBL\xb3L \x98\xe4c\xa2\x0c\x1e\xee\x97q\xb0\xe3\x13v\xb1\xd3\xd9g\xc2', crc_good=True)
2023-09-11 00:00:27.194 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got heartbeat response
2023-09-11 00:00:27.194 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ACK received for command 9: ignoring it
2023-09-11 00:00:28.583 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Sending command 9 (device type: default)
2023-09-11 00:00:28.583 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Sending payload: b'{"gwId":"bf61aab26a4c46d739gkpr","devId":"bf61aab26a4c46d739gkpr"}'
2023-09-11 00:00:28.584 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Dispatching sequence number -100
2023-09-11 00:00:28.584 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] payload b"\x00\x00U\xaa\x00\x00\x00\x05\x00\x00\x00\t\x00\x00\x00X\x8fK\xb8\xa3X7\x82G\xa1\x1e\x97\xech\x9a\xee\xf9'\xf8\x848\xebA\xce\x19\xcb\xe7\x1a4\xf7<\x82F\xb6i\n\x80\xa4q\x07S\xb5>\x00/g\xf9\xe3O\x93\xdc\xb8\xd9\x91\xc0w\xf77\xa2VTI`\x07]\x8c\xddY\xebWt\xb5,%T}\xc6\xbc\xfc\x0fu\r\xe9\\\xbd\x00\x00\xaaU" - MessagePayload(cmd=9, payload=b'{"gwId":"bf61aab26a4c46d739gkpr","devId":"bf61aab26a4c46d739gkpr"}')
2023-09-11 00:00:28.584 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Command 9 waiting for sequence number -100
2023-09-11 00:00:28.587 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True)
2023-09-11 00:00:28.587 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Got heartbeat response
2023-09-11 00:00:28.587 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] ACK received for command 9: ignoring it
2023-09-11 00:00:29.176 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=42439, cmd=8, retcode=0, payload=b'\xf1\xf1\xbe<\xd9\t\xc5\x12]\x1a\xb5\xa0\xabXk\xc4\xf3\xd3\xfc,1\xeb\xd0p\x9d:`\xb0T\x17e\xbf\xc7\xc4\x9d0d\xb9\xf9\xd6#\xe7\x0b\x18\xcb\xdb\xf7\xe1\x08p\x05\x94\xfb\x01\t\xdf(\xee\x95a\xb9eW\x80\x0f\xb4x\xe2\xady\x17\x86l[j\xfb)\xa5\xf6\x895\xa2\xb5\xfe\xc1\x84\xd0\xded\xf1\xac_\xc4&`\x8f', crc=b'V\xfbHd\xb8z\r\xf2\x1a\xb9\xb3\x12\x16{m\x03p\rm9Wb\xb3\x99p\xae\xa6\xa8\xc3\xfeV~', crc_good=True)
2023-09-11 00:00:29.176 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.176 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"5":27},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.176 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sub-device status update ignored because cid a4c138fc2370c594 is not added
2023-09-11 00:00:29.176 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Re-add subdevice cid a4c138fc2370c594
2023-09-11 00:00:29.176 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=20611, cmd=8, retcode=0, payload=b"\xc98\x160]l%\x94\xb3\x8b\xcf\xa0'c@\x89\xc4\xc0\xa0\xb7>\x1f\x9c\xc5\xa0}\xa5\x9e\x1d\xda*\xbc\x8c\x00\xfb;\xd4\xad\x98\x1a\xdb\x9eU\xa7\xc0W\xe2\xe2K\xeaQ\xfb\xaeK\x03:L\x8a\xa4\x8d\x9b\xa69\n\x9cZ\xaera1(\xaaU\tT\x9b\xc5\xcf\x1a\xe7\xa9t@\xbc\x8b[}\x07\xf4sT\xe0\x7f{\x93\xad", crc=b'H\xef\xfa\xbftV\x8b\xd1+D\x92\xf6\xc8,\xff#\xe2O\x8c\xec\x8a\xf6\xe1\xc63\xac3^\x1eXp\xcc', crc_good=True)
2023-09-11 00:00:29.177 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.177 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"5":27},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.177 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sub-device status update ignored because cid a4c138fc2370c594 is not added
2023-09-11 00:00:29.177 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Re-add subdevice cid a4c138fc2370c594
2023-09-11 00:00:29.277 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=42440, cmd=8, retcode=0, payload=b"\x98\x89]\xe4G\x0e\xac!\xb9:\x0e\xb2\xb1cV\x81\xf3\xd3\xfc,1\xeb\xd0p\x9d:`\xb0T\x17e\xbf\xc7\xc4\x9d0d\xb9\xf9\xd6#\xe7\x0b\x18\xcb\xdb\xf7\xe1\x1fK\xa47n+\xb1L#\xa5\x86\xbc\x84\x02\xb9'\x9daX\x16\xee8\xed\xfe\xcd\xf3\xc2\xdd\xd2*r\xb05\xa2\xb5\xfe\xc1\x84\xd0\xded\xf1\xac_\xc4&`\x8f", crc=b'\xe6\x18\x83\xa1\x8e\xbdA31\xff\x04A\xdfd\xa4V\x10;\x18l4\x0ew\x1a7\x89\xdc\x14\xe1\xdcn\xd9', crc_good=True)
2023-09-11 00:00:29.277 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.277 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"3":36},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.277 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36}
2023-09-11 00:00:29.278 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=20612, cmd=8, retcode=0, payload=b'\xb8\xb0{\xf9\x0b\xe1J3\x0e 18<~\xe2a\xc4\xc0\xa0\xb7>\x1f\x9c\xc5\xa0}\xa5\x9e\x1d\xda*\xbc\x8c\x00\xfb;\xd4\xad\x98\x1a\xdb\x9eU\xa7\xc0W\xe2\xe2\x92\x99^\xd4\xea\x845\xc4\xa8\xa6\xfes:\xd2\xc6|S1c\xb8\x19\xad\x9bky\xb4;\xd1\x06\xa4g\x9e\xa9t@\xbc\x8b[}\x07\xf4sT\xe0\x7f{\x93\xad', crc=b'\xed[8m\xbc\xeb\xa6\xce\xf8\x18\x85q\xe8c\xa6{\x00\xb4\xfd\xb2(\x80\nt\xda\x9b\x9a\x8e\xa6\xfe\xf0\xb1', crc_good=True)
2023-09-11 00:00:29.278 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.278 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"3":36},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.278 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36}
2023-09-11 00:00:29.381 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=42441, cmd=8, retcode=0, payload=b'\xc2\xcb\x8f\x02\xa3\x1bK\xb9\x15\x0b\xd6(]\xacS\x9e\xf3\xd3\xfc,1\xeb\xd0p\x9d:`\xb0T\x17e\xbf\xc7\xc4\x9d0d\xb9\xf9\xd6#\xe7\x0b\x18\xcb\xdb\xf7\xe1bm\x19X{Y\xf0\xd2P\xa5=\xd2Re]ii\x0b\x98\x8c#\xf9\x12\xe8c1v&\x12\xd5\xd7\x925\xe5\xd8\xc0o\xb7\x14D\xc9\xd2e\x94R}^+', crc=b'8\x06e\xbd\xfb\xee\x94\x00\xc4\xe9=\xc9\xf9F\xc8\xe8\xa61\xc5\\\x8dG\x16l\x86\xf6e}\x15\x1eJ\x98', crc_good=True)
2023-09-11 00:00:29.382 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.382 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"15":20},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.382 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20}
2023-09-11 00:00:29.382 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=20613, cmd=8, retcode=0, payload=b"\xcc\x02\xc5'\xd3\xe1\xd1\xec\xb99\xfe\xf6\xdf\xd99s\xc4\xc0\xa0\xb7>\x1f\x9c\xc5\xa0}\xa5\x9e\x1d\xda*\xbc\x8c\x00\xfb;\xd4\xad\x98\x1a\xdb\x9eU\xa7\xc0W\xe2\xe2D\xf7!\t\xad\xd6\xec #M\x99\xff\x19Y4\x87c\x15\xd8:\xca\x01\x84\xb5\xb7b_\xbd\xde\xef\x87\x9c\xb5\x8b\xf8g\xe9o0s\xc9\x9b\x7fCRF\xb5?", crc=b'>=S\x8e$7\x95\x10YC~\x93\x00\r!m\n\x7f\xa2W\x0eH\xe8\xb4\xa4\xd97P\xf6\x07\n\x90', crc_good=True)
2023-09-11 00:00:29.383 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.383 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"15":20},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.383 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20}
2023-09-11 00:00:29.486 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=42442, cmd=8, retcode=0, payload=b'\xe7^2\xea\xc9^k\xd5\x8c\x9e\xb5S\xb34l\xbd\xf3\xd3\xfc,1\xeb\xd0p\x9d:`\xb0T\x17e\xbf\xc7\xc4\x9d0d\xb9\xf9\xd6#\xe7\x0b\x18\xcb\xdb\xf7\xe1\xc6\x18o\xd6\x9c\x14\xb8J\xf2W\xb7\xa6\x0c\xb2\x84\xde\x96\x8d\x08\x02\x8f\xc5\xb2\xb7\x1f\xd8\x84\xa3\xe5\x10 e\xe5E!\xdf`\x18\xb4#8\xbd\xf3\x96BY~5B\x8cY<\x9f74\xc6\xa9\x1c\x83\\\x04\xfb\xca~', crc=b'\x1cm\xa0*Y+}\xc3\x17a\x98\xa2\x05\x04\x18\x94w\xb2\xfa\xfb\xa8hy\xf2S!\x87\xce\xd5\xe7\xb3<', crc_good=True)
2023-09-11 00:00:29.486 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.487 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"14":"low"},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.487 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20, '14': 'low'}
2023-09-11 00:00:29.488 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 8 TuyaMessage(seqno=20614, cmd=8, retcode=0, payload=b"\xf0\x837\xca\xa4\xdd\x8dX\xd6\xb6\xe5DZ\xf4\x1e\x1d\xc4\xc0\xa0\xb7>\x1f\x9c\xc5\xa0}\xa5\x9e\x1d\xda*\xbc\x8c\x00\xfb;\xd4\xad\x98\x1a\xdb\x9eU\xa7\xc0W\xe2\xe2q\xec!?!'\xb7\x86\x1eY\xcc\xbf^g\x95\x11\xba\xe8\xa5@H\xdc\xca\xd4\xfe\xc4\xf8\xc0\x99\xf2\x18\x8a\xddj\xb5\xd46*p'\x94~\xac)\xcd\xec\xd0,[O\x05\xdc\x0c\x1e\xff\x02\xc55\x82\xe3P\x9e\x97\xcf", crc=b'\xd0\xbb-ITjq\xac\x18\x03\xe2\xea\x88\xd9\x8e7\xea\xff\x11\\\x8f\xb8\xc0\xbf\x0eH\xe5\x02H\xe4\t\xce', crc_good=True)
2023-09-11 00:00:29.488 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got status update
2023-09-11 00:00:29.489 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = '{"protocol":4,"t":1694379628,"data":{"dps":{"14":"low"},"cid":"a4c138fc2370c594"}}'
2023-09-11 00:00:29.489 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20, '14': 'low'}
2023-09-11 00:00:29.757 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Connecting to gateway 192.168.1.99
2023-09-11 00:00:29.793 DEBUG (MainThread) [custom_components.localtuya] Device bf61aab26a4c46d739gkpr found with IP 192.168.1.100
2023-09-11 00:00:29.802 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Connected to gateway 192.168.1.99 successfully
2023-09-11 00:00:29.802 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Attempting to reconnect 0 subdevices
2023-09-11 00:00:29.802 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Started heartbeat loop
2023-09-11 00:00:29.802 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] 3.4 device: negotiating a new session key
2023-09-11 00:00:29.802 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 3: b'0123456789abcdef'
2023-09-11 00:00:29.802 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 3 waiting for sequence number -102
2023-09-11 00:00:29.810 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 4 TuyaMessage(seqno=34903, cmd=4, retcode=0, payload=b'\x0cz\xb4TI0\xd5\x0eB\xd5 qc\xea{\x94|\x96e\xc6\x89Z\x89\xd1\x1e\xf3B\xc3\xb6\xbb\xb5\x97!\x0f${7g\xf1\xb3B\xff\xbd9\x08\x1a\xdf\x11`\x96\xf1\xf0\x95\xddQL\xe0\x1c\xc8\xf1\x9a\xd9\xb6^', crc=b'\x13~\xbf?\xc3;\xad\xb2\x96\x82/&S\xba\xd2\x02\x16\x95\xa7\x94-\x15\x94}-\xd1o-B\xd4\xda\xc0', crc_good=True)
2023-09-11 00:00:29.810 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got key negotiation response
2023-09-11 00:00:29.811 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] decrypted session key negotiation step 2: payload=b'467786b03a193323,\x00Y\x0e\xdc\xe5)\xc7T\x11\x1b\xbd=/m\x16?\xb3\x84\x0c\xaeVv\x84 H)?o\x08\xf4\xe6'
2023-09-11 00:00:29.811 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 5: b't9\xbdL\x1d\xab\xa1n\x89\xac\x169\xdc?F\xa8\xa7\x10G\x86\x18\xbb\xf9T\xe7\x0f\x9f\x1bI\xacn\xba'
2023-09-11 00:00:29.811 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Session key negotiate success! session key: b'B;=\x04\xf3\xa1\x87:R\xda\xc2\xfd\xc4\xe8\x88\xda'
2023-09-11 00:00:29.812 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 9 (device type: v3.4)
2023-09-11 00:00:29.812 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload_dict for 'bfbbf6518e51a3aac7k7bj' ('v3.4'/'v3.4'): {1: {'command': {'gwId': '', 'devId': '', 'uid': '', 't': ''}}, 7: {'command': {'protocol': 5, 't': 'int', 'data': {}}, 'command_override': 13}, 8: {'command': {'gwId': '', 'devId': ''}}, 9: {'command': {'gwId': '', 'devId': ''}}, 10: {'command': {}, 'command_override': 16}, 13: {'command': {'protocol': 5, 't': 'int', 'data': {}}}, 16: {'command': {}}, 18: {'command': {'dpId': [18, 19, 20]}}, 64: {'command': {'reqType': '', 'data': {}}}}
2023-09-11 00:00:29.812 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:29.812 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 9: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:29.812 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number -100
2023-09-11 00:00:29.812 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00\x88X\x00\x00\x00\t\x00\x00\x00t\x9a$\x1c\x1c\xb4\xf9\x07\x8c)d\xe9\x80\x94B]\x00\xc76CS\xdb_%\x94\x9e\xc5\x92\x04\x83\xcdM\'}\xdc\xe4{\xf4\xf5y\xf7\xcd]Q\xde.\tHVN\xa6\xd4\xe3!\xde^:\r\x92\x1d\xc8z\xc2T\xcb?2\xd0\x18\x05@"\xe1\xe1\xa7\xf6\xfe\xea\'\x90\x98\xed\xc5\xc3d\xf1\xd7\xc7|\xb4\x8ar\xb4\x96n\x130\xe9\xe1\x92D/\x1b\xdc\x08d\x14\xcb\xe6\xa1\xaa\x96\xea\x00\x00\xaaU' - MessagePayload(cmd=9, payload=b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}')
2023-09-11 00:00:29.812 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 9 waiting for sequence number -100
2023-09-11 00:00:29.820 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 9 TuyaMessage(seqno=34904, cmd=9, retcode=0, payload=b'', crc=b'\xbb\xdc\xf2D\xe1\xca\xbd|j\xf2/\x8b\xa06q\x9213\x9c\xcfL\x8dd\xe7\x12F\xbf:<\x1c\xd1\xe6', crc_good=True)
2023-09-11 00:00:29.820 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got heartbeat response
2023-09-11 00:00:29.820 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ACK received for command 9: ignoring it
2023-09-11 00:00:31.033 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 9 (device type: v3.4)
2023-09-11 00:00:31.034 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:31.034 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 9: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:31.035 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number -100
2023-09-11 00:00:31.035 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00P\x87\x00\x00\x00\t\x00\x00\x00t\x03U\xf0\x8eiX\xd5b\xcf\x19\x13\xbe`E\xfa$\x16\x0c\x98\xbfN\xb3\xca\xbe\xca\xc3\xbeG>\x85\xd0\xbfX\xb1\xd5\x1cp\xcc\x17`\xe2+W\x8e\xed\xa4\xc2\xca\xd5\x07*#+\x9b\x81\xc7\xaa\xbb\x86{\x05\x1f\x06\xea8_\x18\xee\xad\xca\xdeP t\t\xb6\x8b\xe6t\xf9l@\x90\x82\xd3\xc8\xc1\xe7N1E\xe6\xaf\x1d\x98\xd4\xac\x0f\xb7\xa6\xd0\x06]\xcc\xab\x94>&\xc7\xbe\x03\xb6\x00\x00\xaaU' - MessagePayload(cmd=9, payload=b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}')
2023-09-11 00:00:31.035 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 9 waiting for sequence number -100
2023-09-11 00:00:31.053 DEBUG (MainThread) [custom_components.localtuya] Device bfbbf6518e51a3aac7k7bj found with IP 192.168.1.99
2023-09-11 00:00:31.059 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 9 TuyaMessage(seqno=20615, cmd=9, retcode=0, payload=b'', crc=b';#2\x83\x1d\xee\x1c\xce\x03\xbeB<!\x1cQ\xd4ie\xc0V\xdb\x990\xe9\xf5\xe1XF&Z\x1dT', crc_good=True)
2023-09-11 00:00:31.059 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got heartbeat response
2023-09-11 00:00:31.060 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ACK received for command 9: ignoring it
2023-09-11 00:00:34.415 DEBUG (MainThread) [custom_components.localtuya.common] [cc0...6b6] Dispatching request request_remove to gateway with content None
2023-09-11 00:00:34.416 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_remove from cc047228aa6e76b6 with content None
2023-09-11 00:00:34.417 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_disconnected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:00:34.417 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_remove from cc047228aa6e76b6 with content None
2023-09-11 00:00:34.417 WARNING (MainThread) [custom_components.localtuya.common] [bfb...7bj] Invalid sub-device removal request for cc047228aa6e76b6
2023-09-11 00:00:34.418 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_remove from cc047228aa6e76b6 with content None
2023-09-11 00:00:34.418 WARNING (MainThread) [custom_components.localtuya.common] [bfb...7bj] Invalid sub-device removal request for cc047228aa6e76b6
2023-09-11 00:00:34.420 DEBUG (MainThread) [custom_components.localtuya.sensor] [cc0...6b6] Adding sensor.sensor_battery with configuration: {'platform': 'sensor', 'friendly_name': 'Sensor Battery', 'id': 15, 'device_class': 'battery'}
2023-09-11 00:00:34.421 DEBUG (MainThread) [custom_components.localtuya.common] [cc0...6b6] Connecting to sub-device cc047228aa6e76b6 via bfbbf6518e51a3aac7k7bj
2023-09-11 00:00:34.421 DEBUG (MainThread) [custom_components.localtuya.common] [cc0...6b6] Dispatching request request_add to gateway with content {'dps': {15: None}}
2023-09-11 00:00:34.422 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_add from cc047228aa6e76b6 with content {'dps': {15: None}}
2023-09-11 00:00:34.422 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_connected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:00:34.422 INFO (MainThread) [custom_components.localtuya.common] [bfb...7bj] Getting status for cc047228aa6e76b6
2023-09-11 00:00:34.422 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: type_0d)
2023-09-11 00:00:34.422 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.422 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.422 DEBUG (SyncWorker_1) [custom_components.localtuya.common] [cc0...6b6] Received event event_connected from gateway with data None
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 42443
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00\xa5\xcb\x00\x00\x00\x10\x00\x00\x00D\x0bu\xd7\xa3\xca7\x116}0V\x0ep&|\x1d*#\x9f\xbd\x9eE[2@3\x99\xdbg/\xc0\xc2\xa0\x9c\x8f\xee\xf1\x92\xb6c&\xd4)\xa6jG\xe8\x07\xaeh\xc4e1!\x17\xed\xfa}%$\xfd\xd4V\xda\x00\x00\xaaU' - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 42443
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_add from cc047228aa6e76b6 with content {'dps': {15: None}}
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_connected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:00:34.424 INFO (MainThread) [custom_components.localtuya.common] [bfb...7bj] Getting status for cc047228aa6e76b6
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: v3.4)
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.424 DEBUG (SyncWorker_7) [custom_components.localtuya.common] [cc0...6b6] Received event event_connected from gateway with data None
2023-09-11 00:00:34.425 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 20616
2023-09-11 00:00:34.425 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00P\x88\x00\x00\x00\x10\x00\x00\x00D=\xf4\x08\xd3\x90\xa130N"\xca!\xc3&,H=\x1a\xd7\xa9\xfeY\xf0sg\xadu\xd0\xdd\x91\xb5\xd8`\xeb\xf1~o\r\t\x8d\xb1\xae\xf4\xaf;\xd4l\xa4\ti4k\xa4\xf6\xd4\xf6\x93\x94\xaa\xde\x83\xc5\n\xfa\x00\x00\xaaU' - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:00:34.425 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 20616
2023-09-11 00:00:34.425 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_add from cc047228aa6e76b6 with content {'dps': {15: None}}
2023-09-11 00:00:34.425 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_connected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:00:34.425 INFO (MainThread) [custom_components.localtuya.common] [bfb...7bj] Getting status for cc047228aa6e76b6
2023-09-11 00:00:34.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: v3.4)
2023-09-11 00:00:34.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.426 DEBUG (SyncWorker_2) [custom_components.localtuya.common] [cc0...6b6] Received event event_connected from gateway with data None
2023-09-11 00:00:34.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 34905
2023-09-11 00:00:34.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b"\x00\x00U\xaa\x00\x00\x88Y\x00\x00\x00\x10\x00\x00\x00D\xedV\xddK\xa8Q\xb0W\xd1h\x10{@\xda\xfd\x9e\xe19J\x89fxd\xc8\x82\xe3\xba5S\xd8\x90a'\x83\x9c\xf1\xa8\xc9\x05\xdf\xfc\xd4W\xd3\xec\xeb\xc6\xa3\xbd4\x9e\xfc\x9d\xd2\xba\xcayw\x94\xc7\xb1m\x06J\x00\x00\xaaU" - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:00:34.427 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 34905
2023-09-11 00:00:34.435 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=42443, cmd=16, retcode=1, payload=b'\xf0\x87\xbc\xc8eg\xaa[\x8b\xc2\x84\xca\xea\xc3Y\xd6\x94\xfazoW!\x99\x9b\xc6\x94\x9c\xe3\xdc\xa9\x97#', crc=b'\nE\x03d\x88\x16\\\xff8\x01\xff\xf8\x9a\xab\x81\x84\xe9$\x9f?\x92.\xc1\xe6q\xc3\xb4\x0b\x81\xd1\x7fj', crc_good=True)
2023-09-11 00:00:34.435 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 42443
2023-09-11 00:00:34.436 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = 'nvalid'
2023-09-11 00:00:34.436 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ERROR Invalid JSON Response from Device - 900 - payload: "nvalid"
2023-09-11 00:00:34.436 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20, '14': 'low'}
2023-09-11 00:00:34.440 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=20616, cmd=16, retcode=1, payload=b"\xe6`'\xa0\xf4\x085\x8d\x8f;\x1c|J\x0e3\xff\x92\xab\xa0\xf8`\xb0\x17\x9d\xe9K\x0b\x18\xd1\xb3\x11\xdd", crc=b'[\xd6\xe8\xafC\xd6-\x96\x7f\xeeo\x86\xceba\xd3\x8bU,"\x19\xed\xad\xd9\xcd\xcf\x8d\x04I\xb2o ', crc_good=True)
2023-09-11 00:00:34.440 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 20616
2023-09-11 00:00:34.441 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] 'data unvalid' error detected: switching to dev_type 'type_0d'
2023-09-11 00:00:34.441 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Re-send 16 due to device type change (v3.4 -> type_0d)
2023-09-11 00:00:34.441 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: type_0d)
2023-09-11 00:00:34.441 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload_dict for 'bfbbf6518e51a3aac7k7bj' ('v3.4'/'type_0d'): {1: {'command': {'gwId': '', 'devId': '', 'uid': '', 't': ''}}, 7: {'command': {'protocol': 5, 't': 'int', 'data': {'cid': ''}}, 'command_override': 13}, 8: {'command': {'gwId': '', 'devId': ''}}, 9: {'command': {'gwId': '', 'devId': ''}}, 10: {'command': {'devId': '', 'uid': '', 't': ''}, 'command_override': 13}, 13: {'command': {'protocol': 5, 't': 'int', 'data': {'cid': ''}}}, 16: {'command': {}}, 18: {'command': {'dpId': [18, 19, 20]}}, 64: {'command': {'reqType': '', 'data': {}}}}
2023-09-11 00:00:34.441 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.441 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.442 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 20617
2023-09-11 00:00:34.442 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00P\x89\x00\x00\x00\x10\x00\x00\x00D=\xf4\x08\xd3\x90\xa130N"\xca!\xc3&,H=\x1a\xd7\xa9\xfeY\xf0sg\xadu\xd0\xdd\x91\xb5\xd8\xd1\xfd\x1e\xe2-i%\x0br\x12\tb\x13\xb3\x08\xab+%\x14\xc8\xf4\xa7\x9a\xe2\xd2\xfd0S\x9d`Kg\x00\x00\xaaU' - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:00:34.442 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 20617
2023-09-11 00:00:34.499 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=34905, cmd=16, retcode=1, payload=b'\xb8\xf8\x069(s\x07~\x18\xb7\xc3\xf8^\xb9\xc9\x04\xf8M\xec\x9eMz.\xc6!\xdf\xf2{\xecq\x92\xc7', crc=b'\x84K\x82K\xaf:7\x1d\x7f&\xba\xc6w\xff\xd5\xad\xe8\xf3B\xd9i\x89\\\n\x87t\xf0@\xe2\x86\x1f\xc0', crc_good=True)
2023-09-11 00:00:34.500 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 34905
2023-09-11 00:00:34.501 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] 'data unvalid' error detected: switching to dev_type 'type_0d'
2023-09-11 00:00:34.501 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Re-send 16 due to device type change (v3.4 -> type_0d)
2023-09-11 00:00:34.501 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: type_0d)
2023-09-11 00:00:34.501 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload_dict for 'bfbbf6518e51a3aac7k7bj' ('v3.4'/'type_0d'): {1: {'command': {'gwId': '', 'devId': '', 'uid': '', 't': ''}}, 7: {'command': {'protocol': 5, 't': 'int', 'data': {'cid': ''}}, 'command_override': 13}, 8: {'command': {'gwId': '', 'devId': ''}}, 9: {'command': {'gwId': '', 'devId': ''}}, 10: {'command': {'devId': '', 'uid': '', 't': ''}, 'command_override': 13}, 13: {'command': {'protocol': 5, 't': 'int', 'data': {'cid': ''}}}, 16: {'command': {}}, 18: {'command': {'dpId': [18, 19, 20]}}, 64: {'command': {'reqType': '', 'data': {}}}}
2023-09-11 00:00:34.501 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.501 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:00:34.502 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 34906
2023-09-11 00:00:34.502 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00\x88Z\x00\x00\x00\x10\x00\x00\x00D\xedV\xddK\xa8Q\xb0W\xd1h\x10{@\xda\xfd\x9e\xe19J\x89fxd\xc8\x82\xe3\xba5S\xd8\x90a\x854\xb4\xb4\x0cT\x01\xa3\x81\xffq\xac\x82\xd8\xaeQ\xa6\x82\xc9\x9c\xd3\xc8\x16c\x05\x06\xaf,\xfe\xa3E\x92\x00\x00\xaaU' - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:00:34.502 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 34906
2023-09-11 00:00:34.509 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=20617, cmd=16, retcode=1, payload=b"\xe6`'\xa0\xf4\x085\x8d\x8f;\x1c|J\x0e3\xff\x92\xab\xa0\xf8`\xb0\x17\x9d\xe9K\x0b\x18\xd1\xb3\x11\xdd", crc=b'\x9d\xfd\xd0\x0f=:g$o\x15\xda\xd2\\\xc9\xa7Y+\xffn\x10\xd7\xcbU\xc9\xaaA\xbc\xad\x8eBJ\x8b', crc_good=True)
2023-09-11 00:00:34.509 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 20617
2023-09-11 00:00:34.510 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = 'nvalid'
2023-09-11 00:00:34.510 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ERROR Invalid JSON Response from Device - 900 - payload: "nvalid"
2023-09-11 00:00:34.510 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20, '14': 'low'}
2023-09-11 00:00:34.513 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=34906, cmd=16, retcode=1, payload=b'\xb8\xf8\x069(s\x07~\x18\xb7\xc3\xf8^\xb9\xc9\x04\xf8M\xec\x9eMz.\xc6!\xdf\xf2{\xecq\x92\xc7', crc=b'\xe47%\xd7\xe0\x17V\xa2\xccU\x11\xc5CG\x0b}\xc1uwPi\xc3W:\x0f|\x94\xe2\xe4\x08\x96f', crc_good=True)
2023-09-11 00:00:34.513 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 34906
2023-09-11 00:00:34.514 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = 'nvalid'
2023-09-11 00:00:34.514 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ERROR Invalid JSON Response from Device - 900 - payload: "nvalid"
2023-09-11 00:00:34.795 DEBUG (MainThread) [custom_components.localtuya] Device bf61aab26a4c46d739gkpr found with IP 192.168.1.100
2023-09-11 00:00:36.066 DEBUG (MainThread) [custom_components.localtuya] Device bfbbf6518e51a3aac7k7bj found with IP 192.168.1.99
2023-09-11 00:00:37.196 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 9 (device type: type_0d)
2023-09-11 00:00:37.196 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:37.196 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 9: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:00:37.197 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number -100
2023-09-11 00:00:37.197 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00\xa5\xcc\x00\x00\x00\t\x00\x00\x00t\x8a\xd7\x00\xdf]\xddVQ\xb3\xb1=\xd3*S\xf7yXQ\xc4%\x8f\x1c\xc4\xd0\xe5\xf5\x1f\x9e\\\xe5|\xd4\x1f\x16\xa8\x90\xa9\x9e\xd1\x0bJ\x7f\x99\xd4+\x87lx\xd6;v\xb7\xa1\xc5J\xed\xec:\xcb\x8b\x94"\xd5\xbb:m\xae\\*\xb9\xd9\xae\xe8\xe7zs\x02\x1e]j\x1e\xc8\x95\x90A\x84\tR^l\xec\xc3\x87\x11\\T\xf0\xa8`\xf2\x13\x8e\xdd.\x81kZ>{\xdf\xef\xf1\x00\x00\xaaU' - MessagePayload(cmd=9, payload=b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}')
2023-09-11 00:00:37.198 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 9 waiting for sequence number -100
2023-09-11 00:00:37.223 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 9 TuyaMessage(seqno=42444, cmd=9, retcode=0, payload=b'', crc=b'\xf7o\x87\xe1r\xa9\xff\xbc@\xcb\xff\xaf<\x85\xbe\xafH\xb9_s\nT\xc2\x15\xa1i)}\xabsLP', crc_good=True)
2023-09-11 00:00:37.223 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got heartbeat response
2023-09-11 00:00:37.223 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ACK received for command 9: ignoring it
2023-09-11 00:00:38.588 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Sending command 9 (device type: default)
2023-09-11 00:00:38.588 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Sending payload: b'{"gwId":"bf61aab26a4c46d739gkpr","devId":"bf61aab26a4c46d739gkpr"}'
2023-09-11 00:00:38.589 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Dispatching sequence number -100
2023-09-11 00:00:38.589 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] payload b"\x00\x00U\xaa\x00\x00\x00\x06\x00\x00\x00\t\x00\x00\x00X\x8fK\xb8\xa3X7\x82G\xa1\x1e\x97\xech\x9a\xee\xf9'\xf8\x848\xebA\xce\x19\xcb\xe7\x1a4\xf7<\x82F\xb6i\n\x80\xa4q\x07S\xb5>\x00/g\xf9\xe3O\x93\xdc\xb8\xd9\x91\xc0w\xf77\xa2VTI`\x07]\x8c\xddY\xebWt\xb5,%T}\xc6\xbc\xfc\x0fu\xa1\xad\xea%\x00\x00\xaaU" - MessagePayload(cmd=9, payload=b'{"gwId":"bf61aab26a4c46d739gkpr","devId":"bf61aab26a4c46d739gkpr"}')
2023-09-11 00:00:38.590 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Command 9 waiting for sequence number -100
2023-09-11 00:00:38.592 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True)
2023-09-11 00:00:38.592 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] Got heartbeat response
2023-09-11 00:00:38.593 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf6...kpr] ACK received for command 9: ignoring it
2023-09-11 00:04:21.656 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 9 (device type: type_0d)
2023-09-11 00:04:21.656 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:04:21.656 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 9: b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}'
2023-09-11 00:04:21.657 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number -100
2023-09-11 00:04:21.658 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00P\xa0\x00\x00\x00\t\x00\x00\x00t\x03U\xf0\x8eiX\xd5b\xcf\x19\x13\xbe`E\xfa$\x16\x0c\x98\xbfN\xb3\xca\xbe\xca\xc3\xbeG>\x85\xd0\xbfX\xb1\xd5\x1cp\xcc\x17`\xe2+W\x8e\xed\xa4\xc2\xca\xd5\x07*#+\x9b\x81\xc7\xaa\xbb\x86{\x05\x1f\x06\xea8_\x18\xee\xad\xca\xdeP t\t\xb6\x8b\xe6t\xf9\xbcK\x85n\x9c\x8c\x1b\xad\xb3M\x12\xb8\xe0\xa4O\xb7\xb6p\xfd\x0b\x18\xa0xq\xbb\xcc\xc1\xc1c\x0c\xeaQ\x00\x00\xaaU' - MessagePayload(cmd=9, payload=b'{"gwId":"bfbbf6518e51a3aac7k7bj","devId":"bfbbf6518e51a3aac7k7bj"}')
2023-09-11 00:04:21.659 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 9 waiting for sequence number -100
2023-09-11 00:04:21.681 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 9 TuyaMessage(seqno=20640, cmd=9, retcode=0, payload=b'', crc=b'5\xad\x94B\xc8PIx\x19|\xa5\x0b\xb0\x93\xceh\x1f@\x8b\x05\xe3\x97\xc0\xa5\x08\x9a\xc9\x10\x019\xa8g', crc_good=True)
2023-09-11 00:04:21.681 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Got heartbeat response
2023-09-11 00:04:21.682 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ACK received for command 9: ignoring it
2023-09-11 00:04:21.781 DEBUG (MainThread) [custom_components.localtuya] Device bfbbf6518e51a3aac7k7bj found with IP 192.168.1.99
2023-09-11 00:04:23.418 DEBUG (MainThread) [custom_components.localtuya.common] [cc0...6b6] Dispatching request request_remove to gateway with content None
2023-09-11 00:04:23.419 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_remove from cc047228aa6e76b6 with content None
2023-09-11 00:04:23.419 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_disconnected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:04:23.419 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_remove from cc047228aa6e76b6 with content None
2023-09-11 00:04:23.419 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_disconnected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:04:23.419 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_remove from cc047228aa6e76b6 with content None
2023-09-11 00:04:23.419 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_disconnected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:04:23.421 DEBUG (MainThread) [custom_components.localtuya.sensor] [cc0...6b6] Adding sensor.sensor_battery with configuration: {'platform': 'sensor', 'friendly_name': 'Sensor Battery', 'id': 15, 'device_class': 'battery'}
2023-09-11 00:04:23.423 DEBUG (MainThread) [custom_components.localtuya.common] [cc0...6b6] Connecting to sub-device cc047228aa6e76b6 via bfbbf6518e51a3aac7k7bj
2023-09-11 00:04:23.423 DEBUG (MainThread) [custom_components.localtuya.common] [cc0...6b6] Dispatching request request_add to gateway with content {'dps': {15: None}}
2023-09-11 00:04:23.423 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_add from cc047228aa6e76b6 with content {'dps': {15: None}}
2023-09-11 00:04:23.423 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_connected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:04:23.424 INFO (MainThread) [custom_components.localtuya.common] [bfb...7bj] Getting status for cc047228aa6e76b6
2023-09-11 00:04:23.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: type_0d)
2023-09-11 00:04:23.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:04:23.424 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:04:23.424 DEBUG (SyncWorker_4) [custom_components.localtuya.common] [cc0...6b6] Received event event_connected from gateway with data None
2023-09-11 00:04:23.425 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 42467
2023-09-11 00:04:23.425 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00\xa5\xe3\x00\x00\x00\x10\x00\x00\x00D\x0bu\xd7\xa3\xca7\x116}0V\x0ep&|\x1d*#\x9f\xbd\x9eE[2@3\x99\xdbg/\xc0\xc2?i?\x07\xe4\xc5U\xb9/a\x87\xed\x0f\xc2F\xac\xa9k\x94\xae\x14\x84\xb7\xb1X5K\x07\x86\x08\xd3\x1f\x00\x00\xaaU' - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:04:23.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 42467
2023-09-11 00:04:23.426 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_add from cc047228aa6e76b6 with content {'dps': {15: None}}
2023-09-11 00:04:23.426 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_connected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:04:23.426 INFO (MainThread) [custom_components.localtuya.common] [bfb...7bj] Getting status for cc047228aa6e76b6
2023-09-11 00:04:23.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: type_0d)
2023-09-11 00:04:23.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:04:23.426 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:04:23.426 DEBUG (SyncWorker_1) [custom_components.localtuya.common] [cc0...6b6] Received event event_connected from gateway with data None
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 20641
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00P\xa1\x00\x00\x00\x10\x00\x00\x00D=\xf4\x08\xd3\x90\xa130N"\xca!\xc3&,H=\x1a\xd7\xa9\xfeY\xf0sg\xadu\xd0\xdd\x91\xb5\xd8\x82\x0e\xc2Zx\x7fi\n\'5DBZ#\xf6\xa1\x89I\xac\xf6\x9fue\x84\x99x=\xa2G\xd6\xad\x85\x00\x00\xaaU' - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 20641
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Received request request_add from cc047228aa6e76b6 with content {'dps': {15: None}}
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_connected to sub-device cc047228aa6e76b6 with data None
2023-09-11 00:04:23.428 INFO (MainThread) [custom_components.localtuya.common] [bfb...7bj] Getting status for cc047228aa6e76b6
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending command 16 (device type: type_0d)
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Sending payload: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:04:23.428 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] final payload for cmd 16: b'{"cid":"cc047228aa6e76b6"}'
2023-09-11 00:04:23.428 DEBUG (SyncWorker_7) [custom_components.localtuya.common] [cc0...6b6] Received event event_connected from gateway with data None
2023-09-11 00:04:23.429 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 34930
2023-09-11 00:04:23.429 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] payload b'\x00\x00U\xaa\x00\x00\x88r\x00\x00\x00\x10\x00\x00\x00D\xedV\xddK\xa8Q\xb0W\xd1h\x10{@\xda\xfd\x9e\xe19J\x89fxd\xc8\x82\xe3\xba5S\xd8\x90ar\x87\xf6\xb3\x9e\xd4\xee\xd68rq\xac\xdfE\t`\xac\x90-{\xba&X\xa5\xa1\xe1\xaeBi\x18\x16\xfc\x00\x00\xaaU' - MessagePayload(cmd=16, payload=b'{"cid":"cc047228aa6e76b6"}')
2023-09-11 00:04:23.429 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Command 16 waiting for sequence number 34930
2023-09-11 00:04:23.460 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=42467, cmd=16, retcode=1, payload=b'\xf0\x87\xbc\xc8eg\xaa[\x8b\xc2\x84\xca\xea\xc3Y\xd6\x94\xfazoW!\x99\x9b\xc6\x94\x9c\xe3\xdc\xa9\x97#', crc=b'\x07\x97\x94\x08\xac\xdao1\xdc\xb7\x00H\xd3\xd0\xf6\xe7\x9c\xb9\x0f\xbf\x04\xec\x9f\xa1t\xd6\xa0)8g\xb0O', crc_good=True)
2023-09-11 00:04:23.460 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 42467
2023-09-11 00:04:23.461 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = 'nvalid'
2023-09-11 00:04:23.461 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ERROR Invalid JSON Response from Device - 900 - payload: "nvalid"
2023-09-11 00:04:23.461 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20, '14': 'low'}
2023-09-11 00:04:23.466 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=20641, cmd=16, retcode=1, payload=b"\xe6`'\xa0\xf4\x085\x8d\x8f;\x1c|J\x0e3\xff\x92\xab\xa0\xf8`\xb0\x17\x9d\xe9K\x0b\x18\xd1\xb3\x11\xdd", crc=b"};\x9c\xe3@\xdcT:^\xc0C~\xfef'\x11\xb2'8\xb4\xe9\x00 &(N\xe0\xfe\xfa\x85`\x81", crc_good=True)
2023-09-11 00:04:23.466 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 20641
2023-09-11 00:04:23.467 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = 'nvalid'
2023-09-11 00:04:23.467 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ERROR Invalid JSON Response from Device - 900 - payload: "nvalid"
2023-09-11 00:04:23.467 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7bj] Dispatching event event_status_updated to sub-device a4c138fc2370c594 with data {'3': 36, '15': 20, '14': 'low'}
2023-09-11 00:04:23.472 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching message CMD 16 TuyaMessage(seqno=34930, cmd=16, retcode=1, payload=b'\xb8\xf8\x069(s\x07~\x18\xb7\xc3\xf8^\xb9\xc9\x04\xf8M\xec\x9eMz.\xc6!\xdf\xf2{\xecq\x92\xc7', crc=b'\x0c\xec\xe2e\xfd\\V\x08r3\xb6I\xc9\x83\xe1\x0e\xa1\x875\xdf\xbf\xfe\x19R\x9b\xb3\x1buR\xe0\x8fl', crc_good=True)
2023-09-11 00:04:23.472 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Dispatching sequence number 34930
2023-09-11 00:04:23.472 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] Deciphered data = 'nvalid'
2023-09-11 00:04:23.472 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bfb...7bj] ERROR Invalid JSON Response from Device - 900 - payload: "nvalid"
2023-09-11 00:04:24.923 DEBUG (MainThread) [custom_components.localtuya] Device bf61aab26a4c46d739gkpr found with IP 192.168.1.100
Hello, I have same issue when i want add my zigbee gateway, with same error message: "During handling of the above exception, another exception occurred"
Hi, same issue here with Tuya Zigbee gateway zxgwz-02.
I tried with config flow and with yml. Config flow detects the gateway and after setting the required values I get an error (in log its a TimeoutError). When adding it in yml, I will see the gateway on my integration, but I cannot add any devices (neither by flow or yml.)
Can't add Tuya Zigbee gateway with localtuya... After install and add the integration, can't detect any of my zigbee devices, so I tried adding the data manually (host, local key, ID, etc) and get an error. This is the log:
Este error se originó a partir de una integración personalizada.
Logger: custom_components.localtuya.config_flow Source: custom_components/localtuya/pytuya/init.py:325 Integration: LocalTuya integration (documentation, issues) First occurred: 02:03:02 (2 occurrences) Last logged: 02:05:54
Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/locks.py", line 390, in acquire await fut asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/config/custom_components/localtuya/config_flow.py", line 386, in async_step_basic_info self.dps_strings = await validate_input(self.hass, user_input) File "/config/custom_components/localtuya/config_flow.py", line 292, in validate_input detected_dps = await interface.detect_available_dps() File "/config/custom_components/localtuya/pytuya/init.py", line 702, in detect_available_dps status = await self.status() File "/config/custom_components/localtuya/pytuya/init.py", line 602, in status status = await self.exchange(ACTION_STATUS) File "/config/custom_components/localtuya/pytuya/init.py", line 563, in exchange msg = await self.dispatcher.wait_for(seqno) File "/config/custom_components/localtuya/pytuya/init.py", line 325, in wait_for await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError ............................................................................................................................................
Then tried to add it by yaml . After add it and reboot HA, I can see the localtuya zigbee gateway, but can't add subdecices by flow. If I add by yaml , I can see the subdecices, but all show as disconnected... where should I start to look for the problem?
THANKS