Help with error - Invalid config for [automation]

Hi all, hope you can diagnose this error, it only occurred today after installing a Conbee2 with ZHA,

Logger: homeassistant.config
Source: components/hue/device_trigger.py:119 
First occurred: 16:57:33 (3 occurrences) 
Last logged: 17:08:37

Invalid config for [automation]: InvalidDeviceAutomationConfig() (See /config/configuration.yaml, line 223).
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 84, 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 62, in async_validate_config_item
    config[CONF_TRIGGER] = await async_validate_trigger_config(
  File "/usr/src/homeassistant/homeassistant/helpers/trigger.py", line 48, 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 21, in async_validate_trigger_config
    return await getattr(platform, "async_validate_trigger_config")(hass, config)
  File "/usr/src/homeassistant/homeassistant/components/hue/device_trigger.py", line 119, in async_validate_trigger_config
    raise InvalidDeviceAutomationConfig
homeassistant.components.device_automation.exceptions.InvalidDeviceAutomationConfig

I can’t figure it out???

Look here and fix the issue:

You have an automation with a device which doesn’t exist. The automation itself wont show in HA because it’s invalid. Check all your Automations in yaml and delete the wrong automation.

3 Likes