I am not sure when this issue started, but I use a group of device trackers for presence detection automation in my home.
Today, our lights kept going dark and when I checked the logs, it showed that Home Assistant thought the group showed no one home. I checked the state of the group entity and it showed “on” instead of “home”.
Initially, I thought this was some kind of change from the latest update, and started editing my automations. I was daunted by the editing so I tried resetting groups in the developer options screen. This reverted my group back to “home” and “not_home”.
However, upon resetting HA, the group went back to “on” until I reset the groups from the developer options screen. I have now added an automation to reset the group if it shows “on”, but that seems clunky.
Is there something I am getting wrong here? This configuration has worked without issue for nearly 2 years now…so I am not sure what I did or what changed.
Hi, I’m having the same problem too. It’s due to a breaking change in 2024.6 https://developers.home-assistant.io/blog/2024/05/10/group-integration/
That article has gone abit over my head tbh, so if anyone can ELI5 on what we need to do to get this working again it would be much appreciated!
Same issue here, was a real pain to find this when we had all left the house, and the alarm didn’t arm and door didn’t lock… All fixed now, but I had to go through all our automations and change the states to ‘on’ and ‘off’ accordingly.
Actually a very annoying change to be honest, why was this necessary? Made me panic a little bit as we’re just getting ready to go on holiday…
I don’t understand the article posted above. I guess it’s over my head. The strange thing is, when I restart groups, it changes the state to “home” from “on”.
I have to make a decision to edit my automations or not. Was it intentional to have the group default to on/off? If so, why does it change to"home"/“not_home” when groups are reset?
Running on 2024.6.2 since yesterday, the behavior for my group “is anyone at home” (group.daheim) changes on every configuration reload, seems like depending on “fast load” or “restart homeassistant” from developer tools.
groups with only device_trackers should get the group state home /not_home according to the documentation (see right above this Group - Home Assistant)
Thanks. I won’t file another issue. Tracking this one.
@Mariusthvdb mentioned using only home/not_home in my trackers. I will give that a shot when I get back to this today. The only issue is, the zones are used to trigger other automations in Home Assistant (audio alerts at the house, security system states, etc.) so I’m not sure I want to break all of that just to save the inconvenience of resetting groups manually every time HASS restarts (which is usually only for an update where I’m sitting at the computer anyway).
It’s inconvenient to have to reload groups to fix the issue, but it’s a once-per-restart thing. I tried automating it…but that didn’t work or I didn’t know how to do it.
you might not need groups at all.
Depending on your specific requirements, binary_sensors could be useful to trigger automations, or maybe even a template sensor.
I did away with all groups completely, presence is superbly tracked.
If you add some of the trackers to the person entities, you can use those.
Even improve on the core trackers, by using custom Composite tracker (which does Not make the person entity lose lat/long when Home…)
anyways, options galore, so re-composing your config might be helpful/possible