Open
Description
I have a smart energy monitor device ("product_name": "三相重合闸") that worked fairy well in the past, but recently I noticed, that I can't connect to it via tinytuya. In the past it worked fine, but now I'm getting this when I'm trying to get device status
DEBUG:TinyTuya [1.15.1]
DEBUG:Python 3.13.0 (main, Oct 25 2024, 16:23:57) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
DEBUG:Using pyca/cryptography 44.0.0 for crypto, GCM is supported
DEBUG:status() entry (dev_type is default)
DEBUG:final payload_dict for 'bfa5775d7c4ed89aabxqml' ('v3.4'/'default'): {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': {}}}}
DEBUG:building command 10 payload=b'{}'
DEBUG:sending payload quick
DEBUG:final payload: b'0123456789abcdef'
DEBUG:payload encrypted=b'000055aa000000010000000300000044343e997b3510ddd1bcbe891319668c1b9490ddc4c873e2790edf2dd3c682fee1bc9378e554f900b271b3bd05eb37871d6f36348976239ef9f6d264c669d5abee0000aa55'
DEBUG:_recv_all(): no data? b''
DEBUG:_recv_all(): no data? b''
DEBUG:received null payload (None), fetch new one - 1 retries remaining
DEBUG:_recv_all(): no data? b''
DEBUG:_recv_all(): no data? b''
DEBUG:received null payload (None) but out of recv retries, giving up
DEBUG:session key negotiation failed on step 1
DEBUG:ERROR Check device key or version - 914 - payload: null
DEBUG:status() received data={'Error': 'Check device key or version', 'Err': '914', 'Payload': None}
Meanwhile via cloud api I can connect to it without any problem. I checked and the device key remains the same. Device rebooting doesn't help.