core-2021.1.5
supervisor-2021.01.7
Home Assistant OS 5.10
IDEs
HassIO > core_configurator
Notepad++ > Lang:YAML
(using double space vs tab)
Hey guys, trying to organize my main config yaml file by following splitting_configuration/#example-include_dir_list but running into an error when I check with Server Controls > CHECK CONFIGURATION. Iβve read some search results but only pointed to formatting fixes, using 'on'
vs On
I get a Green check with this:
/config/configuration.yaml
input_number: !include house_heater.yaml
/config/house_heater.yaml
hh_day_mf_wake:
min: 60
max: 80
step: 2
But when I try to use !include_dir_list
I get an error.
Invalid config for [input_number]: expected dictionary for dictionary value @ data['input_number']. Got [OrderedDict([('hh_day_mf_wake', OrderedDict([('min', 60), ('max', 80), ('step', 2)]))])]. (See ?, line ?).
/config/configuration.yaml
input_number: !include_dir_list input_numbers/
/config/input_numbers/house_heater.yaml
hh_day_mf_wake:
min: 60
max: 80
step: 2
The example Iβm using is for automation: !include_dir_list automation/presence/
so not sure if thatβs just the limit of how it was coded and canβt be used for input_numbers
?
On another note, this is my first post and had to dig a little extra to find the [code][/code]
tags to make it look pretty(er). Would be nice if it was in the WYSIWYG editor like the preformatted and block buttons.