type: custom:auto-entities card: type: entities show_header_toggle: false filter: template: |- {% for state in states.automation -%} {% if state.name | regex_search('[Рр]уч') %} {% continue %} {% endif %} {%- if state.name and state.name | regex_search('[Кк]ор') -%} {%- set matches = state.name | regex_findall('\\((.*?)\\)') -%} {%- if matches|length > 0 -%} {{ { 'entity': state.entity_id, 'name': matches[0] | capitalize, 'secondary_info': 'last-changed' } }}, {%- endif -%} {%- endif -%} {%- endfor %} sort: method: name