thomasloven / lovelace-badge-card

🔹 Place badges anywhere in the lovelace layout
MIT License
77 stars 8 forks source link

Unable to apply icon to badge #8

Open dubilyer opened 3 years ago

dubilyer commented 3 years ago

Config:

 - type: custom:badge-card
        badges:
          - entity: media_player.s70pci
            icon: mdi:home
          - media_player.mibox4
          - switch.ebea7433149c9126c7vqfx
          - light.yeelight_ct_bulb_0x0000000007f29d50
          - switch.washer
        view_layout:
          grid-column-start: 1
          grid-column-end: 5

output html node:

<div class="badge-container">
    <div class="label-badge" id="badge">
        <div class="value big">
            <slot>
                <!--?lit$535976875$-->
                <!--?lit$535976875$--> <span><!--?lit$535976875$-->Выключен</span>
            </slot>
        </div>
        <!--?lit$535976875$-->
    </div>
    <!--?lit$535976875$-->
    <div class="title"><!--?lit$535976875$-->ТВ Салон</div>
</div>

Reflected in Lovelace UI:

by40t7bqh73k5hdux5tresczfbxwane0 ui nabu casa_lovelace_rooms

ildar170975 commented 2 years ago

I do not confirm this:

  - type: custom:badge-card
    badges:
      - entity: media_player.kodi_rpi_1
        icon: mdi:home
        name: xxxx

изображение