Issue After Update - Core 2022.7.1

Hi all,

i just updated to core-2022.7.1 and after the install i’m getting an error in the logs i have never seen before. Any ideas on how i can resolve this?

Logs:

Logger: homeassistant.helpers.check_config
Source: components/zha/core/helpers.py:173
First occurred: 7:45:21 AM (7 occurrences)
Last logged: 7:47:42 AM

Unexpected error validating config
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 162, in async_check_ha_config_file
    await config_validator.async_validate_config(hass, config)
  File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 126, in async_validate_config
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 103, in _try_async_validate_config_item
    config = await async_validate_config_item(hass, config, full_config)
  File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 74, in async_validate_config_item
    config[CONF_TRIGGER] = await async_validate_trigger_config(
  File "/usr/src/homeassistant/homeassistant/helpers/trigger.py", line 59, in async_validate_trigger_config
    conf = await platform.async_validate_trigger_config(hass, conf)
  File "/usr/src/homeassistant/homeassistant/components/device_automation/trigger.py", line 69, in async_validate_trigger_config
    return await platform.async_validate_trigger_config(hass, config)
  File "/usr/src/homeassistant/homeassistant/components/zha/device_trigger.py", line 41, in async_validate_trigger_config
    zha_device = async_get_zha_device(hass, config[CONF_DEVICE_ID])
  File "/usr/src/homeassistant/homeassistant/components/zha/core/helpers.py", line 173, in async_get_zha_device
    raise ValueError(f"Device id `{device_id}` not found in registry.")
ValueError: Device id `9dea45becf0b5a60c0f8b2d395641d87` not found in registry.
1 Like

Exactly the same issue here. :frowning:

Unexpected error calling config validator: Device id e4f8483c15f304c65456c0de9ce5f2b5 not found in registry.

I have the same issue. Cannot seem to find this “missing” device by id

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 693, in async_handle_core_service
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Unexpected error calling config validator: Device id `db0cd2842a3160d8df8e30586e70cf19` not found in registry.

I found the solution. I searched for the device id “db0cd2842a3160d8df8e30586e70cf19” in all yml files and came across a few entries in my automations.yml from a ZHA add-on I had uninstalled earlier. Seems like removing the add-on did not remove references to devices in the automations.yml file.

So I removed all automations with the above id and now my configuration checks out.

1 Like

George! That was it. I had some old automations in my system that were throwing everything off. Thanks so much for your help!