first 3 lines?
type: custom:auto-entities
card:
type: entities
first 3 lines?
type: custom:auto-entities
card:
type: entities
My bad. Awfully sorry.
Show output of dev tools.
When I finally get the courage to ask for help after 2 days of trying a gazillion of things, I just solved it.
It was missing entity_id in zone.climate.entity_id.
So this works as wanted:
type: custom:auto-entities
card:
type: entities
filter:
template: |
{% for zone in
[
{
'friendly_name': '000001',
'valve_position': states('sensor.04_000001_heat_demand'),
'climate': states.climate.ramses_cc_01_154356_00
},
{
'friendly_name': '000002',
'valve_position': states('sensor.04_000002_heat_demand'),
'climate': states.climate.ramses_cc_01_154556_00
}
] | sort(attribute='valve_position', reverse=true)
%}{{ zone.climate.entity_id }},{% endfor %}
Now the last and final and hardest part:
I want to rename this entity (only in card)
Im totally clueless now.
This creates a list of ids, kind of:
- sensor.entity_1
- sensor.entity_2
...
What you need is:
- entity: sensor.entity_1
name: name_1
- entity: sensor.entity_2
name: name_2
...
Find examples here with generated cards (mine, for instance).
Even the last example of another person may be used.
Is this somehow possible with template:
instead of include:
?
EDIT: Holy jesus, I think I just managed it:
type: custom:auto-entities
card:
type: vertical-stack
card_param: cards
filter:
template: |
{%- for x in ... -%}
{{ { 'type': 'history-graph',
'hours_to_show': 12,
'entities': [x.entity_id], } }},
{%- endfor -%}
If it works, it works no?
The big question is how to pass name:
to change entity’s name?
EDIT2: Holy moly I did it! This should be pinned somewhere: (dynamic/“there when need them” history-graphs)
type: custom:auto-entities
card:
type: vertical-stack
card_param: cards
filter:
template: |
{%- for x in ... -%}
{{ { 'type': 'history-graph',
'hours_to_show': 12,
'entities':
[ { 'entity': x.entity_id,
'name': 'new_name' } ] } }},
{%- endfor -%}
EDIT3: This is how to do it, if you want a clickable entity before each history-graph (so entity list>history_graph>entity list>history_graph>…:
type: custom:auto-entities
card:
type: vertical-stack
card_param: cards
filter:
template: |
{%- for x in ... -%}
{{- { 'type': 'entities',
'title': 'title',
'entities':
[ { 'entity': x.entity_id,
'name': 'new_name' } ] } -}},
{{- { 'type': 'history-graph',
'title': 'title',
'hours_to_show': '12',
'entities':
[ { 'entity': x.entity_id,
'name': 'new_name' } ] } -}},
{%- endfor -%}
Hello,
Is it possible to show an attribute of a filtered entity ?
I want to display the firmware version of all my Shelly devices, i can get every “firmware update” entities in my list but it show me “up to date” instead of the version of the firmware.
Thanks !
I guess it’s not possible ?
Assume you have ONE entity (let it be sensor.xxxx) - so there is no need to filter.
Post a short code (MWE) for the card you need with an attribute.
Then I will tell you what to do next.
This one for exemple :
type: entities
entities:
- type: attribute
entity: update.antenne_firmware_update
attribute: installed_version
Great.
Post a code for auto-entities card displaying your “update” entities - without showing attributes.
Then I will show you where to add attribute ))
Sorry.
type: custom:auto-entities
card:
type: entities
title: Mise à jour
icon: mdi:download-network-outline
show_header_toggle: false
sort:
method: name
unique: true
filter:
include:
- name: /Update/
integration: shelly
Now add this as a part of filter:
- name: /Update/
integration: shelly
options:
type: attribute
attribute: installed_version
THANKS !
Great card auto-entities. I like to display all my network devices with their IP, however in the right sort order.
I.e 192.168.1.1, 192.168.1.2, 192.168.1.11
Instead of 192.168.1.1, 192.168.1.11, 192.168.1.2
Anyone some ideas?
This is my current card:
‘
type: custom:auto-entities
card:
type: entities
state_color: true
filter:
include:
- entity_id: device_tracker.*
integration: asusrouter
attributes:
connection_type: Wired
options:
type: attribute
attribute: ip
sort:
method: attribute
attribute: ip
reverse: false
ignore_case: false
numeric: false
‘
I’ve just installed the card and I’m having an issue with some real basic stuff.
I’m trying to filter some lights by the group that they are in, but nothing is showing.
If I remove the group filter all lights show as expected.
Here’s my card code:
type: custom:auto-entities
card:
type: entities
title: Kitchen
state_color: true
filter:
include:
- group: kitchen
state: 'on'
exclude:
- entity_id: switch.tap
sort:
method: friendly_name
reverse: false
ignore_case: false
numeric: true
Hello,
I’m using auto-entities to show the next birthdays, this limited so i only can see the next 3 birthdays.
But… i want to see the others to.
Is there like an option to add an dropdown or popup to it? so that u only can see the first 3 but when u press an arrow, u can see the rest of the list?
Thnx!
There is no such an option. Auto- entities shows either all filtered items or some of them (like first three, last three, nos 3…7)
I’m really bad in coding (which basically is needed for more sophisticated lists.
I’m looking to get a list of entities that have NOT sent an update for 24h. Mainly my zigbee-sensors that tend to stop working.
Any help on that?
Thank you!
Is it possible to change the name of the entity “on the fly”?
In this example I’d like to remove “battery” from the name, as it’s only batteries in this card so it’d redundant.
So I’d like to see “Aqara Aussen” only, instead of “Aqara Aussen battery”
Example:
Is it possible to use an input_number in sort: count: ?
Something like this, but doesn’t working for me
- type: custom:auto-entities
card:
type: entities
title: Voltage
filter:
include:
- entity_id: "sensor.0x*_voltage"
sort:
method: state
numeric: true
count: "{{ states('input_number.auto_entities_sort_count')|int }}"
input_number.auto_entities_sort_count:
name: Auto Entities Sort Count
min: 2
max: 10
initial: 4
step: 2