mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
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:
parent
d8f2232e86
commit
3e2886d1f7
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user