one more example of configuring packages folder (#11971)

* one more example of configuring packages folder

I thought it's useful to have a real example of what's possible to achieve.

* ✏️ Tweaks

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
akasma74 2020-02-05 09:16:11 +00:00 committed by GitHub
parent d8f2232e86
commit 3e2886d1f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,24 @@ homeassistant:
This uses the concept splitting the configuration and will include all files in a directory with the keys representing the filenames.
See the documentation about [splitting the configuration](/docs/configuration/splitting_configuration/) for more information about `!include_dir_named` and other include statements that might be helpful. The benefit of this approach is to pull all configurations required to integrate a system, into one file, rather than across several.
The following example allows to have subfolders in the `packages` folder, which could make managing multiple packages easier by grouping:
```yaml
homeassistant:
packages: !include_dir_merge_named packages/
```
and in `packages/subsystem1/functionality1.yaml`:
```yaml
subsystem1_functionality1:
input_boolean:
...
binary_sensor:
...
automation:
```
### Customizing entities with packages
It is possible to [customize entities](/docs/configuration/customizing-devices/) within packages. Just create your customization entries under: