Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101828

Best way to use template now that group.all.xxx is not there

$
0
0

@ptdalen wrote:

I have an automation that lets me know if one of my three locks did not lock as expected

        {% set unlocked = states | selectattr('entity_id', 'in', state_attr('group.all_locks','entity_id')) | selectattr('state','eq','unlocked') | map(attribute='name') | join(', ') %}
          The following locks failed to lock: {{ unlocked }}.  This was the second attempt.  Please lock using the app.

Any recommendations on best way to update this without creating a group.all_locks?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 101828

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>