I’m trying to edit a few automations that I created in HA using the GUI. I was working with chatgpt and wound up with my 20+ automations in the automations.yaml file. This is okay, as my automations still function, but I can no longer edit them in the GUI editor. If I try to start a new automation, I am unable to use the edit in yaml option. My plan was to create a blank automation, edit in yaml mode, and copy the corresponding automation from my automations.yaml file into the new automation.
Anyone else run into the issue of not being able to edit a automation that was originally created in the GUI?
I had this some years ago I think one of the automatons or automations.yaml may have been corrupt.
what solved it for me was copying all the text out of automations.yaml and leaving it blank, restart, then adding the automatons back in groups and restarting in between. I cant recall if I ever found the problem but its been working since
Thanks for the reply. I tried what you suggested. Copied out all content of automations.yaml and left a blank file. Restarted HA. Added one automation to automations.yaml. Restarted HA. Same results. Automation shows up on the list, but when I go into it, and try to edit in YAML, nothing happens.
According to ChatGPT, the automations created using the GUI are stored in a different location, but can be modified by the GUI / edit in YAML.
The method I was using for some of my most recent automations was to get the ID info for a specific device, and give that to ChatGPT with whatever instructions I wanted the automation to perform (i.e. make sure security light ID xxx is on, wait 10 seconds, turn it off for 3 seconds, then turn it back on). I would then take the yaml code and paste it into HA>edit in YAML to get the automations working. Looks like I’ll have to try to find another method.
The yaml code for the automations I got from Chatgpt all work with no issues. The issue I’m having is that I no longer am able to use the “edit in yaml” option in HA.
I went in per Sourcer63’s suggestion. I was able to create a new test automation via the GUI. I checked, and I was also able to edit the yaml code for it via the edit in yaml mode via the three dot menu. I checked some of the other automations, and for some reason, now the edit in yaml does work as expected. Not sure if I needed to wait longer for HA to process the automations.yaml file or not…but on the plus side, things are back to working as expected.