vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
43 stars 15 forks source link

Getting a cryptic output from Device #70

Closed DeadlyVirez closed 2 years ago

DeadlyVirez commented 3 years ago

Sorry, I'm a bit new to this but I've double checked, that every value is correct (IP, Key, ID)

I'm getting this output when I'm setting the switch to off/on via the Tuya App.

I'm using Gosund Devices SP211 (I think.)

grafik

craigcurtin-dev commented 3 years ago

Just a hint to try it as V 3.1 and see if you get the same result

Craig

DeadlyVirez commented 3 years ago

Yes, I'm getting the error on 3.1, too

grafik

craigcurtin-dev commented 3 years ago

Hang on - you haven't filled in both the IP and device ID have you ?

DeadlyVirez commented 3 years ago

I know that it clearly states NOT to do that. I tried both ways, just using the ID or the IP but it can't find the device. see below.

grafik

If however, I fill both fields, it works instantly. I get responses back when I turn on/off the plug but get the cryptic message above.

8xiom commented 3 years ago

Same here. Filling either IP address or Device Virtual ID results in "find() timed out". Double checked the device key which should be correct. If I change the last character of that key a different error immediately pops up. Then I filled both fields (device ID plus IP) and voilà, connection established. But, I do not only receive these cryptic output. Unfortunately it's also not possible to issue commands to my device. This results in an error and a broken connection. So I guess something is wrong with the Tuya node in general.

craigcurtin-dev commented 3 years ago

Sorry but i am no expert on this one - i have just finished setting up my Heat Pump with it and it is working fine.

I went through a number of different nodes before i settled on this one.

One thing i did notice is that the install/uninstall of a number of nodes left behind some crap in NPM. When i moved it to a new machine and installed just this node into NR then all was OK.

I wonder if you have some leftover stuff from your experimenting ?

It might be an idea to uninstall this node, then go to the command line and make sur tuyapi is also removed, then restart the device (Assume RPi ?) and check from the commandline what is running and if there are any leftovers in NPM again ?

Craig

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

Auto closing the issue

hannoverRed commented 2 years ago

Hi there,

is the device one thing about

  1. Wifi is connected to Smart Life / Use Device ID
  2. Zigbee or Bluetooth device connected via Gatweway connected to Smart Life?

= Take IP address and KEY of the gateway and then see if you get an output with CID when you switch the device on and off manually. That would be the ID for the device behind a gateway.

solution