I’m trying to split my package configuration into separate files. For example, I’ve greatly shortened it to improve readability. Ultimately, I would like to have these four files as below, but I would like to include them as an entire directory rather than separate files (a series of “include” statements).
# File: packages/pack1/file1.yaml
input_boolean:
pack1_file1_sensor1:
icon: mdi:timer-play-outline
# File: packages/pack1/file2.yaml
input_boolean:
pack1_file2_sensor1:
icon: mdi:timer-play-outline
pack1_file2_sensor2:
icon: mdi:timer-play-outline
# File: packages/pack1/file3.yaml
template:
- binary_sensor:
- name: pack1_file3_sensor1
state: on
# File: packages/pack1/file4.yaml
template:
- binary_sensor:
- name: pack1_file4_sensor1
state: on
- name: pack1_file4_sensor2
state: on
It seems to me that the most appropriate configuration would be like this, but unfortunately, it’s not working correctly.
homeassistant:
packages:
pack1: !include_dir_merge_named packages/pack1
But only sensors from file2 and file4 are loaded. How can I do this correctly?