Giter Site home page Giter Site logo

Comments (4)

tglanfield avatar tglanfield commented on September 13, 2024

As an attempt to work around this lack of updates, I've introduced rules that modify the thing's Polling Interval on a regular interval. This forces the channel to the device to be closed and a refresh obtained from the device that includes all of the DP IDs.

This works up to a point and I'm getting the information but after a while I'm getting these sort of errors:

[WARN ] [nding.tuya.internal.local.TuyaDevice] - bfc952e2bb967bf1ednhqz: Refreshing status failed. Device is not connected.

Here is a trace showing this happening:
https://pastebin.com/tvaYPVhc

After a little while longer I'm seeing my Tuya things go offline requiring a restart to get them back again.

from addons.

J-N-K avatar J-N-K commented on September 13, 2024

The devices requiring a restart is probably a bug in the device firmware. A lot of Tuya devices are really crappy.

What functionality is "add_ele"? Some are not refreshed on a regular basis (and no one knows why...).

from addons.

tglanfield avatar tglanfield commented on September 13, 2024

I'm not restarting the device, just reconnecting to it, which, as I understand it, is a byproduct of changing the Polling Interval.

add_ele is the electricity used in the last period, since this counter was last reset, which appears to be every half hour or so. This DP is being updated on the Tuya IoT site and I have no reason to doubt that the information is available in the device. It's just a matter of getting hold of it.

from addons.

stale avatar stale commented on September 13, 2024

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.

from addons.

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.