Working config fails pre-restart check

This is an oddball to me… I don’t see anything wrong with the config, restarting by ^C and running again works fine, and yet Hass refuses to restart by service. I get a sizable error dump in the log:

17-02-21 20:34:22 ERROR (MainThread) [homeassistant.config] Testing configuration at /home/hass/.homeassistant
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component light.dragon_tech_in_wall_dimmer_level_26_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.aeotec_zw056_doorbell_gen5_switch_21_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.assa_abloy_yale_real_living_captouch_lever_lock_alarm_level_18_1
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.everspring_an157_plugin_appliance_module_switch_20_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component lock.assa_abloy_yale_real_living_captouch_lever_lock_locked_18_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.leviton_unknown_type1805_id0334_switch_14_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component light.leviton_unknown_type1706_id0334_level_19_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.everspring_an157_plugin_appliance_module_alarm_type_20_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.everspring_an157_plugin_appliance_module_alarm_level_20_1
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.assa_abloy_yale_real_living_captouch_lever_lock_alarm_type_18_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.leviton_unknown_type1805_id0334_switch_2_0
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.group.really_all_lights. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/loader.py", line 139, in get_component
    module = importlib.import_module(path)
  File "/srv/hass/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ImportError: No module named 'homeassistant.components.group.really_all_lights'; 'homeassistant.components.group' is not a package
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component group.really_all_lights
17-02-21 20:34:22 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.leviton_unknown_type1805_id0334_switch_8_0
Failed config
  General Errors: 
    - Platform not found: light.dragon_tech_in_wall_dimmer_level_26_0
    - Platform not found: switch.aeotec_zw056_doorbell_gen5_switch_21_0
    - Platform not found: sensor.assa_abloy_yale_real_living_captouch_lever_lock_alarm_level_18_1
    - Platform not found: switch.everspring_an157_plugin_appliance_module_switch_20_0
    - Platform not found: lock.assa_abloy_yale_real_living_captouch_lever_lock_locked_18_0
    - Platform not found: switch.leviton_unknown_type1805_id0334_switch_14_0
    - Platform not found: light.leviton_unknown_type1706_id0334_level_19_0
    - Platform not found: sensor.everspring_an157_plugin_appliance_module_alarm_type_20_0
    - Platform not found: sensor.everspring_an157_plugin_appliance_module_alarm_level_20_1
    - Platform not found: sensor.assa_abloy_yale_real_living_captouch_lever_lock_alarm_type_18_0
    - Platform not found: switch.leviton_unknown_type1805_id0334_switch_2_0
    - Platform not found: group.really_all_lights
    - Platform not found: switch.leviton_unknown_type1805_id0334_switch_8_0

Successful config (partial)

All those devices very much so exist, they show up in the entity list, and the offending group works perfectly normally… this is all Z-Wave stuff, if that makes any difference.

can you post your config itself. I thinking it has something to do with homeassistant.components.group.really_all_lights

It’s split out into a number of pieces. Here’s the groups.yaml:

group:
  really_all_lights:
    name: Lights
    entities:
      - light.leviton_unknown_type1706_id0334_level_19_0
      - light.dragon_tech_in_wall_dimmer_level_26_0
      - switch.leviton_unknown_type1805_id0334_switch_8_0
      - switch.everspring_an157_plugin_appliance_module_switch_20_0
  living_room:
    name: Living Room
    entities:
      - scene.living_room_dim
      - scene.living_room_bright
      - light.leviton_unknown_type1706_id0334_level_19_0
      - switch.leviton_unknown_type1805_id0334_switch_8_0
      - light.dragon_tech_in_wall_dimmer_level_26_0

check the rights and ownership on your yaml files.

All world-readable. Which reminds me, I should split out passwords somehow…

how did you set it up for autostart?

I’m not autostarting, I just manually start it in a screen session.

Many months and many versions later, the problem has only gotten worse. MUCH worse. The error-spam is now pretty impressive, and makes it difficult to pick out messages about ACTUAL problems with the config. Even simple input_boolean entities generate “not found” errors even though there’s necessarily nothing to be loaded at runtime to have them created. Am I really the only one seeing this problem?