Hi all,
I’m trying to build a view with all my network known devices… using nmap integration (and static IPs on router) I made it using mushroom-chips-card…
last but not least I would like to have a section with other device_tracker entities that are discovered by nmap but not tracked… mushroom-chips-card doesn’t permit wildcards so I was looking at auto-entities
type: custom:auto-entities
show_empty: true
card:
type: custom:mushroom-chips-card
card_param: chips
filter:
template: null
include:
- domain: device_tracker
options:
type: template
alignment: center
icon: mdi:comment-question
icon_color: black
content: Name / IP
exclude:
- entity_id: device_tracker.device1
- entity_id: device_tracker.device2
[....]
- entity_id: device_tracker.deviceN
the above will produce chips with always same content and color… is there a way to use real templating there? in static lists I use the following
- type: template
entity: device_tracker.device1
content: >-
{{ state_attr('device_tracker.device1','ip') }} / {{ state_attr('device_tracker.device1','friendly_name') }}
icon: >-
{{ state_attr('device_tracker.device1', 'icon') }}
icon_color: >-
{% if is_state ('device_tracker.device1','home') %} green {% else %} red {% endif %}
so I would like to reference the “current” device in order to retrieve its state, ip, name