Comments (20)
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.
Today it is working perfectly. I'm happy to close this if you are.
from mini-graph-card.
There is definitely something strange going on when the value is zero. This is how my graph looks now;
from mini-graph-card.
@kloggy Should be fixed in the latest release, please confirm it's working if you can 👍
from mini-graph-card.
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.
from mini-graph-card.
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.
I'll go ahead and close this issue, thanks for the help!
from mini-graph-card.
I'm still seeing this issue on the latest version...
History chart in Hassio looks fine:
Here's my history data:
from mini-graph-card.
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.
Sorry I thought I did that on my pastebin. How do I pull the history?
from mini-graph-card.
Sorry, was on mobile so missed that link, great, I'll take a look when I got some time.
from mini-graph-card.
Can you send me your card config also please.
from mini-graph-card.
@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.
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.
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.
Edit: I saw your latest post, this would fix exactly this, great!
from mini-graph-card.
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.
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.
@kalkih did this ever make its way into a release?
from mini-graph-card.
Nope, not yet, I'll make a new release tomorrow.
Thanks for reminding me.
from mini-graph-card.
Awesome thanks!
from mini-graph-card.
@chriscrowe New release now available, please let me know if this fixed the issues you had.
from mini-graph-card.
Related Issues (20)
- 12am or 12pm in a 24 hour format shown as 0am or 0pm when using extrema HOT 1
- Yaml code does not work on HAOS but works on docker container version HOT 2
- Unable to set range correctly HOT 1
- mini-graph-card not showing actual value HOT 2
- Mini graph
- Question: Average between two entities? HOT 6
- Main placeholder to show aggregated value instead of current state
- [FR] Support numerical range values for state_map HOT 5
- [Question] Is it possible to link the color threshold value to a sensor so it changes dynamically? HOT 3
- Show average, sum instead of current state
- [Feature] Small subtitle below title HOT 1
- Date Format on Extrema HOT 2
- [FR] Format numbers according to "Number format" of user profile HOT 2
- Line for paticular degree (for example 0) and whole date instead just day of the week for specific point HOT 1
- Dynamic line color breaks at highest value HOT 2
- A weird padding when "fill: false" HOT 2
- Graph not respecting change of unit of meassure from W to kW HOT 1
- Layoutoption with HA 2024.7.0bx HOT 4
- line_width is interpreted differently depending on screen size: looks a lot larger on larger resolution screens HOT 4
- Graph not displaying correct values HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-graph-card.