Hello everyone,
I could use some help.
I have created a group which only contains helpers.
These helpers are switches.
From this group I would like to know which identity is activated. The name is displayed here.
This already works.
The output is not exactly pretty.
I would like to shorten the names. But I can’t get this to work.
In addition, the result should not be sorted alphabetically.
I would like to delete “Wecker_” and “_werktage” from the result.
I would be very grateful for help.
type: vertical-stack
cards:
- type: tile
entity: group.wecker
show_entity_picture: true
color: orange
name: ' '
vertical: false
- type: custom:mushroom-template-card
primary: ''
icon: ''
multiline_secondary: true
secondary: >-
{{ expand('group.wecker') | selectattr('state','eq','on') |
map(attribute='name') | list | join(', ') }}
badge_icon: ''
fill_container: false
tap_action:
action: navigate
navigation_path: /lovelace/glance
card_mod:
style: |
ha-card {
border-top: 0 none;
border-top-left-radius: 0;
border-top-right-radius: 0;
margin-top: -20px;
}