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
71.13k stars 29.81k forks source link

`light.group` appears unavailable after a core restart. Becomes available after reloading groups or turning light on #49388

Closed palengh closed 3 years ago

palengh commented 3 years ago

The problem

This one light.group appears unavailable after a core restart. Here is the group:

- platform: group
  name: "[Lys] Tilleggslys"
  entities:
    - light.lys_tilleggslys_dimbare
    - light.lys_tilleggslys_faste

Both entities are gropus themself, and are available and has the state on after a core restart, but not the light.group above.

The group becomes available after I do a reload of the "GROUPS, GROUP ENTITIES, AND NOTIFY SERVICES" from the GUI or after I switch on one of the lights within the groups in the entities list.

What is version of Home Assistant Core has the issue?

2021.4.5

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

No response

Link to integration documentation on our website

No response

Example YAML snippet

- platform: group
    name: "[Lys] Tilleggslys"
    entities:
      - light.lys_tilleggslys_dimbare
      - light.lys_tilleggslys_faste
  - platform: group
    name: "[Lys] Tilleggslys dimbare"
    entities:
      - light.lys_kjokken_led_current_value
      - light.lys_stue_salong_current_value
  - platform: group
    name: "[Lys] Tilleggslys faste"
    entities:
      - light.hjornelys_soverom

Anything in the logs that might be useful for us?

<template TemplateState(<state light.lys_tilleggslys=unavailable; supported_color_modes=['onoff'], friendly_name=[Lys] Tilleggslys, icon=mdi:lightbulb-group, supported_features=0 @ 2021-04-18T22:05:13.211127+02:00>)>

<template TemplateState(<state light.lys_tilleggslys_dimbare=on; supported_color_modes=['brightness'], color_mode=brightness, brightness=8, entity_id=['light.lys_kjokken_led_current_value', 'light.lys_stue_salong_current_value'], friendly_name=[Lys] Tilleggslys dimbare, icon=mdi:lightbulb-group, supported_features=33 @ 2021-04-18T22:05:46.817983+02:00>)>

<template TemplateState(<state light.lys_tilleggslys_faste=on; supported_color_modes=['onoff'], color_mode=onoff, entity_id=['light.hjornelys_soverom'], friendly_name=[Lys] Tilleggslys faste, icon=mdi:lightbulb-group, supported_features=0 @ 2021-04-18T22:05:46.818127+02:00>)>

Additional information

I have a similar group which seems to work as expected:

  - platform: group
    name: "[Lys] Grunnbelysning"
    entities:
      - light.lys_grunnbelysning_dimbare
      # - light.lys_grunnbelysning_faste
      - light.wled_badet
      - light.lys_sesong
  - platform: group
    name: "[Lys] Grunnbelysning dimbare"
    entities:
      - light.lys_gang_current_value
      - light.lys_entre_current_value
      - light.lys_stue_gangsone_current_value
      - light.lys_kjokken_lampetter_current_value
      - light.lys_trapp_current_value
probot-home-assistant[bot] commented 3 years ago

group documentation group source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @home-assistant/core, mind taking a look at this issue as its been labeled with an integration (group) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

karliemeads commented 3 years ago

I was not able to recreate this.

palengh commented 3 years ago

Hmmm. Still an issue here. The strange thing is it occurs after a HA Core restart, then the group becomes available after reloading the group from HA Gui.

karliemeads commented 3 years ago

Does this issue occur in a fresh installation of homeassistant?

Perhaps its integration specific. What lights do you have? Can you also try removing the square brackets[Lys] -> Lys

github-actions[bot] commented 3 years ago

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.