-
Notifications
You must be signed in to change notification settings - Fork 204
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
deviceScan / wizard works on cmd but not running the script #596
Comments
Another thing I forgot to mention. I tried the same script couple days ago and It worked just fine... Even tho I havent even touched this... |
Anyone can help me? ... |
Does running with |
Oh yeah, running Home Assistant on the same machine can also prevent the discovery packets form being received as the operating system usually only gives UDP broadcast packets to a single program. Some devices also stop sending broadcasts if a LAN connection is already active with them. |
Heyy @uzlonewolf thanks for your reply, after like 1 million tries, I finally fixed it. The problem was windows firewall... I had no Idea that this could happen... But I wonder why, at first, everything was fine until this happened. Also, my application is running in a container and scan works fine. I have one last question, is there any way to know if a device works locally before testing? I want to buy a Temperature Sensor and I need to control it locally but the one I bought does not work apparently. I am thinking to use this [Zigbee2MQTT]. Thanks! |
Hello
The following script does not return devices and their IPs
(Just a test)
However, when I run the commands:
python -m tinytuya wizard
and/or
python -m tinytuya scan
It works and returns the devices with their Ip etc etc... ( Just for examplifing, I am working with Wi-fi smart switch )
I wonder why the script does not work but the cmd command works...
I have tried the following:
However, I noticed that using forcescan=True it does work and return the ip for some devices but for some devices and for some attributes such as name key etc returns as ' '
scan_result = tinytuya.deviceScan(forcescan=True)
'mac': '', 'name': '', 'key': '', 'gwId': '', 'active': ''
(Example of return)Any advice?
Thanks!
The text was updated successfully, but these errors were encountered: