Automations without area

Is there a way of listing all automations that have no area assigned to them?
thanks

Copy-paste the following template into the Template Editor:

{%- for a in states.automation | sort(attribute='entity_id') if area_name(a.entity_id) is none %}
{{ a.entity_id }}
{%- endfor %}

perfect - this is just what I needed!