I've written a new sensor to work with my efergy energy monitor, but I'm new to Home Assistant and to YAML configs in general , so I'm not quite sure how to write the config for one particular part (I'm a python beginner too for that matter, so I'm excited to have gotten this far!). My config currently works like this:
That configuration, however, doesn't seem to be parsable, as it results in the following when I try to start up homeassistant:
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/src/home-assistant/homeassistant/__main__.py", line 154, in <module>
main()
File "/usr/src/home-assistant/homeassistant/__main__.py", line 137, in main
hass = bootstrap.from_config_file(config_path)
File "/usr/src/home-assistant/homeassistant/bootstrap.py", line 181, in from_config_file
config_dict = config_util.load_config_file(config_path)
File "/usr/src/home-assistant/homeassistant/config.py", line 112, in load_config_file
return load_yaml_config_file(config_path)
File "/usr/src/home-assistant/homeassistant/config.py", line 147, in load_yaml_config_file
conf_dict = parse(config_path)
File "/usr/src/home-assistant/homeassistant/config.py", line 132, in parse
raise HomeAssistantError()
homeassistant.HomeAssistantError