Lovelace - Horizontal-stack not showing correctly

Hi there,

I’m starting with lovelace, so maybe this is something I’ve configured wrongly, but I’m having an issue when using horizontal-stack, where the items in the left are not showed correctly, as you can see in the attached image:
06%20PM

My code, here:

  • title: Cocina
    icon: mdi:stove
    cards:
    - type: horizontal-stack
    cards:
    - type: history-graph
    hours_to_show: 24
    refresh_interval: 300
    entities:
    - entity: sensor.illumination_158d000200cf63
    name: Luminosidad
    - type: entities
    title: Cocina
    show_header_toggle: false
    entities:
    - binary_sensor.motion_sensor_158d000200cf63
    - sensor.illumination_158d000200cf63
    - switch.cocina
    - switch.calentador

Apart from that, it is possible to change the size of the cards inside the horizontal-stack?

Thanks!

I believe the history graph is a static size and the entity filter is getting truncated. As an FYI a horizontal stack does not keep cards the same size (like vertical stack). Horizontal stack will try to take 2 cards and shrink them into the size of a single wide card.

No, not with the normal horizontal stack. Even if you change the size of the objects, the horizontal stack card will still truncate the cards so they fit in a single vertical column.

Makes sense the shrink… I’m having the issue with entities card also:
50%20PM

  • title: Dormitorio Principal
    icon: mdi:hotel
    cards:
    - type: horizontal-stack
    cards:
    - type: entities
    title: Ventilador
    show_header_toggle: false
    entities:
    - switch.ventilador_dormitorio
    - fan.ventilador_dormitorio
    - type: entities
    title: Aire Acondicionado
    show_header_toggle: false
    entities:
    - climate.aire_dormitorio

Ok… it is possible to change the size of the vertical column maybe?

Regards

No, this is based on your viewing size. If you have enough vertical space, home assistant will always stack before making a new column. You can thank cellphones and small monitors for this behavior.

Fair enough… Thanks!