fuse1
May 1, 2021, 8:46am
1
Hi there! I think I have a bug in my HA, as I’m reading how other people’s person-groups behave differently to mine. I have this config:
home_people:
name: Tenants
all: false
entities:
- person.cXXXX
- person.mXXXX
# - person.guest
But the status of this group is only ‘Home’ when everyone is home. I recorded what happens below:
I know ‘all: false’ is the default, but I just wanted to be sure. And changing the value to ‘true’ doesn’t change the behaviour. I reloaded groups and restarted HA a few times, but that doesn’t seem to help either. Is there an error in my code, as it seems the result differs from what should happen according to the documentation ? If this is a bug, should I make a github-account and file an issue there, or is that not the way to go when reporting a bug?
Thanks in advance for your help!
tom_l
May 1, 2021, 11:05am
2
It should. From the docs:
when any member of the group is home
then the group is home
. If you set the all
option to true
though, this behavior is inverted and all members of the group have to be on
for the group to turn on as well.
Group Behaviour
Looks like someone already has:
opened 09:41AM - 22 Feb 21 UTC
closed 08:07PM - 22 Mar 23 UTC
integration: group
stale
**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_
![ha_group](https://user-images.githubusercontent.com/53058265/108689760-c5d9dc00-74f9-11eb-9623-e2a52a284661.jpg)
Adding your gif and explination would help.
Probably caused by this issue:
opened 05:38PM - 06 Feb 21 UTC
closed 02:11PM - 06 Aug 21 UTC
integration: group
stale
**The problem**
TLDR: in `group` the `all: true` doesn't function.
When crea… ting a group (of lights in my case) the variable "all" should change the behaviour so the group state is set to `on` only when *all* members (lights in my case) are turned on. This doesn't work.
Instead if the state of one member of the group is turned `on`, the whole group state is set to `on`.
**What is version of Home Assistant Core has the issue?**
core-2021.2.1
**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**
Group
**Link to integration documentation on our website**
https://www.home-assistant.io/integrations/group/
**Example YAML snippet**
```
kitchen_lights:
all: true
name: Kitchen Lights group
entities:
- light.kitchen_hood_left
- light.kitchen_hood_right
- light.kitchen_spots_on_off_plug
```
**Anything in the logs that might be useful for us?**
```txt
# Put your logs below this line
```
Screenshot of the result. With the config above the togle for the group should still be off:
![Group state on while is should be off](https://user-images.githubusercontent.com/2558325/107125351-c0e61d00-68a9-11eb-805f-8a35fa63bc4d.JPG)
Went though the standard troubleshooting steps though the discord server:
- Validated the configuration
- Tried a different set of lights/entities
- Tried differnet locations for the variable and in different config files (copied from the groups.yaml to the configuration.yaml)
- Tried simplefied configurations (the file added is my complete groups.yaml at the moment of testing)
1 Like
fuse1
May 1, 2021, 1:22pm
4
Thanks! I added the gif and explanation.