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
This happened while trying to scan my network from Raspbian on a Pi 4 #12
Comments
OK so I figured that bit out on my own.. I had to Stop the HASS container.. now to figure out why this is: [Dog Run Lights] - 192.168.86.114 - No Response I can Ping the IP, I can control the device (On/Off) from HA and the Tuya app.. I get the same output from Raspbian on my Pi and my Win10 laptop. The tuya app shows good network connectivity.. |
HASS was likely configured to open the UDP port 6666 for listening so the OS would not allow tinytuya to open it as well. No response can indicate an invalid key. What do you get with One other suggestion: make sure you are using the latest version of tinytuya (1.1.1):
|
I just did the upgrade to tiny tuya and still get the same result from "python -m tinytuya wizard" I'll show you the piped result of the scan method: Polling local devices...
|
It does see some of your devices and is pulling back the data points, but a few errors as you noted:
Can you provide the output of a scan in addition to the wizard output to see if the "No Response" devices have an ID length of 22? Also, I notice the color escape sequences in our output, are you using Windows "Command Prompt" or the "Powershell" terminal? For Command Prompt (or if you are just piping output via RPi, Mac, Linux), you can use the
|
I have 3 lights unplugged (outside light 1 2 3) so I get it not pulling data, everything else is plugged in |
TinyTuya (Tuya device scanner) [1.1.1] [Loaded devices.json - 17 devices] Scanning on UDP ports 6666 and 6667 for devices (15 retries)... Scanning... | Scan Complete! Found 12 devices. |
Thanks! I'm probably missing something obvious, but is there still a problem? It looks like you are getting a response for your devices:
That looks like a RGB Color light. Here are the details for those DPS values: If you are interested, here is an example script on how to control an RGB light: Lines 1 to 118 in 1f4644c
|
I figured it all out days ago.. sorry I should have updated. |
Awesome! Thanks for the note. I'll close this issue. |
Scanning local network for Tuya devices...
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/shane/.local/lib/python3.7/site-packages/tinytuya/main.py", line 48, in
tinytuya.wizard(color)
File "/home/shane/.local/lib/python3.7/site-packages/tinytuya/init.py", line 1479, in wizard
devices = deviceScan(False, 20)
File "/home/shane/.local/lib/python3.7/site-packages/tinytuya/init.py", line 1139, in deviceScan
client.bind(("", UDPPORT))
OSError: [Errno 98] Address already in use
The text was updated successfully, but these errors were encountered: