what am I overlooking here… trying to approach the bar-card graph in this screenshot (above) with the maintained mini-graph-card (below), I cant seem to find the correct syntax for coloring the bars:
would be nice of we somehow can use the name inside the bar. and make the graphs just that bit more illustrative of their meaning.
first though trying t figure out why this config is terribly slow in rendering.(when used on a view with another mini-graph-card and an apexcharts card…commenting those out makes the world of difference)
I’m using the mini graph card with my Nest thermostats and I love the way it looks. I was previously using the standard graph card. The only thing I want to try and add to the mini graph is the state (heating/cooling) on the same timeline similar to what the standard graph does.
Something like this
I was about to post about the same issue. I have color thresholds set, yet the line shows solid color, but when I hover, the points show appropriate color thresholds.
type: custom:mini-graph-card
entities:
- entity: sensor.ep500p_dc_input_power
name: PV Power
hours_to_show: 168
points_per_hour: 60
show:
graph: bar
extrema: true
This shows the following chart.
The MAX: tells me that the max was at Sun 26 with 2397 W. Sun 26 is the second hill in the chart and if I hover the mouse over it I get 1472,8W. (see Screenshot)
But according to the bars the highest bar is the forth hill which is the 28th.
If I put the mouse over the highest bar (the 28th) it shows me a value of 1944,67W.
I increased the “points_per_hour” to 60 to have a better resolution, but the result is still the same.
Thanks for the Tip,
yes with line it seems to work properly, it just doesn’t look that nice anymore. I guess I have to play with line thickness/number of points.
does anyone know if it is possible to display the graphs differently for several entities? I would like to configure one with fill: fade and one with fill: false. But if I set the ‘show’ block individually under entity: ..., the settings are ignored. Presumably the graphs can only be configured together, right?
- type: custom:mini-graph-card
entities:
- entity: sensor.klimasensor_1_temperature
name: Temperatur
color: var(--green-color)
- entity: sensor.klimasensor_1_humidity
name: Luftfeuchtigkeit
color: var(--blue-color)
y_axis: secondary
show: # block is ignored!
fill: false
hours_to_show: 24
line_width: 3
font_size: 50
animate: true
show: # only this block is adopted for both entities
name: false
icon: false
state: false
legend: false
fill: fade
It generates the following image, where the yellow line is charging power over time and the gray background depicts whether a car was connected to it or not.
However, that “Disconnected” label is not supposed to be there, nor at the left side as it belongs to the car dis/connected data that’s defined for the (hidden) secondary axis on the right. Also the data does not look right, and when inspected with the system history graph, the following is show:
So what’s going on in here? Essentially all the data from (at least) 00:00 March 6 is zero. All the x-axis (time) are the same. A bug or some kind of misuse?
Hi folks,
any way to stretch the graph? I’d like to have it filling the hole card. Or at least two thrid.
Its just a binary sensor for the windows.
I want to keep the card itself at a fixed height of 100. Just a bigger graph