Both of the devices report the location correctly i.e. street addresses and when they are in a pre-defined location “work”, etc, however as far as I can see the state of group.adult does not change from “unknown”. and therefore the automation doesn’t trigger.
According to the doc’s entities is required and you can’t have a capital A in the group entity id
Configuration variables:
view (Optional): If yes then the entry will be shown as a view (tab) at the top. Groups that are set to view: yes cannot be used as entities in other views.
name (Optional): Name of the group.
icon (Optional): If the group is a view, this icon will show at the top in the frontend instead of the name. If the group is a view and both name and icon have been specified, the icon will appear at the top of the frontend and the name will be displayed as the mouse-over text. If it’s not a view, then the icon shows when this group is used in another group.
control (Optional): Set value to hidden. If hidden then the group switch will be hidden.
entities (Required): array or comma delimited string, list of entities to group.
Then the docs are wrong, it works fine, I have lots of groups like this in my setup.
You only need entities if you’re using the other configuration options for a group (like hidden, view or name), if you’re not using it as a front end card then these options are surplus to requirements and putting it as the OP did works perfectly.
See the groups in this package:
link removed
2 are groups of entities for backend purposes, the other two are cards on the interface.
ok, figured it out (I think) - it’s good that I learnt all that about formatting of yaml (I’ve changed my groups.yaml and automations.yaml now to reflect the correct spacing and quotes), but I think the problem was that I was using sensor.julie and sensor.james instead of device_tracker. The sensors are used for reporting the street address, but the device_tracker shows the home or not home state.
OK, it might work but it’s not consistent and very confusing for new people I think, for instance …
group:
Phone trackers: <---------- Uppercase and space and no entities:
- device_tracker.forthygpixel
- device_tracker.lauras_iphone
- device_tracker.courtney_iphone
@rsachoc I think you are on the right lines with using device_tracker rather than sensor in your groups. It’s how I have it set up and it works. Sensor groups always show “unknown”.