Error Response 500 when create or modify automation

Please format code properly.

What you can try is to deactivate all automations. If this doesn’t help, make a copy of your automation.yaml and delete your automations one by one, reload automations and test each time you deleted and reloaded, whether you can interact with the automation editor.