Lovelace: Multiple entity row

A general schema, adapt for yourself:

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: sun.sun
    card_mod:
      style: |
        div.entity:nth-child(2) state-badge {
          {% if ... -%}
          --card-mod-icon: mdi:xxx;
          {%- else -%}
          --card-mod-icon: mdi:yyy;
          {%- endif %}
        }
    entities:
      - entity: sun.sun
      - entity: sun.sun
        name: false
        icon: true
      - entity: sun.sun
        name: false
        icon: true