tinytuya icon indicating copy to clipboard operation
tinytuya copied to clipboard

TinyTUYA: Device read failed

Open shakisha opened this issue 2 years ago • 1 comments

Hello,

i have got a lot of errors about reading a device, what else can I do to ignore or dig in?

The error is:

"TinyTUYA: Device read failed:"

The device is a pool heater.

shakisha avatar Jun 04 '23 19:06 shakisha

Hi @shakisha - Try to power cycle the device if it was working in the past. Also, you can turn on debug mode to help troubleshoot:

For command line functions:

python3 -m tinytuya scan -debug

For scripts:

import tinytuya

tinytuya.set_debug(True)

d = tinytuya.OutletDevice(
      dev_id=DEVICEID,
      address=DEVICEIP,
      local_key=DEVICEKEY,
      version=3.3)
print(d)

print(" > Fetch Status < ")
data = d.status()
print(data)

jasonacox avatar Jun 04 '23 20:06 jasonacox