xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
284 stars 30 forks source link

[Bug]: Connection to device succeeded but no datapoints could be found. Please try set-up again. If problem persists, create a new issue (including debug logs). #270

Open Sincere74 opened 3 weeks ago

Sincere74 commented 3 weeks ago

LocalTuya Version

2024.6.0

Home Assistant Version

2024.6.1

Environment

What happened?

A bug happened!

Steps to reproduce.

  1. Add new device
  2. Configure device connectivity
  3. Снимок экрана 2024-06-09 134828 Снимок экрана 2024-06-09 134814

Relevant log output

2024-06-09 13:26:58.857 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ble_monitor 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
2024-06-09 13:26:58.863 WARNING (SyncWorker_0) [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
2024-06-09 13:26:58.869 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration gismeteo 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
2024-06-09 13:26:58.874 WARNING (SyncWorker_0) [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
2024-06-09 13:26:58.879 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration google_maps 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
2024-06-09 13:27:16.250 DEBUG (MainThread) [custom_components.localtuya.discovery] Listening to broadcasts on UDP port 6666, 6667
2024-06-09 13:27:16.333 DEBUG (MainThread) [custom_components.localtuya.discovery] Discovered device: {'ip': '172.16.1.103', 'gwId': 'bfe8132dac96060574snhr', 'active': 2, 'ablilty': 0, 'encrypt': True, 'productKey': 'keym557nqw3p8p7m', 'version': '3.4', 'lan_cap': 500, 'lan_seq': 52, 'lan_ablilty': 1, 'token': True, 'wf_cfg': True, 'clientLink': 3}
2024-06-09 13:27:17.107 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.
2024-06-09 13:27:19.106 DEBUG (MainThread) [custom_components.localtuya.discovery] Discovered device: {'ip': '172.16.1.22', 'gwId': 'bf5b97c5b5cc4c279c6rxh', 'active': 2, 'ablilty': 0, 'encrypt': True, 'productKey': 'keym557nqw3p8p7m', 'version': '3.4', 'lan_cap': 500, 'lan_seq': 4, 'lan_ablilty': 1, 'token': True, 'wf_cfg': True, 'clientLink': 3}
2024-06-09 13:27:19.773 DEBUG (MainThread) [custom_components.localtuya.discovery] Discovered device: {'ip': '172.16.1.104', 'gwId': 'bf592847c9e18dee53sdb1', 'active': 2, 'ablilty': 0, 'encrypt': True, 'productKey': 'keyjnuy4s3kre7m7', 'version': '3.4', 'token': True, 'wf_cfg': True}
2024-06-09 13:27:19.886 DEBUG (MainThread) [custom_components.localtuya.discovery] Discovered device: {'ip': '172.16.1.101', 'gwId': 'bfd2dc7cd83150ef42lvl9', 'active': 2, 'ablilty': 0, 'encrypt': True, 'productKey': 'key54vrth5askhsj', 'version': '3.3'}
2024-06-09 13:27:23.323 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-06-09 13:27:23.395 WARNING (SyncWorker_12) [custom_components.google_maps.device_tracker] google_maps under device_tracker is deprecated, please remove it from your configuration and any associated entries in known_devices.yaml and add via UI instead
2024-06-09 13:27:23.853 ERROR (SyncWorker_12) [custom_components.google_maps.device_tracker] The cookie file provided does not provide a valid session. Please create another one and try again
2024-06-09 13:27:23.879 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy google_maps
2024-06-09 13:27:28.226 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-06-09 13:27:30.555 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for losi @ 172.16.1.74: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='172.16.1.74', port=6053))]: [Errno 113] Connect call failed ('172.16.1.74', 6053) (SocketAPIError)
2024-06-09 13:28:12.655 DEBUG (MainThread) [custom_components.localtuya.core.cloud_api] Devices has been updated a minutes ago.
2024-06-09 13:28:28.465 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] 3.4 or 3.5 device: negotiating a new session key
2024-06-09 13:28:28.466 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 3: b'0123456789abcdef'
2024-06-09 13:28:28.473 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 3 waiting for seq. number -102
2024-06-09 13:28:28.521 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 4 TuyaMessage(seqno=25313, cmd=4, retcode=0, payload=b'\x8e\x12Y\xf8\xc4!=@\x8eN\x16\x14S?\xbe\x06\x06\xf8\x8d\x82\xa6`\xbbc\xb9./\x83\xa2\x16\xb8\x07\xf4W\x19\x83\xda6\x7fY\xb2\xc2\xba\xaa8,\\=!\xcf\x8a\x0b\x01\xcb\xc51\x02_\xad]u\xd9\x8fy', crc=b'G\xf1\x8f\xa5D\x14\x97\x8e\xf5X\xd7\x96\x0c\x98\x00\x8c\xdbm\r\xe7\xf3/\xa8o\xe7h7V\x97C\xcbx', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:28.522 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Got key negotiation response
2024-06-09 13:28:28.529 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] decrypted session key negotiation step 2: payload=b'e846dbd369fdd6a4\xc9sL&{r\xa7\x97\xe5\xdb\x18\xbe>\xb1\xc0\xf7\xc8\xc0u@\xce\x03\xebx\xe4\xef\xf8\xf2z\x02\x95U'
2024-06-09 13:28:28.536 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 5: b'\\\xbb9lf\x83\xb3\xd0[\xf8 \xaaAf\x0b\xfb\xfc\xfeo=\x0e\x0e\xc1\xf3z\x19t\xf5\t\xb8\xe6\xf7'
2024-06-09 13:28:28.543 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Session key negotiate success! session key: b'xX\x90\xb0B\xab\x9bsE.\x84\xdc\x98\xe3\xf1x'
2024-06-09 13:28:28.543 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:28.545 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.545 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.555 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25314
2024-06-09 13:28:28.632 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25314, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b'P/\xdd\xb2\x9a0\x8a\x97\xc6\xa6\x88Q\xb3\x98\xee\xf3\xc8]\x9b\xc2\xa1\x9e5^\xa8\xce\x84V\x9e)\xd6\x19', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:28.632 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25314
2024-06-09 13:28:28.645 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:28.647 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.648 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.657 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25315
2024-06-09 13:28:28.735 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25315, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b'\xaf]?\xf9\xd7\x8b`\xfb\xc6\xad_ro\x96\xbe<\xf9\xe6\x85\x8f\x16\xca\xb3\x03E&I\x830K(\xeb', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:28.736 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25315
2024-06-09 13:28:28.742 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:28.744 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.745 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.753 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25316
2024-06-09 13:28:28.762 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25316, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b',\x7f\xb3%\xadh\x89\x1d2\xa6\xce[^\x1d-\xab\xc5\xd9\xa1.\xa4\xce\x82{\xf2J\xf85\xe5\xc9\xf1\xc0', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:28.763 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25316
2024-06-09 13:28:28.772 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:28.773 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.774 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.782 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25317
2024-06-09 13:28:28.837 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25317, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b'\xa0\xe5\xa6\xa2\x18\xc3\x12[\x9a\xd5q\x91\x8e\x9bG\xe5\xfa5t7\xf0 \x1b_\xd1\x8fc\x9cE7j\xd7', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:28.838 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25317
2024-06-09 13:28:28.847 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:28.848 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.849 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.853 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25318
2024-06-09 13:28:28.862 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25318, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b'I\xa5\x9c\x83Yj\x1eQ\xc1\xec\x10^\rK\xd4A\xea\xb8#ny\x0bi\xd9\xa1\x88N\x01\xaaT\xa2H', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:28.863 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25318
2024-06-09 13:28:28.870 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:28.871 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.872 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.882 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25319
2024-06-09 13:28:28.939 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25319, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b'+\x8clA\xc9\r\xf3LN\x96\xe2P\x96\xc5\x1eo"P\x85\xe0\x01&wX\xeb\x15\xf1G\x81\xcc\x81\x9a', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:28.939 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25319
2024-06-09 13:28:28.946 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:28.947 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.949 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928908","cid":"dc234f1cae9c"}'
2024-06-09 13:28:28.958 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25320
2024-06-09 13:28:29.041 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25320, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b'`\x07\xee\xd0\x85#\t~\xf8\x95\x0e\x0fo}\xc3\xc9\xea6-"w\xe8\x8aq(\xfa\xa3\x03@\x02i\xea', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:29.041 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25320
2024-06-09 13:28:29.049 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:28:29.050 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928909","cid":"dc234f1cae9c"}'
2024-06-09 13:28:29.051 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928909","cid":"dc234f1cae9c"}'
2024-06-09 13:28:29.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 25321
2024-06-09 13:28:29.135 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=25321, cmd=16, retcode=1, payload=b'\x17\xa8\xe0\x13\xd4\xc1Z\x99Dt\xad\xea\xb9\xd9\x89\x89-\xbaZ\xfeh\xbc\xbb\xaa\xda\x82~\xf6Iuv\x10', crc=b'\xee\xaf\xb6d\xb4K\x87\xc7\xb4\x93\x0f\xdcG\x0f|\x06\xe1W\xa7\xab\xf8\xaeoa\xd3\x7f\x97\xef\x9d;\xe7o', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:28:29.136 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 25321
2024-06-09 13:28:29.145 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {}
2024-06-09 13:28:29.145 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Closing connection
2024-06-09 13:28:29.146 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Cleaning up session.
2024-06-09 13:28:29.159 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Connection lost: None
2024-06-09 13:28:29.160 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Cleaning up session.
2024-06-09 13:29:32.285 DEBUG (MainThread) [custom_components.localtuya.core.cloud_api] Devices has been updated a minutes ago.
2024-06-09 13:29:46.269 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] 3.4 or 3.5 device: negotiating a new session key
2024-06-09 13:29:46.271 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 3: b'0123456789abcdef'
2024-06-09 13:29:46.279 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 3 waiting for seq. number -102
2024-06-09 13:29:46.345 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 4 TuyaMessage(seqno=2143, cmd=4, retcode=0, payload=b'j\xac\xe6\x07\xdb\x00\xff\xa5\x0e\xadAk&\xcd\xd2)\x06\xf8\x8d\x82\xa6`\xbbc\xb9./\x83\xa2\x16\xb8\x07\xf4W\x19\x83\xda6\x7fY\xb2\xc2\xba\xaa8,\\=!\xcf\x8a\x0b\x01\xcb\xc51\x02_\xad]u\xd9\x8fy', crc=b'\xc0\x1eS\x1f8\xc3\x115\x83\xc3E\xb1IW(T\xa2\x08\xbf]\xe0\xea\x91\xc8Z\xe5\n^^Z\xa9d', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.346 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Got key negotiation response
2024-06-09 13:29:46.354 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] decrypted session key negotiation step 2: payload=b'f0714f2bde5512e8\xc9sL&{r\xa7\x97\xe5\xdb\x18\xbe>\xb1\xc0\xf7\xc8\xc0u@\xce\x03\xebx\xe4\xef\xf8\xf2z\x02\x95U'
2024-06-09 13:29:46.356 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 5: b'OL\xfbX\xd2\x8d\x840\xe7q\xd9\x1f\xc9G\x01W$\x12\xbcpiF[\xe7\xd3|\x88\xbb\xb2\r\xa4r'
2024-06-09 13:29:46.365 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Session key negotiate success! session key: b'\xf1\xb6\xfc\xd0B\xc4`\xb3\x08&\xea\xe3\x90&\xebI'
2024-06-09 13:29:46.366 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.368 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.369 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.377 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2144
2024-06-09 13:29:46.385 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2144, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b'\xce;RvT\xde6^\x9c\x132\x9f\xd2\xf8\x86pV\x01R\xbd\x1e\xd6Va\xffWEL\x01y\x851', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.386 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2144
2024-06-09 13:29:46.392 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.393 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.395 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.402 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2145
2024-06-09 13:29:46.457 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2145, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b'\xe4;\x11\xbd\x02.\xa9\\\x95tt\x870\x9bT\x8d\x8a<\xdfJ\x03Y\xa5\x0c\xbf\x0f@\xa0\xc1\xf48\xb4', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.457 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2145
2024-06-09 13:29:46.464 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.466 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.466 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.475 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2146
2024-06-09 13:29:46.481 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2146, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b'`KCo\x9a\xb5\xa6\x15\x14\xc6\x83\xa3\xa5\xdb\xea\x91\x1bT.\xac\x927W\xa2\xac\xef\xda\x10\xc9\xf6\xbff', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.482 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2146
2024-06-09 13:29:46.487 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.489 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.489 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.499 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2147
2024-06-09 13:29:46.558 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2147, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b'R\x93\x81\xec\xdd\x15\xba\x1c\x11f`\x83\xe8\xb9P\xb6\xeb&\xfc\xf6("X\xb7\x1c\x85\xf6&\xdfXmA', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.559 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2147
2024-06-09 13:29:46.567 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.568 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.569 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.573 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2148
2024-06-09 13:29:46.763 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2148, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b'\xd6FS\x02*g\x102}\x0btQ\xb1\xcdX\xff\\\x0b\x9f@hz\xabZ\x14\xfc\xabn\x89~\xd0\xd2', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.764 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2148
2024-06-09 13:29:46.772 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.773 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.774 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.781 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2149
2024-06-09 13:29:46.788 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2149, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b'\xf9\xc4\x8faA\x1fS"\xe8ED\xc8\xcd\xfb\xeb.\xe5\x18w\xe6:E\xc7\xc7\x1b\xe4F\xac\xd7\xc5\xc8\xfe', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.789 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2149
2024-06-09 13:29:46.793 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.794 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.795 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.803 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2150
2024-06-09 13:29:46.811 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2150, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b'\xa7\x88A`\xd6\xe8Dur\x7f\xdf\x83\x9b\xb02q=\xb6\x0e\xb1\x04"\xa8\xdc\x81AT\xec,\xa9\xbb\x83', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.812 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2150
2024-06-09 13:29:46.822 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending command 10 (device type: v3.4) DPS: None
2024-06-09 13:29:46.823 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Sending payload: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.823 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] final payload for cmd 16: b'{"t":"1717928986","cid":"dc234f1cae9c"}'
2024-06-09 13:29:46.827 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Command 16 waiting for seq. number 2151
2024-06-09 13:29:46.869 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching message CMD 16 TuyaMessage(seqno=2151, cmd=16, retcode=1, payload=b'\xb1\xa3KzO\xd5\xca\x08\xa0a\xaf\xebl\x11\x01\t+\x16J\xc8\xe1\xd7\x9f\xea\x95\xae\xf9\x1d6\xf2k\xf3', crc=b']\xa8\xde\x96E\xfe#\xbc\xf0(\x03\xeb|l\xba\x14??\x9dP\x7f\x1b\xb8\xce\xe3R~9&\xc8\xac\xa2', crc_good=True, prefix=21930, iv=None)
2024-06-09 13:29:46.869 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Dispatching sequence number 2151
2024-06-09 13:29:46.873 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {}
2024-06-09 13:29:46.874 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Closing connection
2024-06-09 13:29:46.875 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Cleaning up session.
2024-06-09 13:29:46.888 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Connection lost: None
2024-06-09 13:29:46.889 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...eyh] Cleaning up session.

