Mushroom Entity Card with Auto-Entities

Hello,
I’m trying to auto create entities with the Auto-Entities frontend hacs integration and I want to use the mushroom Entity Card as my card type.
But everytime I select that card all my entities are gone and it gives an errors that it expected ‘Never’ but got ‘’ instead.
This is my working config with the normal entities card.
afbeelding

This is with the mushroom card selected.
afbeelding


Anybody that has an idea if this is possible what I’m trying to do and how to fix it?

Hey @Robshot,

you could do it like this:

type: custom:auto-entities
card:
  type: grid
  columns: 1
  square: false
card_param: cards
filter:
  include:
    - domain: light
      state: 'on'
      options:
        type: custom:mushroom-light-card
  exclude: []
show_empty: true
6 Likes

Thanks for the response, I will give it a try.

Brilliant!! Thank you.

Following up on this, is there a way to include options on the Mushroom card, such as use-light-color: true? I tried the following but it didn’t work.

card:
  type: grid
  columns: 1
  square: false
card_param: cards
filter:
  include:
    - domain: light
      state: 'on'
      options:
        type: custom:mushroom-light-card
        use-light-color: true
  exclude: []
show_empty: true

I’m sure the problem is that use-light-color is not an Auto-Entity option, but I was hoping for a way to pass it to the Mushroom card. Thanks.

Hello @Journeymnn,

yes, just like this:

type: custom:auto-entities
card:
  type: grid
  columns: 1
  square: false
card_param: cards
filter:
  include:
    - domain: light
      state: 'on'
      options:
        type: custom:mushroom-light-card
        use_light_color: true
        show_brightness_control: true
        show_color_control: true
        collapsible_controls: true
        show_color_temp_control: true
        layout: vertical
  exclude: []
show_empty: true
2 Likes

Thanks so much. Stupid mistake on my part exchanging underscores for dashes.

Hello everyone,
I am currently trying my hand at auto-entities. I am a bit desperate. I am trying to display all my switchable sockets and only those that are on or off.
If I now want to switch on an adapter plug, I get the following message:

type: custom:auto-entities
card:
  square: false
  type: grid
  columns: 2
card_param: cards
filter:
  include:
    - domain: switch
      name: ZS*
      state: 'on'
    - domain: switch
      name: ZS*
      state: 'off'
      options:
        type: custom:mushroom-light-card
        icon: mdi:power-socket-de
  exclude:
    - domain: switch
      name: ZS*LED
show_empty: true
sort:
  method: friendly_name
  reverse: false
  numeric: true

card only defined for state off

Hi @boheme61,
Excuse me, I don’t think I’m quite following. I seem to have a plank in front of my head :slight_smile:

try to also put this under

Sorry :slight_smile: Now it works thank you very much, sometimes you just have to talk about it :slight_smile: Thank you very much

1 Like

You might also just
include

    - domain: switch
      name: ZS*

exclude:
- domain: switch
state: unavailable

Edit: however your current code seems more flexible, as you can i.e change the card-color and i.e icons, depending upon the state on /off

1 Like

Hi,
Thanks for the replies, I was able to do what I wanted. I’m just wondering if this could be simplified? Is there a way to define options only once?

filter:
  include:
      - entity_id: "light.salon*"
        options:
          type: custom:mushroom-light-card
          use_light_color: true
          show_brightness_control: true
          show_color_control: true
          collapsible_controls: true
          show_color_temp_control: true
          layout: vertical
      - entity_id: "light.bureau*"
        options:
          type: custom:mushroom-light-card
          use_light_color: true
          show_brightness_control: true
          show_color_control: true
          collapsible_controls: true
          show_color_temp_control: true
          layout: vertical
      - entity_id: "light.cuisine*"
        options:
          type: custom:mushroom-light-card
          use_light_color: true
          show_brightness_control: true
          show_color_control: true
          collapsible_controls: true
          show_color_temp_control: true
          layout: vertical
      - entity_id: "light.entree*"
        options:
          type: custom:mushroom-light-card
          use_light_color: true
          show_brightness_control: true
          show_color_control: true
          collapsible_controls: true
          show_color_temp_control: true
          layout: vertical