Automations are gone after update HA core

I’ve been having a problem for a few months now but I can’t figure it out and couldn’t find any information, if I didn’t search properly I apologize in advance.
Then the problem. The system functioned well and I always do all Homeassistant core/os updates. I also did that in December and after that update all automations suddenly disappeared. When I looked in the automations.yaml file, the contents were still there.
But somehow the system no longer sees the automations. I finally decided to roll back the update and have left it that way for the past few months. Because I want to do the update now, I’m still looking for a solution. Does anyone have an idea?

You call a rollback to “Prior” December 22 version, for “few month” ?
I suggest you copy your views/dashboards automation.yaml, and other yaml-files/settings, and reinstall a new(latest version) of HA, and install your integrations again(latest) etc etc.
Trying to upgrade from a " prior December 2022 " is NOT a trivial task, AND you will need to spend alot time reading release notes for all "braking changes etc. etc. And most likely wont succeed anyway

Thanks for the reaction, as you wil understand by now i am not an expert :wink:
But I have done te reinstall the way you advised today. And all went wel. All the integrations and dasbboards are working, the only problem that remains is the problem with the automations.
the strange thing is that when i make a new automation that this automation is added tot the automations.yaml file but disappears the same way in homeassistant and can’t be used.

Copy the txt in automation.yaml and paste it here BUT please place it “between” 3-backticks

Point 11 in below doc

ALSO, check your logfiles, and provide “snippets” of relevant info/warnings/errors (in 3 backticks)
And while you are getting “warm” please also provide your configuration.yaml( in 3 backticks)

Thanks for your time and response, I really appreciate it.
The log files show that there is a problem loading the automations. Hopefully this will provide information about the cause. I will also send the config and automations files.
My Homeassistant is installed on a mini pc (x86/64):
Home Assistant 2023.8.4
Supervisor 2023.08.1
Operating System 10.5
Frontend-versie: 20230802.1 - latest

Logboek Details (FOUT)
Logger: homeassistant.setup
Source: setup.py:207
First occurred: 12:05:45 (1 occurrences)
Last logged: 12:05:45
Unable to set up dependencies of default_config. Setup failed for dependencies: automation
Logboek Details (FOUT)
Logger: homeassistant.setup
Source: setup.py:225
First occurred: 12:05:44 (1 occurrences)
Last logged: 12:05:44
Setup failed for automation: Invalid config.
Logboek Details (FOUT)
Logger: homeassistant.config
Source: loader.py:879
First occurred: 12:05:44 (1 occurrences)
Last logged: 12:05:44

Unknown error calling automation config validator

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config.py", line 864, in async_process_component_config
  await config_validator.async_validate_config(hass, config)