Diagnostics information.

No response

xZetsubou commented 3 weeks ago

Post the entry diagnostics note that it may be broken in HA 2024.6.

Also what is this device that you're trying to add? I can see there is response from gateway but also no detected dps for some reason.

ehran commented 1 week ago

Hello, having the same issue with a wifi energy meter (model SQ-Wifi-CT02 : https://www.aliexpress.com/item/1005006212527242.html?spm=a2g0o.order_list.order_list_main.4.374f5e5bUjwHJ8&gatewayAdapt=glo2fra)

yuntian123456 commented 1 week ago

The same issue with my Air Conditioner Mate. image

If not key in sub-device node ID, i can succeed, but can only monitor Voltage,current, power. If key in sub-device node ID, it shown as above.

https://developer.tuya.com/en/docs/iot/solution-introduction?id=K9tp15mflhn4i

Here is the devices.json info, got by tinytuya. https://github.com/jasonacox/tinytuya

_{
    "name": "\u7a7a\u8c03",
    "id": "6cf170c0c2cdf63c*********",
    "key": ";z0v)V;h[**********",
    "mac": "",
    "category": "infrared_ac",
    "product_name": "\u7a7a\u8c03",
    "product_id": "jllh2kdbGM0QTdf1",
    "biz_type": 18,
    "model": "",
    "sub": true,
    "icon": "https://images.tuyacn.com/smart/icon/1538039048p03rjhzm8as_0.png",
    "uuid": "6cf170c0c2cdf63c3******",
    "node_id": "f919e9057b0******",
    "mapping": {
        "wind": {
            "code": "wind",
            "type": "ENUM",
            "values": {
                "min": 0,
                "max": 3,
                "scale": 0,
                "step": 1,
                "type": "Integer"
            }
        },
        "mode": {
            "code": "mode",
            "type": "ENUM",
            "values": {
                "min": 0,
                "max": 4,
                "scale": 0,
                "step": 1,
                "type": "Integer"
            }
        },
        "power": {
            "code": "power",
            "type": "BOOLEAN",
            "values": {}
        },
        "temp": {
            "code": "temp",
            "type": "ENUM",
            "values": {
                "min": 16,
                "max": 30,
                "scale": 0,
                "step": 1,
                "type": "Integer"
            }
        },
        "F": {
            "code": "F",
            "type": "ENUM",
            "values": {
                "min": 0,
                "max": 3,
                "scale": 0,
                "step": 1,
                "type": "Integer"
            }
        },
        "M": {
            "code": "M",
            "type": "ENUM",
            "values": {
                "min": 0,
                "max": 4,
                "scale": 0,
                "step": 1,
                "type": "Integer"
            }
        },
        "PowerOff": {
            "code": "PowerOff",
            "type": "STRING",
            "values": "PowerOff"
        },
        "PowerOn": {
            "code": "PowerOn",
            "type": "STRING",
            "values": "PowerOn"
        },
        "T": {
            "code": "T",
            "type": "ENUM",
            "values": {
                "min": 16,
                "max": 30,
                "scale": 0,
                "step": 1,
                "type": "Integer"
            }
        }
    },
    "parent": "02251703e8db84******",
    "ip": "",
    "version": ""
},
{
    "name": "\u6d82\u9e26\u7a7a\u8c03\u4f34\u4fa3",
    "id": "02251703e8db84********",
    "key": ";z0v)V;h[S*****",
    "mac": "e8:db:84:b3:*****",
    "uuid": "02251703e8db84********",
    "sn": "XJECK19DH****8",
    "category": "wnykq",
    "product_name": "\u7a7a\u8c03\u4f34\u4fa3",
    "product_id": "orpegw0cfq1htmpv",
    "biz_type": 18,
    "model": "",
    "sub": false,
    "icon": "https://images.tuyacn.com/smart/icon/ay1539168861205DkDuL/ba4c5edf05bdaf3e2b56e14ba9aa4738.png",
    "mapping": {},
    "ip": "192.168.11.11",
    "version": ""
}_
xZetsubou commented 1 week ago

@yuntian123456 You can't add the Sub-Devices that created or managed by "Universal remote control" these devices data stored in Tuya cloud not in the device it self, so locally it not usable unless you add the remote it self and create a button in home-assistant it self https://github.com/xZetsubou/hass-localtuya/discussions/152#discussioncomment-8715426 if you set-up cloud with localtuya maybe entry diagnostics may give you a hint of what you are looking for.