Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Splitting Configuration using packages

$
0
0

@Birdbrainuk wrote:

After using home assistant for around 3 years now I finally got to the point where my config file is now almost unmanageable and have decided to do an overhaul

Clearing out old commented out code and splitting the config.

I would like to do a folder structure to organise each of the components but just can’t get it to work.

I am using packages: !include_dir_named packages/ to do this.

If I put all my new .yaml files in the packages directory then they load and all seems good. But to my mind this is still not as un cluttered as it could be.

looking at the “packages” documents it looks like I should be able to add another level of folders under the packages folder

so I add for example folders called “lights” and “cameras” (the two I have done for now while i try to get it to work) and move the light.yaml and camera.yaml into there folders

Then I change the line from packages: !include_dir_named packages/ to packages: !include_dir_merge_named packages/

I run the configuration validation and I get this error

expected a dictionary for dictionary value @ data[‘packages’][‘light’]

Here is an example of each .yaml


camera:
  - platform: ffmpeg
    name: Rear Camera
    input: rtsp://xxx:xxx@xxx.xxx.x.xx:8554/profile0

  - platform: ffmpeg
    name: Front Camera
    input: rtsp://xxx:xxx@xxx.xxx.x.xx:8554/profile0

any ideas?

Posts: 5

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>