kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.05k stars 237 forks source link

Feature Request: Allow using the card as footer in entities card #783

Closed microraptor closed 2 years ago

microraptor commented 2 years ago

Is it possible to use mini-graph-card as a graph in the footer of an entities card somehow, instead of the normal graph element?

It is possible to use the mini-graph-card as last entity in the entities card, but then there are these paddings at the sides and bottom : image

type: entities
entities:
- type: custom:mini-graph-card
  entities:
  - sensor.example1
  - sensor.example2
  show:
    name: false
    icon: false
    state: false
    legend: false

Instead it would be nice to have it look like the standard footer graph element (but with the mini-graph-card options like two lines): image

type: entities
footer:
  type: graph
  entity: sensor.example1
ildar170975 commented 2 years ago
type: entities
entities:
- type: custom:mini-graph-card

Do not think this is a proper use. Try using a custom:stack-in-card with required settings:

microraptor commented 2 years ago

Thanks, that works perfectly.

The code (vertical-stack-in-card has to be installed through HACS):

type: custom:vertical-stack-in-card
cards:
  - type: custom:mini-graph-card
    entities:
    - sensor.example1
    - sensor.example2
    show:
      name: false
      icon: false
      state: false
      legend: false