Fantastic, thanks for your help! A lot of your other posts were also really helpful to me.
Essentially, one can take their entity list from the regular entities card, put it into the filter section of the auto-entities card and it just works. Maybe a bit unintiutive, but I’ll take it.
i cannot adjust h1 tittle “Shelly” size or padding , not applying , under type: custom:stack-in-card can but not in auto entities card, any help please?
type: custom:stack-in-card
title: Test
card_mod:
style:
.: |
ha-card {
overflow: auto;
max-height: 500px;
}
$: |
h1.card-header {
padding: 12px 0px 0px 12px !important;
color: #727272 !important;
line-height: 40px;
font-weight: 500;
font-size: 16px !important;
}
cards:
- type: custom:auto-entities
card:
show_header_toggle: false
title: Shelly
type: entities
card_mod:
style: |
.: |
ha-card {
overflow: auto;
max-height: 500px;
border: 50px !important;
}
$: |
h1.card-header {
padding: 12px 0px 0px 12px !important;
color: #727272 !important;
line-height: 40px;
font-weight: 500;
font-size: 36px !important;
}
filter:
include:
- entity_id: light.bed_light
Hi, is it possible to populate dynamic value in filter.include options?
type: custom:auto-entities
card:
type: grid
square: false
columns: 2
card_param: cards
sort:
method: entity_id
filter:
include:
- domain: light
area: bedroom
options:
type: tile
entity: this.entity_id
name: |
{{ state_attr('this.entity_id', 'friendly_name') | replace('Bedroom ', '') }}
# I can't make this part work properly. I want to make tile cards, prefix 'Bedroom' removed in their name.
exclude:
- hidden_by: "*"
You cannot use template inside “include” option.
The “template” option should be used instead (see in docs).
Try this (untested):
filter:
template: >-
{% for LIGHT in area_entities('bedroom')|
select('search','light.')|
reject('is_hidden_entity') -%}
{{
{
'type': 'tile',
'entity': LIGHT,
'name': state_attr(LIGHT,'friendly_name') | replace('Bedroom ', '')
}
}},
{% endfor %}
hey guys, i´m playing around with auto-entities, still it´s kinda hard for me to get what i want.
i try to only show my aqara multisensors and populate the following card.
is there any way to do so?
type: custom:mushroom-template-card
entity: sensor.multisensor_hallway_humidity
primary: "{{states(entity) | float(0) | round(0)}}%"
secondary: >-
{{ state_attr(entity, 'friendly_name') | title }} |
{{states('sensor.multisensor_hallway_temperature') }}° |
{{states('sensor.multisensor_hallway_battery') }}%
multiline_secondary: false
icon: mdi:water-percent
icon_color: "{{ 'red' if (states(entity) | float(0)) > 60 else 'blue' }}"
only hallway
changes to for example office
I am having a strange issue, working on a Glance card. If I do this, the margins change as expected:
card_mod:
style: |
ha-card {
padding-bottom: 0px;
}
.entities .entity {
margin-top: -20px;
margin-bottom: -5px;
--mdc-icon-size: 40px;
}
If I do this, the color of the title changes as expected:
card_mod:
style:
$: |
.card-header {
color: red !important;
}
But I can’t find a working syntax that allows all of these changes to take place at the same time! Any ideas?
Probably this is what you need:
main card mod thread - 1st post - link at the bottom title “fantastic” - other stuff - combining “.:” and “$:”