Some newbie comments\questions. Chat GPT code fails more often than not so I am not going to include any. I know its frowned upon anyways. Couple things. With automations does a single automations.yaml file need to be created and all go into that file or can you have multiple automation files. Also, does anyone have one to reload an integration every x number of minutes? I started with one and it seems to get auto populated when creating new ones, unless I am wrong here. Many thanks
You can have multiple automation files. Here’s one way:
# configuration.yaml
automation manual: !include_dir_merge_list automations # a whole directory of yaml files at config/automations
automation ui: !include automations.yaml # one file for the UI editor automations, can also be edited in yaml
See:
Another popular option is packages. These allow you to bundle many integrations (e.g. automations, switches, binary sensors) all in the one file. So you could have a file for each room of your house that contains all the entities, automations and scripts used for that room.
I wrestle with how yaml needs to be properly formatted anyways so my preference would be to keep automations (not that I have many) separate. As to the 2nd part of my query I am just looking for something to reload an integration. Any ideas or links? I assume this would be fairly straight forward.
Under Settings->Automations I see that ones saved in the automations.yaml file can be run. How do you run the individual ones saved in the automations folder, to test?
I am trying to run this script via an automation, but it never seems to load. However, if I manually click on and reload things get reset. Here is the automation.