Alright, yes, an additional hourly sensor should do the trick, I think? and as I mentioned before, aggregate functions is coming in the next update, you’d want to use max for this particular graph.
Group by hour is also coming in the next update which could be useful if you want each bar to represent a complete hour (9:00 - 9:59) instead of an hour calculated from current time (9:22 - 10:21) e.g.
New update should be available this weekend, I’ll let you know!
Hey there,
just today I noticed something that seems more like a bug, the “fill” option is not only filling the “bottom” part of the graph, but it also extend the graph till the border.
Would be possible to have two different options for that?
Examples:
Yes if you build it from source, but I’ll make a new release later today.
Y labels exist, see the show optionlabels. X axis, no, not at the moment.
It’s actually a “feature” an intentional design decision, you’ll also see some other UI elements moved around (e.g. extrema) depending on the fill option.
Try a configuration like below, explanation: if you override the show_fill option in the entity object you can achieve the wanted layout.
# fill is default set to true
- type: custom:mini-graph-card
entities:
- entity: sensor.aqara_multi_temperature_2
show_fill: false # override global fill setting
If I set the fill: false in “show” options and than the entity to show_fill: true, the entity doesn’t show the fill.
If I do the show_fill: false and the fill: true in “show”, I still don’t get the “filling”
What I would like is to keep the fill, but not to have the graph to go over the normal “borders”
Also, on a side note, the “night_time” sensor to have a grey background during night, doesn’t work
The code used was the one from the docs:
- entity: input_number.night_time
color: gray
name: Night Time
show_fill: true
show_line: false
show_points: false
show_legend: false
y_axis: secondary
The night_time values are correctly updated via automations:
just found this graph and love it! Is there a way to display time as hours and minutes, at the moment I get things like 4.80 hours, which is 80% of an hour which I would like displaying at 4hrs 48 minutes?
That should not be the case, should always be grouped from 8:00 - 8:59. Sounds like you’re still loading the old version, try clearing cache.
Or if you’re a, HACS user please read this:
Not possible, in order to be able to get info about bars/points even if they are on the edge of the bound.
It’s however taller than it should be in the latest release, will put out a fix later today.
You could try messing around with the lower_bound option and try to hide it if you really want.
Thanks for your reply @kalkih.
I am using HACS, and what is mentioned in my lovelace-ui file matches with the path that HACS mentions (being /community_plugin/mini-graph-card/mini-graph-card-bundle.js)
I thought this was what you wanted? You’ll not get the fill but the graph will still “extend to the border”.
Okay, use group: true, and then add a card padding with card-mod to the ha-card element for example.
I don’t know, probably not, but maybe.
Thanks, yeah the new options/features should make a whole range of new type of graphs possible.
Glad you like it!
Not directly, but what you could do is create a template sensor which handles the conversion of hours to h/m/s etc… Then you list this new template sensor as the first entity in the card with the option show_line: false and the regular (old) sensor as the secondary.
That way you’ll see the parsed time (h/m/s) in the state and still get the graph to render correctly.
Try clearing cache.
Is the hours always reset at x:30?
You don’t happen to live in a half-hour timezone? I guess the browser could handle those differently.
I’m not 100% sure what we are discussing here but this is how it works; if there’s no history available for a data point, the graph will render it as the next available data point.
I already cleared the cache. It is always counting from one hour till the hour on the minute i open the page. E.g. now it is 16:02 here, so the bars are from x:02 to x+1:02
It would require quite a bit of tweaking. All new options complicate things.
It’s a quite niche request and it can be achieved with card mod quite easily imo, so not likely adding.
I don’t have a night sensor like that, so can’t easily try it out, config looks good though, can’t see any reason for it not working.