Lost access to automations

Update: Restored last backup and recreated automations and the problems did not come back.

I am getting the following error in my logs

Unable to set up dependencies of default_config. Setup failed for dependencies: automation

I was adding a new automation via the gui and after I saved it all my automations were greyed out. I tried removing them and recreating them, but they don’t show in the GUI. They do end up in my automations.yaml file.

How do I get automations back up and running. I have rebooted several times.

Entire error

Traceback (most recent call last):

  File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component

    result = await task

  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 230, in async_setup

    if not await _async_process_config(hass, config, component):

  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 635, in _async_process_config

    await async_validate_config_item(hass, raw_config),

  File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 86, in async_validate_config_item

    config[CONF_ACTION] = await script.async_validate_actions_config(

  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 241, in async_validate_actions_config

    return await asyncio.gather(

  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 298, in async_validate_action_config

    choose_conf[CONF_SEQUENCE] = await async_validate_actions_config(

  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 241, in async_validate_actions_config

    return await asyncio.gather(

  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 256, in async_validate_action_config

    platform = await device_automation.async_get_device_automation_platform(

  File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 112, in async_get_device_automation_platform

    raise InvalidDeviceAutomationConfig(

homeassistant.components.device_automation.exceptions.InvalidDeviceAutomationConfig: Integration '' not found

2022-01-28 10:50:13 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: automation

2022-01-28 10:50:13 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.

2022-01-28 10:50:17 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{% set direction = ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'] %} {% set degree = states('sensor.weather_station_wd')|float %}

  {{ direction[((degree+11.25)/22.5)|int] }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1

2022-01-28 10:50:17 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{% set direction = ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'] %} {% set degree = states('sensor.weather_station_wd')|float %}

  {{ direction[((degree+11.25)/22.5)|int] }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1

2022-01-28 10:54:20 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

  File "/usr/src/homeassistant/homeassistant/components/config/automation.py", line 22, in hook

    await hass.services.async_call(DOMAIN, SERVICE_RELOAD)

  File "/usr/src/homeassistant/homeassistant/core.py", line 1442, in async_call

    raise ServiceNotFound(domain, service) from None

homeassistant.exceptions.ServiceNotFound: Unable to find service automation.reload

Thanks for the help

Did you solve it? I have the same problem.