Open Mariusthvdb opened 3 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (group
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
group documentation group source (message by IssueLinks)
My $0.02 is the correct behavior should be that the group state goes to unknown
when all members are unavailable
. The group entity itself should continue to be available because it is well defined. It's merely that its state cannot be determined because the members are all unavailable
, and therefore the state of unknown
is more appropriate.
Further, if the solution instead was to retain the attributes on the group entity while has an unavailable
status, it would be behavior that is not consistent with any other entity in HA.
Same issue here. In my application I am trying to expand groups to create light cards automatically. I aim to automatically display all my light entities, but want different cards for single lights and for grouped lights.
see example: dummy single light on top, dummy grouped lights on bottom.
to do this, I need to:
my expected behaviour would be to retain full group functionality - i.e. keeps entity_id attribute even if lights become unavailable. The group is still valid and should be displayed as such, just the value is not known due to no lights being available.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Keep
The problem
previously raised in https://github.com/home-assistant/core/issues/77511 but closed as stale without resolution
as title: helper group entities that contain entities that are all unavailable (think light group with incidental lights not connected to power), lose their entity_id attribute, and the contained entity_ids because of that
even though the config_entries show the lights are configured:
and the helper flow also shows the lights:
we can not in any other way find these unavailable members via templating, because we can not expand on that now also unavailable group. use case: find any light that is not a member of a light group
returns the grouped, but unavailable entity_id's
What version of Home Assistant Core has the issue?
2024.8.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
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
using the old style grouped as an experiment:
does contain the attribute and the member entity_id's
and allows to iterate these: