Dear all, I would like to create a device group to group my mobile devices together and use the group as a trigger. The devices are presented in the form of device tracker, i.e. device_tracker.xyz. However I tried all categories in the Group but none of it allows me to select my device as entity. Could someone give me an idea how to do this?
Thank you rossk. Hopefully we can complete this in UI in the future. It would be more user friendly, especially for those with less knowledge on coding like me
I tried to create an old-style group using device_tracker entities, and it seems to be created fine, but I can’t seem to reference it in a card or anything?
I’m not sure how to determine the entity id for it? Should it be group.my_devicetracker_group_name?
I actually figured out what I did wrong. I’m using a separate package yaml file to declare my custom resources and I accidentally renamed it from *.yaml to *.json. Operator error. I renamed the file back and everything works as expected. Sorry for bothering you with the dumb mistake on my part
Sorry, I should have been more clear. You can’t assign a group entity to a person, only device_trackers can be assigned to a person. The group is just a method to get the as to whether they are all home. That could be used in an automation to control a device_tracker entity.
You shouldn’t need to set up an entity beforehand, calling the device_tracker.see service with a new dev_id should create a new device_tracker entity that can then be added to your person.
I think about it also, because “new groups” do not provide for multiple types (including device_tracker). And the old group type may be removed from HA over time and a problem will arise.