8000 Can't find devices locally · Issue #578 · jasonacox/tinytuya · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Can't find devices locally #578

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

Closed
Cic0r opened this issue Jan 6, 2025 · 3 comments
Closed

Can't find devices locally #578

Cic0r opened this issue Jan 6, 2025 · 3 comments

Comments

@Cic0r
Copy link
Cic0r commented Jan 6, 2025

I am not able to find my devices locally and i do not know why. Wizard gets information from API, but is not able to find it locally:

python3 -m tinytuya wizard
[data from API]

Poll local devices? (Y/n): y

Scanning local network for Tuya devices (retry 28 times)...
DEBUG:tinytuya.scanner:loaded=devices.json [3 devices]
DEBUG:tinytuya.scanner:Listening for Tuya devices on UDP 6666 and 6667
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
DEBUG:tinytuya.scanner:Scan complete with 1 devices found
    1 local devices discovered

Polling local devices...
    [TV] - 0 - Error: No IP found
    [Smart Touch Control] - 0 - Error: No IP found
    [Smart Light] - 0 - Error: No IP found

>> Saving device snapshot data to snapshot.json

Done.

Scan gives me the following:

python -m tinytuya scan
DEBUG:tinytuya.core:tinytuya.core version 1.9.1
DEBUG:tinytuya.core:Python 3.12.8 (tags/v3.12.8:2dc476b, Dec  3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)] on win32
DEBUG:tinytuya.core:Using pyaes version [1, 3, 0]
DEBUG:tinytuya.core:Using pyaes from 'C:\\Users\\gundi\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python312\\site-packages\\pyaes\\__init__.py'
DEBUG:tinytuya.scanner:loaded=devices.json [3 devices]

TinyTuya (Tuya device scanner) [1.9.1]

[Loaded devices.json - 3 devices]

Scanning on UDP ports 6666 and 6667 for devices (18 retries)...

DEBUG:tinytuya.scanner:Listening for Tuya devices on UDP 6666 and 6667
*  Unexpected payload=%r
 b'\xc4\x02\\*F\xef\x1ep\x00\xc7\xc3\t\xd8\x99A\xba\xd32\x1e\xcf>\xee\x94\xe0\x98\x9f\xf4/c\xd8$\x95L\xdc\nn$a\xdd(\x88z\xb6\x87\xce<\xdd\xf1l\x0cJ\xfd.O\xdd\xc7\xd2\x8c\xcc\x99%\xc7\x1a\x17\x18\x13>\xe1\xd0\xb4<0m\xdc17\x11"\xbe\x9b\xd0-3G\xd3\xdf\x8d\x00]\x82\xf8\xc7n\xa3\xa8=\xe8\xf4\xa4\xc2\xd4;\xb7\x12\xdbG)\x16\x9a#\x80\xb6\xd1\xc2D\xc5\xa1\x0be\xca,\x8a\x10\xbe;\xa1\xb6\xac\x95i1\xea\x18p\xba`9%\xdbym$dE|\xf6s\xf1XX\xc9\x83\x1a\xb0\xadX\x1e\xd4\x8e=\x94\xc0\xa4\x13\xc4\x04\xd8\xd5N\n\xa6T\xb0N\xc7\x94\nn\x03\x18\xff\x1a\x85z\xbf\x84\xd2\xdb\x9f\xd9\xaeZC\xa5\x9d~\x81\xad7Ez\xb0\xe02t\x1bHc\x00\xf6\xea\xd5\xd9\xab\x19\xba\x97\xb3\x80\xcb\x17O\x02@S.\x1a\xb3\xcd\xfd\x96n\x8d\xa3d'
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}
Unknown v Device   Product ID =   [Unknown payload]:
    Address = 192.168.178.39,  Device ID = , Local Key = ,  Version = , MAC =
    No Stats for 192.168.178.39: DEVICE KEY required to poll for status
*  Unexpected payload=%r
 b'\x88>\xf1$\xd4\x0f\xb7\xadD\xa9\x0fi\x94A\xc3m\xa8\xdb\xa4\xe9<\x9c3:T\xbatWF\xe0CO\x08\xae|t\xc21\xa8\x1f\xf8\x0b\xce\xe3\xfe\xf6\xf5\x04\xe2\xfbiG\x8e\xb9\x15\xe1|\xa3\xd1\xcf\xa2\x04\x8f\n\xd1\xa8ZD\x9c&\xaa\x8a\xafD\r\xe6\x9a[{\xa7m\x8c\x16\xb7\xaa\xe7\x92\xb982\'\x02\xd7\xcdQ\x90\xad\x1bwLl*T\xd7,\xd0\xd6\xb2\xaf!\xb7\x9e\x845%\xfcnJJ"K\rK\x16\x988sl\xd2\x97\x91\xc0\xf8\x18\t\x95l1\x9d\xe3y\x80LR\xdd\xfa\x80Sx\xcb\xd5\xcf[\x80\x8cQP\xf80\xdcz\xd7F^\xcb\xd4T\x808\xe0\xa5\xcb!\x9ai\xbfI\x8a\xdf\xc30H\xde[\xf8\x8a\xe8\xd8\xa1\xa2k\xc9\xa7\x19\xbe\xecmc\x1a\x9bY{U\xba\xea\xdd\xce\x9c\xbf\xe6K\xdf\x92\xdd\xf3\x88\xf8\xc3\x11\xb22^\x0e\x12\xcbe\x03\xbc\xa9\xb5\xdf\x06\x13\x98\xbd'
DEBUG:tinytuya.scanner:Invalid UDP Packet: {'ip': '192.168.178.39'}

Local key and everything is in the json, those data is loaded from API. But at this point it won't get any further. Is there a problem with blocking the broadcast, maybe?
Thank you for your help.

@uzlonewolf
Copy link
Collaborator

DEBUG:tinytuya.core:tinytuya.core version 1.9.1
DEBUG:tinytuya.core:Using pyaes version [1, 3, 0]

That's a rather ancient version of TinyTuya, 1.16.0 was just released yesterday. Upgrade it with pip install --upgrade tinytuya and try again. That should also pull in pyca/cryptography instead of pyaes since pyaes does not support v3.4+ devices.

@Cic0r
Copy link
Author
Cic0r commented Jan 6, 2025

That's it, thank you. I just got an outdated version.

@uzlonewolf
Copy link
Collaborator

Great! Since it sounds like that fixed your issue I'm going to go ahead and close this. Feel free to re-open it if you're still having issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0