Hi all,
Maybe you can help me. I created a group with 2 persons.
family:
name: Family
entities:
- person.chris
- person.marianne
then i created an automation rule that when the group status is not_home all light will turn off. Now The problem that i have is that if one person leaves the house all lights will turn off.
It should be that if one person is still @home the status of the group should not change to “not_home”
Can somebody help me? is this a bug?
with the device trackers and the
all: false option it is still not working.
calisro
(Rob)
August 29, 2022, 1:11pm
3
What does this return in the developer template tab when each person is away/home?
{{ states('person.chris') }}
{{ states('person.marianne') }}
{{ states('group.family') }}
hi this is the output,
home
not_home
not_home
So normaly the group should be home. but the group shows not_home
calisro
(Rob)
August 29, 2022, 1:36pm
5
It may be this:
opened 09:41AM - 22 Feb 21 UTC
integration: group
**The problem**
I have created a group of Person entities (called Residents) … that I use for automating certain things based on the presence of people living in my home (me and my girlfriend).
This has been working fine up to a point somewhere in the last 2-3 months (not sure when exactly): when one or more person entities has the state Home, then the group also shows the state Home. Lately, however, this has been completely off. Often, the group is Away even though one or both of us are home (also registered as such by HA). You can find an example of this in the attached screenshot. Has something changed recently regarding this part/integration of HA?
(I have recently used a workaround by creating a binary_sensor entity to replace the group entity, but I'd still like to resolve this since I feel a group entity is a more elegant solution)
**What is version of Home Assistant Core has the issue?**
core-2021.2.3
**What was the last working version of Home Assistant Core?**
_No response_
**What type of installation are you running?**
Home Assistant OS
**Integration causing the issue**
_No response_
**Link to integration documentation on our website**
_No response_
**Example YAML snippet**
```
group:
residents:
name: Residents
entities:
- person.me
- person.girlfriend
```
**Anything in the logs that might be useful for us?**
_No response_

Mine works okay which is interesting.
calisro
(Rob)
August 29, 2022, 1:38pm
6
Maybe just create a sensor to manage it instead of a group.
how can i create such a sensor?
i now created 2 automations with exceptions. i will see if this works for me.
i yust wanted that when whe are both gone some things are turning off. but only when the both of us are gone.
when 1 person is in the home the automation should be stalled.
what version are you running? maybe there is a difference there?
calisro
(Rob)
August 29, 2022, 1:49pm
10
I run the latest. I doubt it though as that issue has been around a while and we’ve all gone through MANY versions.
rossk
August 30, 2022, 6:31am
11
Can’t see any reason the group would behave that way but you could simply use the state of zone.home being or going to ‘0’ (zero) as a condition and or trigger as an alternative in the mean time.
1 Like