Group famliy/person

Hi

I’m trying to group person so I can get away/home state when someone comes home.

As I have understands it, it can’t be done by UI/helper. here

I didn’t have any groups.yaml so I created one.

I have tried following setups both in groups.yaml and configuration.yaml

group:
awesome_people:
name: “Awesome People”
entities:
- device_tracker.dad_smith
- device_tracker.mom_smith

and

group:
awesome_people:
name: “Awesome People”
entities:
- person.dad_smith
- person.mom_smith

and

family:
name: family
entities:
- person.1phone
- person.2phone

and

group:
name: family
entities:
- device_tracker.this_phone
- device_tracker.that_phone

Some settings, I got the “missing unique id” error like this.
I have tried to add id: “1234” on different places, but no luck.

What do I have do change and where?

Thank you

It is no longer necessary to create a person group to achieve your goal… any zone entity’s
state is the number of person entities that are in that zone. If it is 0, no one is home… if it is not 0 someone is home.

If you just want to use a person group (they can be useful) make sure your indents are correct. In configuration.yaml it should look like:

group:
  dad_and_mom:
    name: Dad and Mom
    entities:
      - person.dad_smith
      - person.mom_smith

Thank you!!
I think it solved my issue.

I had just one space in on “dad_and_mom” line, so the rest was also one space to short in.

You absolute legend! Have been mucking around with this for ages, and then find this simple gem.

Appreciated.