I try to get the freindly_name of a sensor out of a group:
{% for item in states.group.fenster_und_tueren.attributes.entity_id if states(item) == 'open' %}
{{ item }} ist offen!
{{ states.sensor.badezimmer_fenster_state.attributes.friendly_name }} ist offen!
{{ states.item.attributes.friendly_name }} ist offen!
{% endfor %}
the ouput is
sensor.badezimmer_fenster_state ist offen!
Badezimmer Fenster STATE ist offen!
ist offen!
Is it possible to get the attributes of the “item” here?