Hopefully this isn’t too dumb a question, but is it possible to template the entities in a group? Something like this:
group_name:
name: My Group
value_template:
entities: >-
'{%- if is_state("device_tracker.person", "Home")-%}
{{ "device_tracker.person" }}
{%- else -%}
{{ "sensor.person_location" }}
{%endif%}'