Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TuyaDebug error on one device: Failed to get status: unpack requires a buffer of 20 bytes #565

Open
djiesr opened this issue Sep 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@djiesr
Copy link

djiesr commented Sep 18, 2021

I try to get the DPS of a device, I can add it in LocalTuya, but I have 3 different device to set with to many config. Than, I try to scan it in TuyaDebug, but i got this error on this device. The others devices work good.

Thanks

_Error

INFO:localtuya:localtuya version 1.0.0
INFO:localtuya:Python 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0] on linux
INFO:localtuya:Using pytuya version '8.1.0'
INFO:localtuya:Detecting list of available DPS of device 8886683884cca8b7a8a4 [192.168.1.36], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"8886683114cca8b7a8a4","devId":"8886683114cca8b7a8a4"}'
DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:READING AGAIN!
DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.36. Raising Exception.
WARNING:localtuya.pytuya:Failed to get status: unpack requires a buffer of 20 bytes
INFO:localtuya:Detecting list of available DPS of device 8886683884cca8b7a8a4 [192.168.1.36], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"8886683114cca8b7a8a4","devId":"8886683114cca8b7a8a4"}'
DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:READING AGAIN!
DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.36. Raising Exception.
WARNING:localtuya.pytuya:Failed to get status: unpack requires a buffer of 20 bytes
INFO:localtuya:Detecting list of available DPS of device 8886683884cca8b7a8a4 [192.168.1.36], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"8886683114cca8b7a8a4","devId":"8886683114cca8b7a8a4"}'
DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:READING AGAIN!
DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.36. Raising Exception.
WARNING:localtuya.pytuya:Failed to get status: unpack requires a buffer of 20 bytes
INFO:localtuya:TIMEOUT: No response from device 8886683884cca8b7a8a4 [192.168.1.36] after 2 attempts.

Other device

INFO:localtuya:localtuya version 1.0.0
INFO:localtuya:Python 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0] on linux
INFO:localtuya:Using pytuya version '8.1.0'
INFO:localtuya:Detecting list of available DPS of device eb547da841d8cf644slw6t [192.168.1.222], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"eb547da841d8cf644slw6t","devId":"eb547da841d8cf644slw6t"}'
DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'S\xfa\xf3\xdf\\x14!T\xb8\xd5\xea\xe4?\x86\xa3\x8c@\xf3\xe5\xa6\xdb\x1a \xc2\xa7_7\xfa\x81 d\x91H\x9d\xbb!W\xe6\xfe\x92\x82\x98\xd6\x0b\xe8\xc1\x91\xad\xee\xc6|i\x83\xdf\xb3\xfc\x8c\xfdO\xbaS1\xee\x7fq\xf7nI\xef\xe4.Az\x83B\x1d\xb1j\xf3\xea/\xd0\x9dM\x80\xcb\xcagV\xc7\x0b\xef!9\x93\xa1'
DEBUG:localtuya.pytuya:decrypted result='{"dps":{"20":true,"21":"scene","24":"000003e803e8","25":"020e0d00001403e803e800000000","26":0}}'
AVAILABLE DPS ARE [{'20': True, '21': 'scene', '24': '000003e803e8', '25': '020e0d00001403e803e800000000', '26': 0}]
INFO:localtuya:COMPLETE response from device eb547da841d8cf644slw6t [192.168.1.222].
INFO:localtuya:Detecting list of available DPS of device eb547da841d8cf644slw6t [192.168.1.222], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"eb547da841d8cf644slw6t","devId":"eb547da841d8cf644slw6t"}'
DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'S\xfa\xf3\xdf\\x14!T\xb8\xd5\xea\xe4?\x86\xa3\x8c@\xf3\xe5\xa6\xdb\x1a \xc2\xa7_7\xfa\x81 d\x91H\x9d\xbb!W\xe6\xfe\x92\x82\x98\xd6\x0b\xe8\xc1\x91\xad\xee\xc6|i\x83\xdf\xb3\xfc\x8c\xfdO\xbaS1\xee\x7fq\xf7nI\xef\xe4.Az\x83B\x1d\xb1j\xf3\xea/\xd0\x9dM\x80\xcb\xcagV\xc7\x0b\xef!9\x93\xa1'
DEBUG:localtuya.pytuya:decrypted result='{"dps":{"20":true,"21":"scene","24":"000003e803e8","25":"020e0d00001403e803e800000000","26":0}}'
AVAILABLE DPS ARE [{'20': True, '21': 'scene', '24': '000003e803e8', '25': '020e0d00001403e803e800000000', '26': 0}]
INFO:localtuya:COMPLETE response from device eb547da841d8cf644slw6t [192.168.1.222].
INFO:localtuya:Detecting list of available DPS of device eb547da841d8cf644slw6t [192.168.1.222], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"eb547da841d8cf644slw6t","devId":"eb547da841d8cf644slw6t"}'
DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'S\xfa\xf3\xdf\\x14!T\xb8\xd5\xea\xe4?\x86\xa3\x8c@\xf3\xe5\xa6\xdb\x1a \xc2\xa7_7\xfa\x81 d\x91H\x9d\xbb!W\xe6\xfe\x92\x82\x98\xd6\x0b\xe8\xc1\x91\xad\xee\xc6|i\x83\xdf\xb3\xfc\x8c\xfdO\xbaS1\xee\x7fq\xf7nI\xef\xe4.Az\x83B\x1d\xb1j\xf3\xea/\xd0\x9dM\x80\xcb\xcagV\xc7\x0b\xef!9\x93\xa1'
DEBUG:localtuya.pytuya:decrypted result='{"dps":{"20":true,"21":"scene","24":"000003e803e8","25":"020e0d00001403e803e800000000","26":0}}'
AVAILABLE DPS ARE [{'20': True, '21': 'scene', '24': '000003e803e8', '25': '020e0d00001403e803e800000000', '26': 0}]
INFO:localtuya:COMPLETE response from device eb547da841d8cf644slw6t [192.168.1.222].
INFO:localtuya:TIMEOUT: No response from device eb547da841d8cf644slw6t [192.168.1.222] after 2 attempts._

@djiesr djiesr added the bug Something isn't working label Sep 18, 2021
CloCkWeRX pushed a commit to CloCkWeRX/localtuya-experimental that referenced this issue Feb 25, 2025
* fix links

* update events.

* add remote services

* danger -> warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant