trying to minimize the custom cards, I looked into custom:mini-graph-card
which I use in several cards, especially in a footer.
type: custom:mini-graph-card
entities:
- entity: sensor.netto_verbruik
hours_to_show: 24
hour24: true
smoothing: true
points_per_hour: 12
line_width: 2
show:
extrema: true
name: false
icon: false
average: true
state: true
looking like this, which I do find rather nice.
I had hopes to directly replace that with type: statistics-graph
, but to my surprise I found we can only use the type: graph
, and all other graph cards in core fail.
I also found we can still use it with the custom: hui-element
(and not with the core hack of using custom: hui-statistics-graph-card
) like
footer:
type: custom:hui-element
entities:
- entity: sensor.netto_verbruik
card_type: statistics-graph
days_to_show: 1
showing as:
also nice, but alas, no indication for the min-max numbers like on the mini-graph-card.
it is way faster though, and reason enough to keep experimenting with these looks.
or even the energy graphs:
footer:
type: custom:hui-element
card_type: energy-usage-graph
footer:
type: custom:hui-element
card_type: energy-solar-graph
However, the question remains: why wont the other core graph cards fit in a footer… is there any design property blocking it?
I mean, if we can use it with custom: hui-element
, why not directly…
FR for adding that feature: FR allow core graph cards in footer · home-assistant/frontend · Discussion #25152 · GitHub