Robshot
(robbie demaegdt)
August 25, 2022, 6:14pm
1
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.
This is with the mushroom card selected.
Anybody that has an idea if this is possible what I’m trying to do and how to fix it?
j.loewen
(Johann)
September 22, 2022, 3:09pm
2
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
12 Likes
Robshot
(robbie demaegdt)
September 23, 2022, 8:59am
3
Thanks for the response, I will give it a try.
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.
j.loewen
(Johann)
March 2, 2023, 8:20pm
6
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
6 Likes
Thanks so much. Stupid mistake on my part exchanging underscores for dashes.
pille89
(Pille89)
January 25, 2024, 1:05pm
8
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
pille89
(Pille89)
January 25, 2024, 1:24pm
11
Hi @boheme61 ,
Excuse me, I don’t think I’m quite following. I seem to have a plank in front of my head
try to also put this under
pille89
(Pille89)
January 25, 2024, 1:29pm
13
Sorry Now it works thank you very much, sometimes you just have to talk about it 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
bplatypus
(Bplatypus)
March 24, 2024, 12:03pm
15
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