btw, Frenck, is this something you would be willing to consider adding?
We now have total domains, and entities, but sorted components is not yet available.
Ive been using
{{state_attr('sensor.ha_main_config','components')|sort}}
and it splits it all out, but its a bit complex to jinja template it into a nice entity with attributes…
the template is based on the rest api sensor to the instance, listing all its components
rest:
- resource: !secret config_resource
scan_interval: 86400
verify_ssl: false
headers:
Content-Type: application/json
Authorization: !secret api_bearer_token
sensor:
- unique_id: ha_main_config_rest
name: Ha Main config
icon: mdi:memory
value_template: >
{{value_json.version}}
json_attributes:
- components
- unit_system
- config_dir
cant first them all here ofc…
would be nice if we had that listed per domain, and then the subsequent integrations (not sure of the terminology here tbh) as sublist
so:
alarm_control_panel: 5
for: manual, mqtt, overkiz, zha
etcetc
always a bit confusing when to use which terminology because
{% for d in states|groupby('domain') -%}
{% if loop.first %} Domains: {{loop.length}} - Entities: {{states|count}} {% endif %}
{{ d[0] -}}
{% endfor %}
spits out the domains, which are components in the sensor above and then some…
anyways, maybe you can have a look at the components?