File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 261, in async_validate_config
  await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 242, in _try_async_validate_config_item
  return await _async_validate_config_item(hass, config, False, True)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/automation/config.py", line 210, in _async_validate_config_item
  automation_config[CONF_ACTION] = await script.async_validate_actions_config(
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 264, in async_validate_actions_config
  return await asyncio.gather(
         ^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 315, in async_validate_action_config
  choose_conf[CONF_SEQUENCE] = await async_validate_actions_config(
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 264, in async_validate_actions_config
  return await asyncio.gather(
         ^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 315, in async_validate_action_config
  choose_conf[CONF_SEQUENCE] = await async_validate_actions_config(
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 264, in async_validate_actions_config
  return await asyncio.gather(
         ^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 279, in async_validate_action_config
  config = await device_action.async_validate_action_config(hass, config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/device_automation/action.py", line 54, in async_validate_action_config
  return await async_validate_device_automation_config(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/device_automation/helpers.py", line 55, in async_validate_device_automation_config
  platform = await async_get_device_automation_platform(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 174, in async_get_device_automation_platform
  integration = await async_get_integration_with_requirements(hass, domain)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
  return await manager.async_get_integration_with_requirements(domain)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/requirements.py", line 148, in async_get_integration_with_requirements
  integration = await async_get_integration(self.hass, domain)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 879, in async_get_integration
  raise int_or_exc
TypeError: exceptions must derive from BaseException
Configuration.yaml

# Configuratie instellingen
default_config:

http:
 ssl_certificate: /ssl/fullchain.pem
 ssl_key: /ssl/privkey.pem

# Text to speech
tts:
 - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

light:
 - platform: group
   name: "Keukenverlichting"
   entities:
     - light.keukentafel1
     - light.keukentafel2
     - light.keukentafel3

 - platform: group      
   name: "Woonkamerverlichting"
   entities:
     - light.links_achter_buiten
     - light.links_achter_binnen
     - light.links_voor_buiten
     - light.links_voor_binnen
     - light.rechts_achter_buiten
     - light.rechts_achter_binnen
     - light.rechts_voor_buiten
     - light.rechts_voor_binnen
     
 - platform: group      
   name: "Ganglampen"
   entities:
     - light.lamp21_gang
     - light.lamp22_gang
     - light.lamp1_gang

 - platform: group
   name: "Tuinlampen"
   entities:
     - light.achterdeur_lamp
     - light.garagedeur_lamp
     - light.schuur_lamp

#google assisstent
google_assistant:
   project_id: homeassistent-9cd1a
   service_account: !include HomeAssistentGoogle.json
   report_state: true

frontend:
 themes: !include_dir_merge_named themes
 
#Powercalc
powercalc:

logger:
 default: warning
 logs:
   custom_components.powercalc: debug
Automations.yaml

- id: '1628935485891'
 alias: A|U keuken
 description: ''
 use_blueprint:
   path: brent/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions.yaml
   input:
     remote1: 7d38234176633a8899c80f89cd6a9251
     lights:
       entity_id:
       - light.keukenverlichting
     off_long_custom: true
     on_long_custom: true
     button_on_long:
     - device_id: 9a2633fe290b5606298cf94b748726b7
       domain: light
       entity_id: light.keukentafel1
       type: brightness_increase
     - device_id: 2973f9647a06068d73f05475b8d9743a
       domain: light
       entity_id: light.keukentafel2
       type: brightness_increase
     - device_id: 4a98fd85b8896a539b1e280eec702d9a
       domain: light
       entity_id: light.keukentafel3
       type: brightness_increase
     button_off_long:
     - device_id: 9a2633fe290b5606298cf94b748726b7
       domain: light
       entity_id: light.keukentafel1
       type: brightness_decrease
     - device_id: 2973f9647a06068d73f05475b8d9743a
       domain: light
       entity_id: light.keukentafel2
       type: brightness_decrease
     - device_id: 4a98fd85b8896a539b1e280eec702d9a
       domain: light
       entity_id: light.keukentafel3
       type: brightness_decrease
- id: '1628940392256'
 alias: vijverlicht bij sunset
 description: ''
 use_blueprint:
   path: CyanAutomation/lights_on_at_sunset.yaml
   input:
     target_light:
       device_id: 71b8fcb789fbafc69db147ed0b83dc01
     target_brightness: 5
- id: '1628974304103'
 alias: Vijverlicht_uit
 description: ''
 trigger:
 - platform: time
   at: '23:59'
 condition: []
 action:
 - type: turn_off
   device_id: 71b8fcb789fbafc69db147ed0b83dc01
   entity_id: light.vijver
   domain: light
 mode: single
- id: '1629456697115'
 alias: A|U Woonkamer
 description: ''
 use_blueprint:
   path: brent/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions.yaml
   input:
     remote1: 777787a393a6223ea6bd3bfa78e51891
     lights:
       entity_id: light.woonkamerverlichting
     on_short_custom: false
     on_long_custom: true
     off_long_custom: true
     button_on_long:
     - device_id: b0688da3bd916eef074eaff1f478c170
       domain: light
       entity_id: light.links_achter_binnen
       type: brightness_increase
     - device_id: 0856f07546d8ccc6c3bdd2bde79024c2
       domain: light
       entity_id: light.links_achter_buiten
       type: brightness_increase
     - device_id: 01bd25681328762a5005c5a182db6b99
       domain: light
       entity_id: light.links_voor_binnen
       type: brightness_increase
     - device_id: 7ef151a08348cd4be0f6985d83473789
       domain: light
       entity_id: light.links_voor_buiten
       type: brightness_increase
     - device_id: 60083bfb79ca9fc09b78693edcef9102
       domain: light
       entity_id: light.scenes
       type: brightness_increase
     - device_id: f16422d0c55537080f6d3e398794aaac
       domain: light
       entity_id: light.rechts_achter_buiten
       type: brightness_increase
     - device_id: a671f352371cf8a9d72d873bd258b489
       domain: light
       entity_id: light.rechts_voor_binnen
       type: brightness_increase
     - device_id: c5845e8ba7734002b93be5c2f033f9a3
       domain: light
       entity_id: light.rechts_voor_buiten
       type: brightness_increase
     button_off_long:
     - device_id: b0688da3bd916eef074eaff1f478c170
       domain: light
       entity_id: light.links_achter_binnen
       type: brightness_decrease
     - device_id: 0856f07546d8ccc6c3bdd2bde79024c2
       domain: light
       entity_id: light.links_achter_buiten
       type: brightness_decrease
     - device_id: 01bd25681328762a5005c5a182db6b99
       domain: light
       entity_id: light.links_voor_binnen
       type: brightness_decrease
     - device_id: 7ef151a08348cd4be0f6985d83473789
       domain: light
       entity_id: light.links_voor_buiten
       type: brightness_decrease
     - device_id: 60083bfb79ca9fc09b78693edcef9102
       domain: light
       entity_id: light.scenes
       type: brightness_decrease
     - device_id: f16422d0c55537080f6d3e398794aaac
       domain: light
       entity_id: light.rechts_achter_buiten
       type: brightness_decrease
     - device_id: a671f352371cf8a9d72d873bd258b489
       domain: light
       entity_id: light.rechts_voor_binnen
       type: brightness_decrease
     - device_id: c5845e8ba7734002b93be5c2f033f9a3
       domain: light
       entity_id: light.rechts_voor_buiten
       type: brightness_decrease
     button_on_short:
     - device_id: ''
       domain: ''
       entity_id: ''
- id: '1629558814520'
 alias: A|U Tuinverlichting
 description: ''
 use_blueprint:
   path: brent/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions.yaml
   input:
     remote1: 3094ea8dea4ae327002c20f16cc2db80
     lights:
       device_id:
       - cf06dd505911b9de5a6afa799d508330
       - 17520dcd831f406382b217019c812a9a
       - 48889ce4a860eafd8a94108d2ba24be7
     off_short_custom: false
     on_long_custom: true
     off_long_custom: true
     button_on_long:
     - device_id: cf06dd505911b9de5a6afa799d508330
       domain: light
       entity_id: light.achterdeur_lamp
       type: brightness_increase
     - device_id: 17520dcd831f406382b217019c812a9a
       domain: light
       entity_id: light.schuur_lamp
       type: brightness_increase
     - device_id: 48889ce4a860eafd8a94108d2ba24be7
       domain: light
       entity_id: light.garagedeur_lamp
       type: brightness_increase
     button_off_long:
     - device_id: cf06dd505911b9de5a6afa799d508330
       domain: light
       entity_id: light.achterdeur_lamp
       type: brightness_decrease
     - device_id: 17520dcd831f406382b217019c812a9a
       domain: light
       entity_id: light.schuur_lamp
       type: brightness_decrease
     - device_id: 48889ce4a860eafd8a94108d2ba24be7
       domain: light
       entity_id: light.garagedeur_lamp
       type: brightness_decrease
- id: '1629632638386'
 alias: Espresso aan
 description: ''
 trigger:
 - device_id: 686bc6e28cfabbab5e2cbbcbcb5284c3
   domain: zha
   platform: device
   type: remote_button_short_press
   subtype: turn_on
 condition: []
 action:
 - type: turn_on
   device_id: 185959104d24c54f5f4685c6140310a1
   entity_id: switch.espresso_switch_2
   domain: switch
 - type: turn_on
   device_id: 3f94401c84e2b9b379f9a2e75ea3604c
   entity_id: switch.bonenmaler
   domain: switch
 mode: single
- id: '1629632720974'
 alias: Espresso uit
 description: ''
 trigger:
 - device_id: 686bc6e28cfabbab5e2cbbcbcb5284c3
   domain: zha
   platform: device
   type: remote_button_short_press
   subtype: turn_off
 condition: []
 action:
 - type: turn_off
   device_id: 185959104d24c54f5f4685c6140310a1
   entity_id: switch.espresso_switch_2
   domain: switch
 - type: turn_off
   device_id: 3f94401c84e2b9b379f9a2e75ea3604c
   entity_id: switch.bonenmaler
   domain: switch
 mode: single
- id: '1629632790244'
 alias: hifi aan
 description: ''
 trigger:
 - device_id: 20c3a17b693da352eae84b4eac54a268
   domain: zha
   platform: device
   type: remote_button_short_press
   subtype: turn_on
 condition: []
 action:
 - type: turn_on
   device_id: 3ea0db76650ae6c4bd9f3b269746b58e
   entity_id: switch.frient_a_s_splzb_131_switch_6
   domain: switch
 mode: single
- id: '1629632851869'
 alias: hifi uit
 description: ''
 trigger:
 - device_id: 20c3a17b693da352eae84b4eac54a268
   domain: zha
   platform: device
   type: remote_button_short_press
   subtype: turn_off
 condition: []
 action:
 - type: turn_off
   device_id: 3ea0db76650ae6c4bd9f3b269746b58e
   entity_id: switch.frient_a_s_splzb_131_switch_6
   domain: switch
 mode: single
- id: '1647276645031'
 alias: voordeurslot open knop
 description: ''
 trigger:
 - device_id: 8b05df4882ac401f1236c4542b5b0908
   domain: zha
   platform: device
   type: remote_button_short_press
   subtype: remote_button_short_press
 condition: []
 action:
 - service: script.deur_open
   data: {}
 mode: single
- id: '1657208579710'
 alias: A|U woonkamer
 description: ''
 use_blueprint:
   path: brent/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions.yaml
   input:
     remote1: 777787a393a6223ea6bd3bfa78e51891
     lights:
       entity_id:
       - light.woonkamerverlichting
       device_id: 60083bfb79ca9fc09b78693edcef9102
     button_on_short:
     - device_id: ''
       domain: ''
       entity_id: ''
- id: '1657209116266'
 alias: A|U Woonkamer
 description: ''
 use_blueprint:
   path: brent/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions.yaml
   input:
     remote1: 777787a393a6223ea6bd3bfa78e51891
     lights:
       entity_id:
       - light.woonkamerverlichting
     button_on_long:
     - device_id: b0688da3bd916eef074eaff1f478c170
       domain: light
       entity_id: light.links_achter_binnen
       type: brightness_increase
     - device_id: 0856f07546d8ccc6c3bdd2bde79024c2
       domain: light
       entity_id: light.links_achter_buiten
       type: brightness_increase
     - device_id: 01bd25681328762a5005c5a182db6b99
       domain: light
       entity_id: light.links_voor_binnen
       type: brightness_increase
     - device_id: 7ef151a08348cd4be0f6985d83473789
       domain: light
       entity_id: light.links_voor_buiten
       type: brightness_increase
     - device_id: 60083bfb79ca9fc09b78693edcef9102
       domain: light
       entity_id: light.scenes
       type: brightness_increase
     - device_id: f16422d0c55537080f6d3e398794aaac
       domain: light
       entity_id: light.rechts_achter_buiten
       type: brightness_increase
     - device_id: a671f352371cf8a9d72d873bd258b489
       domain: light
       entity_id: light.rechts_voor_binnen
       type: brightness_increase
     - device_id: c5845e8ba7734002b93be5c2f033f9a3
       domain: light
       entity_id: light.rechts_voor_buiten
       type: brightness_increase
     button_off_long:
     - device_id: b0688da3bd916eef074eaff1f478c170
       domain: light
       entity_id: light.links_achter_binnen
       type: brightness_decrease
     - device_id: 0856f07546d8ccc6c3bdd2bde79024c2
       domain: light
       entity_id: light.links_achter_buiten
       type: brightness_decrease
     - device_id: 01bd25681328762a5005c5a182db6b99
       domain: light
       entity_id: light.links_voor_binnen
       type: brightness_decrease
     - device_id: 7ef151a08348cd4be0f6985d83473789
       domain: light
       entity_id: light.links_voor_buiten
       type: brightness_decrease
     - device_id: 60083bfb79ca9fc09b78693edcef9102
       domain: light
       entity_id: light.scenes
       type: brightness_decrease
     - device_id: f16422d0c55537080f6d3e398794aaac
       domain: light
       entity_id: light.rechts_achter_buiten
       type: brightness_decrease
     - device_id: a671f352371cf8a9d72d873bd258b489
       domain: light
       entity_id: light.rechts_voor_binnen
       type: brightness_decrease
     - device_id: c5845e8ba7734002b93be5c2f033f9a3
       domain: light
       entity_id: light.rechts_voor_buiten
       type: brightness_decrease
- id: '1659438363743'
 alias: Voordeur schakelaar
 description: ''
 use_blueprint:
   path: brent/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions.yaml
   input:
     button_on_short:
     - condition: state
       entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_ced7ec07_on_off
       state: 'off'
     - delay:
         hours: 0
         minutes: 0
         seconds: 30
         milliseconds: 0
     - device_id: ''
       domain: ''
       entity_id: ''
     remote1: a866b6ae71048270e45a008f4798b408
     button_off_short:
     - service: script.status_naar_afwezig
       data: {}
     on_short_custom: true
     off_short_custom: true
- id: '1659531925818'
 alias: Schakelaar voordeur
 description: ''
 use_blueprint:
   path: brent/zha-ikea-tradfri-wireless-dimmer-with-options-for-custom-actions.yaml
   input:
     remote1: a866b6ae71048270e45a008f4798b408
     on_short_custom: true
     button_on_short:
     - service: script.status_naar_thuis
       data: {}
     off_short_custom: true
     button_off_short:
     - service: script.deur_sluiten
       data: {}
     off_long_custom: true
     button_off_long:
     - service: script.status_naar_afwezig
       data: {}
- id: '1665129168708'
 alias: vissen voeren 10 uur
 description: ''
 trigger:
 - platform: time
   at: '10:00:00'
 condition: []
 action:
 - service: script.vissen_voeren
   data: {}
 mode: single
- id: '1665129268441'
 alias: Vissen voeren 17 uur
 description: ''
 trigger:
 - platform: time
   at: '17:00:00'
 condition: []
 action:
 - service: script.vissen_voeren
   data: {}
 mode: single
- id: '1683386853540'
 alias: vissen voeren 13.00
 description: ''
 trigger:
 - platform: time
   at: '13:00:00'
 condition: []
 action:
 - service: script.vissen_voeren
   data: {}
 mode: single
- id: '1690530092871'
 alias: Camera achtertuin aan bij zonsondergang
 description: ''
 trigger:
 - platform: sun
   event: sunset
   offset: 0
   enabled: true
 condition: []
 action:
 - type: turn_on
   device_id: ffd7c8384aee27287e985854423b9d72
   entity_id: switch.camera_achtertuin_motion_detection
   domain: switch
 mode: single

Hi, welcome to the forum!

It’s not a browser cache issue or having multiple tabs with your HA open?

I would try to comment out every automation, then restart.
And every time uncomment one automation and restart again.

1 Like

thanks Giel for your contribution,
I did something similar. I deleted all the automations in the automations.yaml, restarted and made a new automation in HA.
Although the automations.yaml contained this new automation, it was not loaded en not visible in HA. I would therefore I think that the problem is not in the automations.yaml file?

Thanks Nick for your suggestion.
unfortunately this is not the case.

Did you have any error when you restarted HA (with empty automations.yaml?

Did you make this trough the UI?

no, i didn’t have any errors when i restarted. Except for the error in the log which I included above and states that de automations are not available.
yes, i made the automation through the UI.

So you still have this error when you empty your automations.yaml

yes, also with an empty automations.yaml I get this errors.

Thanks everyone for contributing to a solution. I just found the problem. It turned out that a blueprint I was using an automation gave me a problem. Removing this blueprint (for ikea switch) led to me being able to see all automations again. So now just find a solution for this blueprint.

1 Like