core: Group states are marked as unknown in 0.116.0b1

The problem

When Home Assistant 0.116.0b1 is loaded, group states are marked as unknown instead of their member values.

For example:

  • a group with just device_trackers will be marked as home or not_home. Now marked as unknown
  • a group with just cover entities will be marked as open or closed. Now marked as unknown
  • a group with just light entities would be marked as on or off. Now marked as unknown

Environment

  • Home Assistant Core release with the issue: 0.116.0b1
  • Last working Home Assistant Core release (if known): 0.115.x
  • Operating environment (OS/Container/Supervised/Core): Container
  • Integration causing this issue: Groups
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/group/

Problem-relevant configuration.yaml

group:
  blinds_livingroom:
    name: Living Room Blinds
    entities:
      - cover.living_room_right
      - cover.living_room_middle
      - cover.living_room_left

Traceback/Error logs


Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 31 (24 by maintainers)

Most upvoted comments

Thanks for the logs. I’m pretty sure I’ve solved it in #41034 as I was able to get the unknown state in the test unexpectedly.

Its a bit more code than I had hoped, but I fixed the group of a group case in the PR

Just to make sure you are aware, this happens with covers and sensors too.

Thanks. It could happen for any integration that loaded after group.