Hey all,
after restarting mit Hass.io Pi (0.87) my Sensors didn’t work anymore.
I use sensor: !include_dir_merge_list sensors/ to include a bunch of yaml files
but everytime i test the configuration I get an error. To solve the problem I have deleted this entry and tried
to load only one sensor via the configuration yaml.
I’ve used this:
sensor:
- platform: yr
But this didnt work too 0o.
This here ist the error message I get:
Invalid config for [sensor]: required key not provided @ data[‘id’]. Got None required key not provided @ data[‘secret’]. Got None required key not provided @ data[‘username’]. Got None. (See /config/configuration.yaml, line 53). Please check the docs at Sensor - Home Assistant
Does anybody have a cllue for me?! I don’t know how to solve this.
Thanks in advance!
But it only occours if I activate a sensor in my configuration.yaml and it shows another line number in the error message if I move the sensor configuration inside the file.
Okay thanks for your help!
When I’m only using the yr sensor I get the following error:
Invalid config for [sensor]: required key not provided @ data[‘id’]. Got None required key not provided @ data[‘secret’]. Got None required key not provided @ data[‘username’]. Got None. (See /config/configuration.yaml, line 44). Please check the docs at Sensor - Home Assistant
Oh no. I’ve found the problem. Inside my custom_components folder was a file called sensor.py.
I placed it in there by accident it should be in one of the subfolders. After I delted the file and restarted the Pi everything works fine. Sorry to bother you. An error in the home-assistant.log hinted me the problem. Thank you very much again. You guys are awesome!