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
and whta happens when you restart HA when you have trackers in various states? like 1 tracker home the other in a zone, then you restart HA…whats the state of the group in those cases?