#Studio Code Server - Automations.YAML

1 messages · Page 1 of 1 (latest)

silver cypress
#

Hey there. I have been using Studio Code Server to edit my YAML files forever.
My question is, my Automations.YAML file is now over 5000 lines. When I edit it in Studio Code Server, it hangs for a LONG time before it refreshes.

If I have an error in my YAML, it causes MAJOR issues to the point it crashes HomeAssistant even though I haven't clicked "Check configuration" in HA.
It just runs REALLY slow.

Is this normal?
I'm running it on 2 GHz CPU with 8GB of ram and on SSD drive.

raven dome
silver cypress
#

Must be doing something wrong...
I changed my yaml automation from:

automation: !include automations.yaml

to this:

automation: !include_dir_list yaml_automations/

Created folder under config directory named "yaml_automations" and put my YAML files there.

Nothing showed up in HA under automations.. So for fun, I created a new automation in HA GUI and it created a new file called "automations.yaml" (My old config way)...

#

in the /config folder BTW.

#

Oh, I didn't see this..

It is important to note that each file must contain only one entry when using !include_dir_list.

So maybe that's why. I just broke them up into mutliple files. So each file had about 10 Automatons. I would I have to break each Automation into 1 file! That seems like a pain! Hmm.