GithubHelp home page GithubHelp logo

Comments (15)

foxthefox avatar foxthefox commented on July 1, 2024 1

this is solved with 1.0.4

from iobroker.statistics.

foxthefox avatar foxthefox commented on July 1, 2024

the only thing what was recently updated was the rounding to 4 digits.
but this was 1.0.0 to 0.2.2
the major update to 1.0.0 cam from bluefox, I have to dig in the code

Edit: what should be the statistical case?
If it is a count value, then only the the true state is used. false values are not considered.

from iobroker.statistics.

Diginix avatar Diginix commented on July 1, 2024

Strange. Ive done a rollback to 0.2.2 and all is fine again.
Maybe I'll try the update again tomorrow.

It is this settings for all devices:
image

from iobroker.statistics.

fuchs-1978 avatar fuchs-1978 commented on July 1, 2024

Same problem here:
STATE CHANGE] wrong value => false on sonoff.0.Gaszaehler.POWER2 => check the other adapter where value comes from

With 0.2.2 all is fine

from iobroker.statistics.

foxthefox avatar foxthefox commented on July 1, 2024

no need to retry upgrade to 1.0.1, it will happen again.

The changed code in 1.0.0 is:
`
if( (state.val === null) || (state.val === undefined) || (state.val === NaN) ){

to

if (!state.val && state.val !== 0) {

`
and throws the same message.
before it was checking for invalid only.
may be @GermanBluefox can say something

As I said before, the adapter does not count on negative edges, only 0->1. So from working it is right, from logging I have no opinion.

from iobroker.statistics.

passuff avatar passuff commented on July 1, 2024

I have the same issue here with true/false logging. My log is spamed all over with it. Could we somehow turn it off or is a rollback the only solution currently?

from iobroker.statistics.

foxthefox avatar foxthefox commented on July 1, 2024

you can roll back, if you want.

from iobroker.statistics.

massimo1971 avatar massimo1971 commented on July 1, 2024

Strange. Ive done a rollback to 0.2.2 and all is fine again.
Maybe I'll try the update again tomorrow.

It is this settings for all devices:
image

Same Problem here, I had to roll back to 0.2.2

from iobroker.statistics.

watcherkb avatar watcherkb commented on July 1, 2024

I have the same issue and no values are count.

from iobroker.statistics.

Diginix avatar Diginix commented on July 1, 2024

Since no developer has fixed the issue in 1.x so far, it seems 0.2.2 is the only suitable version for many users.

from iobroker.statistics.

maeb3 avatar maeb3 commented on July 1, 2024

I can confirm what @foxthefox said in the post above:
I'm running version 1.0.2 with the line
if (!state.val && state.val !== 0) {
manually changed in the main.js back to the original one (from version 0.2.2). Running for some weeks now. No problems, everything works fine. Time count calculation is now correct again (was wrong before because adapter did not recognize 1->0 edges, so it's not only a logging issue but also wrong values for online-time/offline-time).

Has anybody any ideas wether there might be negative impact when switching back to the old line of code?

from iobroker.statistics.

Diginix avatar Diginix commented on July 1, 2024

Updated yesterday from 0.2.2 to 1.0.4 without log entries so far. Seems to be solved. Thanks!

from iobroker.statistics.

Stefan-83 avatar Stefan-83 commented on July 1, 2024

Now I have the same issue πŸ˜’
Version 1.0.9

from iobroker.statistics.

Stefan-83 avatar Stefan-83 commented on July 1, 2024

Please re-open
@foxthefox

from iobroker.statistics.

Stefan-83 avatar Stefan-83 commented on July 1, 2024

Update: After I've downgraded to 1.0.4., it's working again.
Is there a known error in 1.0.9 (latest version)

from iobroker.statistics.

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.