-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group state of device_tracker is 'on/off' and not 'home/away' after restart HA #119411
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) group documentation |
i see this too, only way to correct it is to reload groups. |
Even if you reload, it doesn't works: In the group.yaml file since the 2024.6.0 (tested also in 2024.6.2) : user:
name: Home User
entities:
- person.xx
- person.yy
- device_tracker.zz
- device_tracker.zz Return user:
name: Home User
entities:
- person.xx
- person.yy
- device_tracker.zz
- device_tracker.zz
- binary.sensor.ttt Return Before 2024.6.0, Both returned |
reloading works for me but I only have 2 device trackers listed, and I am not sure if the issue comes again if the state changes but I do know reloading will change |
can't replicate this, as tested in https://community.home-assistant.io/t/device-tracker-group-on-instead-of-home/736509/17?u=mariusthvdb, but suppose it can be caused by device_trackers being in a Zone, which would throw off the home/not_home only states, and then default to on/off for the group? ![]() However, device_trackers can have Zones for states too and then
is used? |
pretty sure its regression introduced in 2024.6 because none of us users had this issue before. i can see in the latest release the state logic was refactored so a likely start: #116318 |
in that case it shouldve been marked as a breaking change because it was working fine before the release. Also its strange that device tracker is missing from the group UI. |
just to be 100% explicit: device_trackers in a Zone, so having the state set to the zone, did Not cause the group to go on/off before? What was the state of the group when a tracker was eg in a Work zone?
yes, this has been asked before many times, however, not relevant to this issue now, as it has never been available and still is a FR I suppose. btw @OmegaX-NL given this is an issue you raised on the Yaml configuration of groups, you should also post the relevant yaml in your opening post, and more detail to the issue with some screenshots. No way we can check what you are doing now, nor debug/help you |
correct
|
probably the
but itsnt that exactly what is going on now then? the group turning on/off when in a Zone |
Yes, i have 3 groups(in config.yaml), with Only device_trackers, and they show on/off, and apparently i don't see them in UI, where i only see a light-group(made in gui / Helpers) ( Not sure if i ever saw them there, it's been awhile since i created groups there :) ) |
I have the same problem but with a nested group. Group 1 shows as on/off Before 2024.6 group 1 also showed as home/not_home
|
I have same problem when group members are mixed of persons and template entities. group: sensor.device1_ssid_home |
This issue is about groups containing device_tracker entities please do not add different configs and keep the issue clean |
I have the exact same behavior. Reloading the groups containing two different device trackers after restart makes them go back to home/not_home again. |
This is also how my group worked before. The group would show home if a member of the group was actually home. If no member was home the group showed not_home regardless of the zones members were in (we have around 20 zones around the US that trigger various things). Now, it shows 'on' when any member is home and 'off' if no member is home regardless of what zones members are in. |
as posted in the community: fwiw, I have tested all day, and saw trackers go in and out of zones etc. all I see is home/not_home on the group, which now consists of a mobile_app tracker, a ping tracker and a custom Composite, to have all flavors… no issue can be forced, how odd this all is |
what state do you get if you restart HA when trackers are home and in a different zone? |
I had a thought that the culprit was my use of the OPNSense integration for device tracking and eliminated that from my group. Unfortunately, this change had no effect on the issue. The group still showed "on/off" after restarting Home Assistant. As before, resetting groups in Developer Tools reverted the group to "home/not_home". I'm at a loss. I sat down to start working through changing my presence detection to another scheme (binary sensors or some kind of automation that flips a switch based on state of pertinent devices). I think that's the direction I will go, but I'm taking it slow as I'm hoping this issue gets a fix. |
Manually reloading groups seems to fix this for me, but yea, what a PITA. |
same issue for me, manually reloading groups restores the state from on to home… |
Should be fixed with #119789 |
Just installed 2024.6.4, but the issue is still there. Can someone confirm this before I try to reopen this ticket? Kind regards |
Fix was targetted for the beta of 2024.7 |
Oh ok, missed that. Thank you for replying.Op 22 jun 2024 10:34 schreef Jan Bouwhuis ***@***.***>:
Just installed 2024.6.4, but the issue is still there. Can someone confirm this before I try to reopen this ticket?
Kind regards
Fix was targetted for the beta of 2024.7
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
The problem
Group state of device_tracker is 'on/off' and not 'home/away' after restart HA.
Workaround: When in 'Developer Tools' the group entity is reloaded the states are restored to 'home/away'.
What version of Home Assistant Core has the issue?
core-2024.6.2
What was the last working version of Home Assistant Core?
core-2024.5.x
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
No response
Link to integration documentation on our website
https://www.home-assistant.io/integrations/group/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: