Code Monkey home page Code Monkey logo

Comments (20)

kalkih avatar kalkih commented on August 21, 2024 1

There's a fix for this in the dev branch already, will be included in the next release, I'll let you know when it's ready, thanks! 😃

from mini-graph-card.

kloggy avatar kloggy commented on August 21, 2024 1

Today it is working perfectly. I'm happy to close this if you are.

from mini-graph-card.

kloggy avatar kloggy commented on August 21, 2024

There is definitely something strange going on when the value is zero. This is how my graph looks now;

image

image

image

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

@kloggy Should be fixed in the latest release, please confirm it's working if you can 👍

from mini-graph-card.

kloggy avatar kloggy commented on August 21, 2024

Sorry for the slow reply.
I still get 1% sometimes when it should be zero. I know this isn't a great response but I can happily live with this (and put it down to rounding errors). However I am more than happy to help in any way I can if you want to track down what is going on.

image

image

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

Hey @kloggy,
Great to hear.
Is it possible that maybe the cache didn't clear properly at first after you updated to the latest version?

From my testing it seems to work as expected now as well.
screenshot 2019-02-18 at 00 29 47

I'll go ahead and close this issue, thanks for the help!

from mini-graph-card.

chriscrowe avatar chriscrowe commented on August 21, 2024

I'm still seeing this issue on the latest version...

4PSZMkB

History chart in Hassio looks fine:

nM40AOZg

Here's my history data:

https://pastebin.com/zb0AuNH0

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

Hey, would be great if you could pull the history data and send it to me.

I'm not able to reproduce this myself.

from mini-graph-card.

chriscrowe avatar chriscrowe commented on August 21, 2024

Sorry I thought I did that on my pastebin. How do I pull the history?

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

Sorry, was on mobile so missed that link, great, I'll take a look when I got some time.

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

Can you send me your card config also please.

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

@chriscrowe I checked the data you sent me and the information displayed in the card looks to be correct, the latest history entry is actually "0.0" as the current state indicates.

The graph is based on the moving average, so depending on card config it could take time for you to clearly see the actual dip in the graph.

from mini-graph-card.

chriscrowe avatar chriscrowe commented on August 21, 2024

Hm... So this smart plug is hooked up to a small refrigerator which cycles on and off, and in the off cycles it should be pulling nearly 0 watts. You can see 2 of the cycles in my mini-graph-card (the spikes) but it should be flat at zero between those cycles, similar to what you see in the Hassio history graph. Here's what my card config looks like:

      - type: 'custom:mini-graph-card'
        name: Kegerator
        animate: true
        icon: mdi:fridge-outline
        entities:
          - entity: sensor.teckin4_wattage
            name: Kegerator
            color: '#6DA98B' # Lime Green 
        hours_to_show: 2
        points_per_hour: 30
        line_width: 4
        decimals: 0
        lower_bound: 0
        upper_bound: 260
        show:
          labels: true

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

Thanks, noticed another issue related to your graph though, if there is missing history data between "data points" the last known "average" value will fill the missing data points, where instead the actual last known state should be used and not the average.

Fixing this will make the graph look like this instead.

hyperion_8123_lovelace_4

Edit: I saw your latest post, this would fix exactly this, great!

from mini-graph-card.

chriscrowe avatar chriscrowe commented on August 21, 2024

Yeah it seems to me that these plugs have some type of behavior which puts them into a sleep mode when you're not pulling a load on them, so we start getting null/missing values in the logs.

How did you make the graph in your screenshot? That does look pretty much like what I would expect.

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

I made some changes to the source code. I will push these changes when I get home tomorrow, and it will be available next release.

Thanks for the data!

from mini-graph-card.

chriscrowe avatar chriscrowe commented on August 21, 2024

@kalkih did this ever make its way into a release?

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

Nope, not yet, I'll make a new release tomorrow.
Thanks for reminding me.

from mini-graph-card.

chriscrowe avatar chriscrowe commented on August 21, 2024

Awesome thanks!

from mini-graph-card.

kalkih avatar kalkih commented on August 21, 2024

@chriscrowe New release now available, please let me know if this fixed the issues you had.

from mini-graph-card.

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.