I'd like to make an automation which sends a notification to anyone who enters a shop to prompt them to open the shopping list if it has items in it, I have created a label and applied it to all shop zones. I believe i'm going to need a template similar to this in order to get this working but wanted to check to see if there is a more elegant solution: ```
{% set shops = label_entities("shop_zone") %}
{{ states.person | selectattr("state", "in", shops) | map(attribute='entity_id') | map('replace', 'person.', '') | list | length > 0 }}