Ok, I have found my issue, for some raeson I was loading mini-graph-card.js instead of mini-graph-card-bundle.js which HACS was keeping udpated, not really sure why I had the old file in the HACS folder, it looks it was from 15th July and I am pretty sure I did install it via HACS.
Anyway, fixed that and now is working… basically I’ve been updating and not using anything that was fixed since July
Actually, apparently I had the previous version already… so… well this is the first update I would have missed and if it wasn’t for that issue we found, I wouldn’t have notice at all since everything else has been working perfectly for me
Wooh, that’s wierd… I’m not on the latest HACS version but I’ve skimmed through the release notes and couldn’t find anything regarding this.
Good to know though, thanks for letting me know!
Yes it’s quite odd to be honest, also because my resource bit where you load the file also had the wrong name, maybe I did something wrong the first time I installed HACS and I kept that mistake around until I finally noticed…
On GitHub there is this intresting example that is using an extrna input_number to define night/day and add a gray area.
I was trying to replicate but I am not sure on what value the input_number should be, I tried with 0/1 but it doesn’t fit the graph (not even sure it’s actually appearing on the graph).
Presumably, the high-value should be higher then current temperature?
Also, What if I don’t want to use the fill option on the temperature line but I do want it on the night/day graph? Would that be possible?
I am brand new to this and have no idea where to report a bug. I simply wont use it in one of those cards, but thought I should let you know that it doesn’t show the gradients. Picture attached.
By the way, this is a fantastic resource!
EDIT: I just tried it in a standard vertical stack, and the same thing happened. Will not show the dynamic gradients.
I love this graph, but now I have a question, I have a sensor, that update his value once a day, it’s possible to have a bar graph with 7 bars and each bar have the value of each day?
Right now I have this code, but this is not what I was expecting
Technically, last night the sensor should have been to “1” all night, so I should be able to see at least for yesterday the grey “background”, do you see anything clearly wrong?
I am using the speedtest component for internet and trying to show it results with mini graph with no sucess. A speed verification is done at 5h00m everyday. I would like to show a 7 day range with bar type.
At the moment I believe that it is not possible to do it, but I can be wrong.
Well, I just recreated the graphs I pictured on my last post, and they now work. Very strange. I am very new, and 100% think it is something I did wrong. Sorry for wasting your time.
I don’t see anything wrong with your config, although I haven’t played around with the feature much myself, could be related to this issue.
Should be possible, although it won’t give you a bar for each “day” but instead a bar for each 24 hours calculated from the current time.
The graph looks weird though, looks like it’s missing data.
You’ll see that until the data is loaded, it’s basically a placeholder, mainly there to circumvent the jumpy/jacky effect you’d get if the card would resize once the data was loaded, which would push down all the other cards below it.
Just an idea, you could try making more measurements each day, the mini-graph-card will calculate the moving average, so would probably work better, and should also give you a more accurate result.
I am also having issue with speedtest, but it’s because the sensor have no data, I think the implementation it is no longer working, therefore it “destroy” the graph.
Regarding my issue I will look into that link on Monday evening (or Tuesday) since I am leaving about now for a long holiday weekend
I realized that my recorder in fact purge data before 7 days. You have the reason, that is probably the lack of data. The data is passed to inlfluxdb, so in grafana I have a long history. But I would not like to have 7 days for all my sensors, HA do not permit individual setting. So I will have do decide. Maybe keep the grafana in order to avoid a massive database for my weak pi.
Thanks for the tips.