home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.81k stars 30.91k forks source link

Group of binary sensors does not reset / clear #130336

Open MacrosorcH opened 1 week ago

MacrosorcH commented 1 week ago

The problem

I am noticing a strange behaviour with groups of binary sensors that do not clear their state when its members do. Note that the "All entities" setting in the group config is disabled, therefore the expected behaviour would be that:

However, this is what I am seeing: the group stays "on" and its logbook reports that it is "on" because sensor "Sensore Movimento Bagno Sotto motion" is "on":

image

However, the state of that sensor cleared a while ago and is actually "off", but the group did not detect this change:

image

Note that the group contains some binary sensors that may occasionally be unavailable, although "Sensore Movimento Bagno Sotto motion" in the example above is not one of those - could this prevent the group from resetting correctly?

I found a post in the Community reporting the same behaviour, but it has no replies as I write: https://community.home-assistant.io/t/group-of-motion-detection-binary-sensors-doesnt-reset-clear-detected-motion/780475

What version of Home Assistant Core has the issue?

core-2024.11.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

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 week 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!

Code owner commands Code owners of `group` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign group` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


group documentation group source (message by IssueLinks)