using the card-modder in a vertical-stack-in-card (I only need to color the background of the top card…)
- type: custom:vertical-stack-in-card
cards:
- type: custom:card-modder
style:
background-color: rgba(255, 255, 240, 0.3) #ivory
card:
- type: entities
title: Weeralarm
show_header_toggle: false
entities:
- binary_sensor.meteoalarm_brabant
- sensor.weer_alarm
- type: conditional
conditions:
- entity: binary_sensor.meteoalarm_brabant
state: 'on'
card:
type: markdown
content: >
<font color= grey> [[ binary_sensor.meteoalarm_brabant.attributes.attribution ]] </font>
- type: conditional
conditions:
- entity: binary_sensor.meteoalarm_brabant
state: 'on'
card:
type: markdown
content: >
**Alarm code**
<font color= [[ sensor.weer_alarm.state ]]> -
etc
won’t show the top card in the vertical-stack, which is using the card-modder. All cards below that show fine.
no error in the log afaics.
isn’t this supported?
I can try to use card-modder on the full vertical stack, but that is a hack really, since card-modder only applies to the top card, and that has other side effects I don’t like, especially when using border etc. tried that here Card modder and vertical-stack-in-card but taken that out again, not supported, and not nice.
or should I better use a dedicated theme on the entities card for that? Of course I tried that first before asking, and it does show the full stack. It doesn’t theme the top card though:
- type: custom:vertical-stack-in-card
cards:
- type: entities
title: Weeralarm
show_header_toggle: false
theme: minimal
entities:
- binary_sensor.meteoalarm_brabant
- sensor.weer_alarm
- type: conditional
conditions:
- entity: binary_sensor.meteoalarm_brabant
state: 'on'
card:
type: markdown
content: >
<font color= grey> [[ binary_sensor.meteoalarm_brabant.attributes.attribution ]] </font>
- type: conditional
conditions:
- entity: binary_sensor.meteoalarm_brabant
state: 'on'
card:
type: markdown
content: >
**Alarm code**
etc
thanks for having a look.