Thanks @boheme61,
This eventually did the job:
view_layout:
grid-area: "lights"
cards:
- view_layout:
grid-area: "keukenh"
type: conditional
conditions:
- condition: "numeric_state"
entity: sensor.lights_on_in_the_kitchen
above: 0
card:
type: "custom:button-card"
template: "card_title"
name: "Keuken"
- view_layout:
grid-area: "keuken1"
type: "custom:mod-card"
style:
hui-horizontal-stack-card$: |
#root {
flex-wrap: wrap;
}
#root > hui-conditional-card {
min-width: 174px;
max-width: 174px;
padding-block-end: 12px;
}
card:
type: horizontal-stack
cards:
- type: conditional
conditions:
- condition: state
entity: light.keukenblok
state: "on"
card:
type: "custom:button-card"
template: card_light
entity: light.keukenblok
variables:
ulm_card_light_icon: "mdi:lightbulb-fluorescent-tube"
ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true
ā¦