-
Notifications
You must be signed in to change notification settings - Fork 186
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
Cannot connect to Smart IR S06CB3S #554
Comments
TinyTuya discovers the IP address and version of the devices via UDP broadcasts that these devices make on your network. If your computer is not on the same WiFi or your network is blocking UDP traffic, it will not be able to detect the device. Additionally, if you are running the SmartLife app when running wizard or scan, there are devices that stop broadcasting when the SmartLife app is open. Close and quit the app and try wizard or scan again. |
But TinyTuya is able to scan all the other Tuya devices in my network. Also, I'm sure there's no app running. I can also confirm the device is connected to wifi by looking into my router's ARP. I can confirm it's there by the mac address. |
Do you see the IP address assigned to it in your router? You can also have TinyTuya force scan (IP by IP) using this command line (replace the IP network with yours): python3 -m tinytuya scan -force 192.168.0.0/24 |
Thanks for the hint. I turned off my Home Assistant computer to ensure there was no conflict at all, and scanned again, and now TinyTuya is able to find the device's IP:
But it isn't able to connect to it yet. |
Other devices in the same network seem to work ok:
|
Yes, this seems to be a device specific issue you are having, not really TinyTuya so I flagged this issue as device troubleshooting.
Ensure the local key didn't change (if you ever re-pair with a device it resets the key) by running wizard again. You can turn on debug mode to get more info or I would suggest writing a simple python script to just access this one device. python3 -m tinytuya scan -debug # Example Usage of TinyTuya
import tinytuya
tinytuya.set_debug(True)
d = tinytuya.Device('DEVICE_ID_HERE', 'IP_ADDRESS_HERE', 'LOCAL_KEY_HERE', version=3.3)
data = d.status()
print(data) |
Thanks a lot for the helpful steps. Here's my script: # Example Usage of TinyTuya
import tinytuya
tinytuya.set_debug(True)
# smart ir - doesn't work
d = tinytuya.Device('eb54009e7c6d1f6f9dmb4e', '192.168.1.25', '/T}#JK3H8:HIDDEN', version=3.3)
# lights - works
# d = tinytuya.Device('08435372600194fe73d9', '192.168.1.70', 'f10c8aedHIDDEN', version=3.3)
data = d.status()
print(data) Just to confirm stuff is ok in my network, the snippet above works just fine for the second device and it returns:
But these are the logs for the smart IR thing:
I am completely sure the IP address is correct, but for some reason "No route to host".
I was running through the wizard at all times, so the key didn't change. But I actually tried resetting the device, which indeed changed the key, which I got again through the wizard (which correctly found the IP address of the device - I also added a static lease for it in my browser). Crazy stuff. Is this the first time you hear of a device acting like this? |
Oh. I had an idea. Maybe the device doesn't keep connected to Wi-Fi all the time for some reason (it is not battery powered). So, I decided to give it a shot power cycling the device and trying to connect to it during its "initialization". It actually yielded some stuff:
|
@make-all helped me realize that when I put the device into learning mode (through the app), the script above do return some dp:
|
For some reason, TinyTuya cannot connect to this device. When running
tinytuya wizard
and polling the local devices, it saysError: No IP found
. I wonder if anything can be done about it.Device: https://aliexpress.com/item/1005005119018257.html
The text was updated successfully, but these errors were encountered: