An automation broke my Lovelace dashboards

Hi *,

something weird happend today.
I wrote the following automation:

- alias: Thermostat Calibration
  id: thermostat3
  trigger:
  - platform: time
    at: '12:00:00'
  condition:
  - condition: time
    weekday:
    - mon
  action:
  - service: switch.turn_on
    data: {}
    entity_id: group.thermostat_calib

After I reloaded the automations, I couldn’t access my lovelace dashboards, config file editor or other parts anymore. Configuration and Supervisor were still accessible though.

I had to reboot the host system and had less than a minute to repair the configuration, until it “broke” again. I updated from 2021.4.4 to 2021.4.6 in the process.

The were no errors or warnings in the logs.

Does anyone have a clue what could have happend here?

Best,
Ck

There’s nothing unusual about that automation. It might simply be an unfortunate coincidence. The moment you reloaded automations happened to coincide with some other problem that was dormant and finally erupted.

You could try using the “Inspect/Dev Tools” function of your web browser to see what error messages are appearing on your console. It’s possible that a custom Lovelace card crashes your dashboard due to some bad error handling.

I found the problem.
After trying to recreate the situation, I found out that it was not the automation above.
Since I was in a hurry to modify the config before the UI got stuck, I did several changes that I lost track of.

I had underscores in the automation Ids. Apparently a bad idea.

That could not have been the root cause because I use underscores in Ids all the time without any problems.

alias: Scheduled Exterior Lighting
id: scheduled_exterior_lighting