Upgraded HASS and lost automations

Everything including automations had worked fine and survived a year of updating. The other day I made a rookie mistake and didn’t make a backup prior to updating the system. After installing the update to Supervisor 2021-01-04 and HAOS 5.10 I saw the following notification:

Invalid config
The following integrations and platforms could not be set up:

automation
default_config
Please check your config and logs.

Everything works manually, just no automations. Here is my log file:

2021-01-16 09:47:14 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-01-16 09:47:16 ERROR (MainThread) [homeassistant.setup] Error during setup of component automation
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 81, in async_get_device_automation_platform
integration = await async_get_integration_with_requirements(hass, domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 47, in async_get_integration_with_requirements
integration = await async_get_integration(hass, domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 491, in async_get_integration
raise IntegrationNotFound(domain)
homeassistant.loader.IntegrationNotFound: Integration '' not found.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 169, in async_setup
if not await _async_process_config(hass, config, component):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 512, in _async_process_config
await async_validate_config_item(
File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 74, in async_validate_config_item
config[CONF_ACTION] = await script.async_validate_actions_config(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 143, in async_validate_actions_config
return await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 187, in async_validate_action_config
choose_conf[CONF_SEQUENCE] = await async_validate_actions_config(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 143, in async_validate_actions_config
return await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 158, 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 84, in async_get_device_automation_platform
raise InvalidDeviceAutomationConfig(
homeassistant.components.device_automation.exceptions.InvalidDeviceAutomationConfig: Integration '' not found
2021-01-16 09:47:38 WARNING (MainThread) [homeassistant.components.airvisual] The 'airvisual' option is deprecated, please remove it from your configuration
2021-01-16 09:47:38 ERROR (MainThread) [homeassistant.components.plex] Plex server (https://192-168-1-52.52f0982e3eb5413e8182ffc31f76ad02.plex.direct:32400) could not be reached: [HTTPSConnectionPool(host='192-168-1-52.52f0982e3eb5413e8182ffc31f76ad02.plex.direct', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884347df10>: Failed to establish a new connection: [Errno 111] Connection refused'))]
2021-01-16 09:47:38 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 5 seconds
2021-01-16 09:47:39 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: automation
2021-01-16 09:47:39 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
2021-01-16 09:47:40 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 277, in preload_stream
request_stream(hass, source, keepalive=True, options=camera.stream_options)
File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 47, in request_stream
raise HomeAssistantError("Stream integration is not set up.")
homeassistant.exceptions.HomeAssistantError: Stream integration is not set up.
2021-01-16 09:47:43 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 10 seconds
2021-01-16 09:47:54 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 20 seconds
2021-01-16 09:48:14 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 40 seconds
2021-01-16 09:48:54 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:50:14 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:51:34 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:52:54 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:54:14 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:55:35 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:56:55 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:58:15 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 09:59:35 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:00:55 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:02:15 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:03:35 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:04:55 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:06:15 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:07:35 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:08:55 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:10:16 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:11:36 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:12:56 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:14:16 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:15:36 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:16:56 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:18:16 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:19:36 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:20:56 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds
2021-01-16 10:22:17 WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 80 seconds

Here is my automation.yaml file:

- id: '1600834386423'
  alias: Turn on Bed Lamp and Laundry
  description: ''
  trigger:
  - event: sunset
    offset: -00:35:00
    platform: sun
  action:
  - type: turn_on
    device_id: db12db8e37bb4a4aa2c44bcaa705e77e
    entity_id: switch.002006405ccf7fb1ac5e_1
    domain: switch
  - type: turn_on
    device_id: 0c6e1dc0576aa83c540b630d5dde3de1
    entity_id: switch.531331834c11ae157b1f
    domain: switch
  mode: single
- id: '1602455564861'
  alias: Turn on Porch Lights
  description: ''
  trigger:
  - event: sunset
    offset: 00:10:00
    platform: sun
  action:
  - type: turn_on
    device_id: 3eff628b0c0e11eb9ea103e13845cde5
    entity_id: switch.front_outside_lights_red_series_switch_2
    domain: switch
  mode: single
- id: '1602466560643'
  alias: Turn off Porch Lights
  description: ''
  trigger:
  - event: sunrise
    offset: -00:30:00
    platform: sun
  action:
  - type: turn_off
    device_id: 3eff628b0c0e11eb9ea103e13845cde5
    entity_id: switch.front_outside_lights_red_series_switch_2
    domain: switch
  mode: single
- id: '1602650162827'
  alias: Turn off Bedlamp
  description: ''
  trigger:
  - platform: state
    to: '100'
    attribute: Battery Level
    from: '1'
    entity_id: sensor.wayne_s_iphone_battery_state
  condition:
  - condition: and
    conditions:
    - condition: time
      after: '22:00:00'
    - condition: device
      type: is_off
      device_id: 77249ca80b6311eb92f64d116855eebd
      entity_id: switch.lzw30_sn_switch_red_series_switch
      domain: switch
  action:
  - delay: 00:05:00
  - type: turn_off
    device_id: db12db8e37bb4a4aa2c44bcaa705e77e
    entity_id: switch.002006405ccf7fb1ac5e_1
    domain: switch
  mode: single
- id: '1603254864094'
  alias: Morning Wake-Up
  description: ''
  trigger:
  - platform: time
    at: 07:00
  condition: []
  action:
  - type: turn_on
    device_id: db12db8e37bb4a4aa2c44bcaa705e77e
    entity_id: switch.002006405ccf7fb1ac5e_1
    domain: switch
  - type: turn_on
    device_id: 0c6e1dc0576aa83c540b630d5dde3de1
    entity_id: switch.531331834c11ae157b1f
    domain: switch
  mode: single
- id: '1603849632471'
  alias: Living Room at Sunset
  description: ''
  trigger:
  - platform: sun
    event: sunset
  condition: []
  action:
  - type: turn_on
    device_id: 77249ca80b6311eb92f64d116855eebd
    entity_id: switch.living_room_red_series_switch
    domain: switch
  mode: single
- id: '1605108640778'
  alias: Morning Shut-off
  description: ''
  trigger:
  - platform: time
    at: '7:45'
  condition: []
  action:
  - type: turn_off
    device_id: db12db8e37bb4a4aa2c44bcaa705e77e
    entity_id: switch.002006405ccf7fb1ac5e_1
    domain: switch
  - type: turn_off
    device_id: 0c6e1dc0576aa83c540b630d5dde3de1
    entity_id: switch.531331834c11ae157b1f
    domain: switch
  mode: single
- id: '1606627967972'
  alias: Laundry Room Off
  description: ''
  trigger:
  - platform: time
    at: '22:00:00'
  condition: []
  action:
  - type: turn_off
    device_id: 0c6e1dc0576aa83c540b630d5dde3de1
    entity_id: switch.531331834c11ae157b1f
    domain: switch
  mode: single
- id: '1608094753704'
  alias: Turn on Christmas Lights
  description: ''
  trigger:
  - platform: time
    at: '16:45:00'
  condition: []
  action:
  - type: turn_on
    device_id: e4ac9602ceedf494a31d2a2f49864f1f
    entity_id: switch.073088625002911c0e9f
    domain: switch
  mode: single
- id: '1608094787556'
  alias: Turn off Christmas Lights
  description: ''
  trigger:
  - platform: time
    at: '23:30:00'
  condition: []
  action:
  - type: turn_off
    device_id: e4ac9602ceedf494a31d2a2f49864f1f
    entity_id: switch.073088625002911c0e9f
    domain: switch
  mode: single
- id: '1610421482110'
  alias: Dining - Inovelli Red Series LZW31-SN Dimmer
  description: ''
  use_blueprint:
    path: troy/ozw-inovelli-lzw31-sn-dimmer.yaml
    input:
      inovelli_switch: d4118915128411ebbfd2dd6f0561f9b9
      ozw_node_id: '7'
      config_button:
      - device_id: ''
        domain: ''
        entity_id: ''
      button_a2:
      - scene: scene.dinner_time

Let me know if anything else is needed.

I fixed it.

I realized around the same time I added a blueprint. The blueprint was the last item in my automation file, so I removed it. Now I don’t get the error and my automations are working again.

Any ideas why the blueprint would cause issue?