I have such a monstrosity working to automatically combine part of my dashboard
- type: "custom:auto-entities"
card:
type: "grid"
columns: 2
square: false
card_param: "cards"
filter:
include:
- domain: light
area: "Kitchen"
options:
type: "custom:button-card"
template:
- card_light
variables:
ulm_card_light_enable_slider: true
ulm_card_light_enable_collapse: true
ulm_card_light_enable_popup: false
ulm_card_light_color: yellow
ulm_card_light_enable_color: false
ulm_card_light_enable_slider_minSet: 1
- domain: switch
area: "Kitchen"
options:
type: "custom:button-card"
template: card_power_outlet
- domain: fan
area: "Kitchen"
options:
type: "custom:button-card"
template: card_power_outlet
exclude:
- hidden_by: "*"
- entity_id: "*_do_not_disturb"
- entity_id: "*adaptive_lighting_*"
- entity_id: "*_panel_light"
- entity_id: light.kukhnia_2_sleva_l1
- entity_id: light.kukhnia_osnovnoi
my plan is to add another block in here, so lights with only ‘onoff’ functions will have variables: ulm_card_light_enable_slider: false
and all other variables: ulm_card_light_enable_slider: true
The goal here is to get slider for all lights supporting dimming, and don’t get it for all other lights. And it needs to be in one block, so grid will have no empty spaces.
I can’t understand how to filter them by this attribute. Answer is even different types! First one is string massive, second one is not
Tried different options but got no results. Either all lights or no lights at all passes the filter. Would apriciate a little help here!