Giter VIP home page Giter VIP logo

Comments (3)

vinodsr avatar vinodsr commented on August 19, 2024

from node-red-contrib-tuya-smart-device.

msillano avatar msillano commented on August 19, 2024

Perfect, thanks... This is very good news, a way to freeze some devices is really mandatory.
This will make also it possible to mitigate performance problems: the tuya-cloud limits are 20 homes per user and 120 devices per home!

I found a new error message in tuya_smart_device node ver.2.0.0

       "Timeout waiting for status response from device id: bfa355aa196ae5975cy6ii"

Anyway, the rules are always the same:

  • error is that the user of tuya_smart_device node MUST correct in own code, think about it as a blocking situation, a programming error (e.g. missing Device key).
  • info happens in runtime and it is an unusual but not blocking behavior. The user CAN do actions to prevent this situation, but it is not mandatory (ignore strategy).

Do "Timeout waiting for status response" is a blocking situation in tuya_smart_device node use? if not, catch it, and do only info.

Idea:

  • Maybe it is better to send some ERROR/info messages in the output message, e.g. in msg.statusCode ? Like statusCode in HTTP request node, the block user can easily do actions based on it.

  • As an alternative, make all tuya_smart_device node errors/info catchable errors so they can be caught by a catch node standard, i.e. use only the status and don't write any message to the log.

As a workaround, for now, I modified the code of tuyapi 6.1.1, but this is not a good way to do.

Best regards
m.s.

from node-red-contrib-tuya-smart-device.

cw-kid avatar cw-kid commented on August 19, 2024

I am also having problems with it connecting and I see these errors:

"Can't Find Device"

"Error: find() timed out. Is the device powered on and the ID or IP correct?"

I only have one device on my Tuya account a Galaxy Star Projector Light.

Sometimes it connects OK but a lot of the time it doesn't and I see that error.

Thanks

from node-red-contrib-tuya-smart-device.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.