Basic question to understand configuration.yaml & packages

Hi,

I’m splitting up my configuration for better overview and struggle a bit on the way how I had to add packages as in the doc (link):

homeassistant:
  packages: !include_dir_named packages

Especially the “home assistant:” “thing”. Why I had to do this? (indent package under homeassistant and not put it in a single line like other includes)
I thought "basic things like homeassistant: are in default_config: ?
Does it matter where I put this homeassistant: ? In the “Splitting up the configuration”-Doc its typically show on the topmost line ?
(I’ll attach my configuration.yaml at the end of this post)

Also: To me the packages look very elegant to split up. Can I use this also for automations that are not done by the UI?
(or should I better use a “automation block as explained here in the doc”?)

And finały (in addition to “check configuration”) is there a possibility to look at the assembled config after all includes (and with secrets) ?

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

###   mhoff below
# Load config files https://www.home-assistant.io/docs/configuration/splitting_configuration/
recorder:
  purge_keep_days: 32

notify: !include notify.yaml
panel_custom: !include panel_custom.yaml # https://smarterkram.de/1862/

# custom packages - https://www.home-assistant.io/docs/configuration/packages/
homeassistant:
  packages: !include_dir_named packages

zha:
  custom_quirks_path: /config/custom_zha_quirks/

zha_toolkit:

wake_on_lan:

Because packages is part of homeassistant, and not an integration. This is how the YAML has to be formatted.

Sure, but you’re changing a default (the default is that there’s no packages), so you have to specify the whole YAML construct.

No, the order doesn’t matter, as long as the construct is correct.

Yes, that’s what I do with mine.

4 posts were split to a new topic: Problems with packages