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.38k stars 30.64k forks source link

unable to find referenced entities (on disabled group helper Tradfri light) #91797

Closed Mariusthvdb closed 1 year ago

Mariusthvdb commented 1 year ago

The problem

every now and then below error is logged. It is about 2 Ikea Tradfri lights grouped to a singlelight.kerststerren. Because they are not in use currently, the group is disabled:

Scherm­afbeelding 2023-04-21 om 09 44 12 Scherm­afbeelding 2023-04-21 om 09 44 22

there is nothing else but below reference in my config, or .storage data to either the indivual lights, or the grouped light group. Ever since I have been experiencing serious Tradfri problems, I have unregistered the individual lights, (they are no longer there on the Tradfri Gateway, both in HA and on the actual Tradfri app itself) and disabled this group in the helpers menu.

do note the

"disabled_by": null

on the config_entry. Seems incorrect, considering this group is actually disabled via the UI.

What version of Home Assistant Core has the issue?

2023.4.5

What was the last working version of Home Assistant Core?

2023.1 ?

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tradfri

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tradfri/

Diagnostics information

core.entity_registry:

      {
        "aliases": [],
        "area_id": null,
        "capabilities": {
          "supported_color_modes": [
            "onoff"
          ]
        },
        "config_entry_id": "cf67b52f035168a572d3ed84447203a6",
        "device_class": null,
        "device_id": null,
        "disabled_by": "user",
        "entity_category": null,
        "entity_id": "light.kerststerren",
        "hidden_by": null,
        "icon": null,
        "id": "426463c4d1b6b9e1e178052a702ba82d",
        "has_entity_name": false,
        "name": null,
        "options": {},
        "original_device_class": null,
        "original_icon": "mdi:lightbulb-group",
        "original_name": "Kerststerren",
        "platform": "group",
        "supported_features": 0,
        "translation_key": null,
        "unique_id": "cf67b52f035168a572d3ed84447203a6",
        "unit_of_measurement": null
      },

core.config_entries:

      {
        "entry_id": "cf67b52f035168a572d3ed84447203a6",
        "version": 1,
        "domain": "group",
        "title": "Kerststerren",
        "data": {},
        "options": {
          "group_type": "light",
          "name": "Kerststerren",
          "entities": [
            "light.ster_links",
            "light.ster_rechts"
          ],
          "hide_members": false
        },
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": null,
        "disabled_by": null
      },

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.service
Source: helpers/service.py:757 
First occurred: 20 april 2023 om 18:15:38 (2 occurrences) 
Last logged: 20 april 2023 om 18:15:39

Unable to find referenced entities light.kerststerren or it is/they are currently not available

2023-04-20 18:15:38.527 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.kerststerren or it is/they are currently not available
2023-04-20 18:15:39.843 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.kerststerren or it is/they are currently not available

Additional information

Ive always figured a disabled group wont be used in any backend logic anymore. Hence, after disabling the group, and deleting the individual light entities, Ive not actually 'deleted' the disabled group. Thinking it would be easy to re-enable during next Christmas time...

could this be the cause of the daily Tradfri trouble I have been experiencing?

home-assistant[bot] commented 1 year ago

tradfri documentation tradfri source

issue-triage-workflows[bot] commented 1 year 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.