TuyaAPI / cli

🔧 A CLI for Tuya devices
MIT License
270 stars 44 forks source link

Error: Error from socket device: <Device Name>? But still functions? #88

Closed Nodi-Rubrum closed 4 years ago

Nodi-Rubrum commented 4 years ago

This is weird, I have 4 smart plugs from the same vendor, Awow. All for work without issue via my phone, all 4 work via the TUYA API, but one keeps reporting error from socket messages over and over, even though it actually works. Any idea why this is the case?

codetheweb commented 4 years ago

Like @andrewmeepos suggested, please try running your script in debug mode and post the output.

Nodi-Rubrum commented 4 years ago

Actually, I did figure it out. As was discussed before, that there might be a conflicting connection. I when around the environment, shutting down the various instances of NR, and other devices, and finally did find a device that was connecting to the specific smart plug that was disconnecting. So mystery solved finally. The idea that a double timeout really appears to be the case after all.

codetheweb commented 4 years ago

👍 glad you figured it out.