Closed TheFirstQuestion closed 3 months ago
Hi @TheFirstQuestion - Did you run python -m tinytuya wizard
to get your local key? If so, it should have created a devices.json
file that contains a "version" key that should help with the version. Also, with the devices.json file in your current directory you can run with force network polling mode:
python -m tinytuya scan -force
# or with debug
python -m tinytuya scan -force -d
That may be able to find the device on your network. If you still can't get the version, try 3.1 and 3.2 as well.
Awesome, the force scan worked perfectly! It found the device and told me that the correct version was 3.1.
Thank you so much for creating such an awesome library, and for the speedy response!
I'm trying to use tinytuya with my power strip, and keep getting
{'Error': 'Unexpected Payload from Device', 'Err': '904', 'Payload': None}
.Here's my test code:
and the output:
Here's the entry in
snapshot.json
:I've tried version 3.4 and 3.5, and both give
{'Error': 'Check device key or version', 'Err': '914', 'Payload': None}
, so I believe 3.3 to be correct.When following the steps in the README, everything worked fine, except the scan finds 0 devices. The wizard also couldn't find the local device:
Polling local devices... [Power Strip] Error: No IP found
. However, I can see the power strip in my router dashboard, andnmap
shows the IP listening on port 6668, so I believe the IP is correct.Any insight into what's going on?