From what I have learned from studying numerous posts, it appears that I can not natively trigger an automation based on the state of an individual entity that is part of a group. But, that I can create a sensor first that can be used as a trigger to do something similar?
template:
- sensor:
- name: People
state: >-
{{ expand('group.people') | list | count }}
How do I use this sensor in an automation? I would like to use the notify service to message the friendly_name and state of the entity that changed. i.e. John is Home
I feel like this must have been covered somewhere, but it’s been challenging to find a post since it appears the ‘expand’ functionality was updated in the past year to simplify this process? More likely, I can’t see the forest through the trees?