From 816af711ad48a0a0e11b9c025cb738368f37ccd9 Mon Sep 17 00:00:00 2001 From: Fredrik <944065+fohlsso2@users.noreply.github.com> Date: Mon, 28 Dec 2020 19:56:58 +0100 Subject: [PATCH] example added for nesting automations (#16032) Co-authored-by: Franck Nijhof --- .../splitting_configuration.markdown | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/_docs/configuration/splitting_configuration.markdown b/source/_docs/configuration/splitting_configuration.markdown index 9dbc5abe9a7..8fec8bb86dc 100644 --- a/source/_docs/configuration/splitting_configuration.markdown +++ b/source/_docs/configuration/splitting_configuration.markdown @@ -477,4 +477,22 @@ front_yard: - camera.front_porch ``` +### Example: Combine `!include_dir_merge_list` with `automations.yaml` + +You want to go the advanced route and split your automations, but still want to be able to create automations in the UI? +In a chapter above we write about nesting `!includes`. Here is how we can do that for automations. + +Using labels like `manual` or `ui` allows for using multiple keys in the config: + +`configuration.yaml` + +```yaml + +# My own handmade automations +automation manual: !include_dir_merge_list automations/ + +# Automations I create in the UI +automation ui: !include automations.yaml +``` + [discord]: https://discord.gg/c5DvZ4e