I’ve got YAML mode enabled and working. Now I’m trying to dynamically construct a list of “chips” in a Mushroom card, alongside some hard-coded items. Basically this is what I’m trying to do:
cards:
- type: custom:mushroom-chips-card
chips:
- !include ./resources/some_chips.yaml
- type: alarm-control-panel
entity: alarm_control_panel.alarmo
- !include ./resources/more_chips.yaml
alignment: center
some_chips.yaml/more_chips.yaml look more or less like this:
- type: conditional
conditions:
- entity: vacuum.kirby
state_not: docked
chip:
type: template
entity: vacuum.kirby
icon: mdi:robot-vacuum
tap_action:
action: more-info
icon_color: |-
{% if not is_state("vacuum.kirby", "cleaning") %}
red
{% endif %}
content: '{{ states("vacuum.kirby") }}'
...
Where the chips.yaml cards are just lists of chips. The !included items don’t show up. I can do this:
cards:
- type: custom:mushroom-chips-card
chips: !include ./resources/some_chips.yaml
alignment: center
- type: custom:mushroom-chips-card
chips:
- type: alarm-control-panel
entity: alarm_control_panel.alarmo
alignment: center
- type: custom:mushroom-chips-card
chips: !include ./resources/more_chips.yaml
alignment: center
But I can’t seem to get one card with all the chips in it. I’ve flailed around a bit trying to use anchors, but… Nothing seems to work. I think I must be missing something here, some way to get all the lists to merge/append.
Anybody have any hints for me?