Hi !
I have to add a custom:button-card to a Section Dashboard, but as the visual editor is not available for a manual card (that I have to use to be able to create a custom:button-card), I can’t adjust the size of this card compared to the other cards already present.
The best I managed to do gives the result below :
As we can see, the “Desactivation Alarme” card extends vertically beyond the other cards.
Here is the yaml code :
views:
- title: Home
type: sections
max_columns: 1
sections:
- type: grid
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
show_state: false
entity: light.lampes_salon
name: Lampes Salon
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
icon: mdi:lightbulb-spot
entity: light.lumieres_salon
name: Projecteurs Salon
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.lumiere_entree
icon: mdi:ceiling-light
name: Lumiere Entrée
- type: custom:button-card
entity: input_number.alert_desactivation
name: Desactivation Alarme
icon: mdi:alarm-panel
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Entrer une valeur
content:
type: entities
entities:
- entity: input_number.alert_desactivation
grid_options:
columns: 6
rows: auto
- type: glance
entities:
- entity: sensor.temperature_salon_temperature
- entity: sensor.temperature_cuisine_temperature
- entity: sensor.temperature_chambre_filles_temperature
- entity: sensor.temperature_chambre_parents_temperature
How can I make this card adjust to my dashboard like the other cards?