thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.2k stars 111 forks source link

Long shot, but is there any way to feed the entities list into a Mushroom Chips card? #349

Closed kylepyke closed 1 year ago

kylepyke commented 1 year ago

This is one of my all-time favorite additions to HA. Thank you SO much for your work on this!

I love using the popular Mushroom chips card, because of it's customization and sleek interface options. I'm assuming it's impossible, but figured I'd ask those with more coding knowledge than me– is it possible to feed the auto-entities list into a Chips card? I've copied examples of caode below.

Common entities card:

type: entities
entities:
  - entity: switch.livingroom_humidifier
  - entity: light.living_room_lamp
  - entity: switch.living_room_speakers
title: Entities Example

Mushroom Chips card:

type: custom:mushroom-chips-card
chips:
  - type: entity
    entity: switch.livingroom_humidifier
  - type: entity
    entity: light.living_room_lamp
  - type: entity
    entity: switch.living_room_speakers

Thanks!!

Zendio commented 1 year ago
type: custom:auto-entities
show_empty: false
card:
  type: custom:mushroom-chips-card
card_param: chips
filter:
  include:
    - entity_id: switch.livingroom_humidifier
      options:
        type: entity
        content_info: name
    - entity_id: light.living_room_lamp
      options:
        type: light
        content_info: name
    - entity_id: switch.living_room_speakers
      options:
        type: entity
        content_info: name

Change content_info: name to state if you want to display the state.

kylepyke commented 1 year ago

Oh. My. God. I am blown away. Thank you for this!

This is so useful to learn how card info is parsed to auto-entities. Perhaps the most powerful HACS addition. Thanks again!