Input_Select in split-up configuration: Component failed to initialize

I’m trying to add the first input_selects to my configuration, and I’m getting the following error:

Setup failed for input_select: Component failed to initialize.

I’m using it in a split-up configuration like all of my other built-in components like switches, input_booleans, etc, so my configuration.yaml look like this:

binary_sensor: !include_dir_merge_list Binary_Sensors/
switch: !include_dir_merge_list Switches/
sensor: !include_dir_merge_list Sensors/
light: !include_dir_merge_list lights/
input_select: !include_dir_merge_list Input_Select/

I have a folder named “Input_Select” with a file named “Humidifier.yaml” in it. Humidifier.yaml has this inside:

humidifier_mist_mode:
  name: Humidifier Mist Modes
  options:
   - "One"
   - "Two"
   - "Three"
  initial: "One"
  icon: mdi:spray
humidifier_heater_mode:
  name: Humidifier Heater Modes
  options:
   - "Off"
   - "One"
   - "Two"
   - "Three"
  initial: "Off"
  icon: mdi:radiator

The indentation of my input_select looks the same as my input_booleans.yaml file, so I can’t tell what’s not working.
When I run the configuration checkers, it says everything is OK.

Anyone have any idea what’s wrong here? Is input_select just not compatible with a split configuration?

Not done it with input select but don’t you need to use hyphens with dir_merge_list?

- humidifier_mist_mode:
    name: Humidifier Mist Modes
    options:
     - "One"
     - "Two"
     - "Three"
    initial: "One"
    icon: mdi:spray
- humidifier_heater_mode:
    name: Humidifier Heater Modes
    options:
     - "Off"
     - "One"
     - "Two"
     - "Three"
    initial: "Off"
    icon: mdi:radiator

When I try that I get an error that it “expected a dictionary for dictionary value” value and got a “OrderedDict” (full error at bottom of post).

For my input_booleans I do not have to use the hyphens, it just looks like this, and works fine:

bedroom_light_trigged_by_button:
  name: Disable turning off bedroom nightstand light by button
keep_aux_bathroom_light_off:
  name: Disable turning on aux bathroom light immediately after turned off

But for components that need a platform defined, like lights, then I do have to use hyphens.

This is the error I get when using hyphens in the input_select:

Invalid config for [input_select]: expected a dictionary for dictionary value @ data['input_select']. 
Got [OrderedDict([('humidifier_mist_mode', OrderedDict([('name', 'Humidifier Mist Modes'), ('options', ['One', 'Two', 'Three']), ('initial', 'One'), ('icon', 'mdi:spray')]))]), OrderedDict([('humidifier_heater_mode', OrderedDict([('name', 'Humidifier Heater Modes'), ('options', ['Off', 'One', 'Two', 'Three']), ('initial', 'Off'), ('icon', 'mdi:radiator')]))])]. 
(See /config/configuration.yaml, line 104). 
Please check the docs at https://home-assistant.io/components/input_select/

try using “!include_dir_merge_named” instead of “!include_dir_merge_list”

1 Like

THANK YOU!

This solved my issue with the Input_select, Input_booleans, and timers!

Much appreciated.