tail: home-assistant.log: file truncated
16-12-22 20:30:00 homeassistant.bootstrap: Error during setup of component netatmo
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/homeassistant/bootstrap.py", line 151, in _async_setup_component
None, component.setup, hass, config)
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/netatmo.py", line 53, in setup
config[DOMAIN][CONF_API_KEY], config[DOMAIN][CONF_SECRET_KEY],
KeyError: 'netatmo'
16-12-22 20:30:00 homeassistant.bootstrap: Component netatmo failed to setup
16-12-22 20:30:00 homeassistant.bootstrap: Unable to prepare setup for platform sensor.netatmo because dependency netatmo could not be initialized
So on the surface it would appear that I have somehow pasted in an incorrect api key or client secret. I have ruled this out as best as a guy can.
I have tried inputting the redacted stuff in both my secrets file and also in the config file itself.
I have followed those instructions alright. The Netatmo website has changed a little but the data you need to set up is still the same (I think).
Thanks nonetheless.
Issue was that I had tried to set up the Netatmo component and all the individual sensors under the one block, instead of setting up the Netatmo component and then having the sensors under the sensor block.
So I was working from the errors that were getting kicked there, which happened to be for the next component under the Netatmo block.
Unfortunately they are mainly gone from the buffer and the ones I have are non specific
16-12-22 21:47:29 ERROR (Thread-1) [homeassistant.util.yaml] while parsing a block mapping
in "/home/knock/.homeassistant/configuration.yaml", line 238, column 3
expected <block end>, but found '<block sequence start>'
in "/home/knock/.homeassistant/configuration.yaml", line 244, column 7
16-12-22 19:48:04 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [netatmo]: [modules] is an invalid option for [netatmo]. Check: netatmo->netatmo->modules. (See /home/knock/.homeassistant/configuration.yaml:166). Please check the docs at https://home-assistant.io/components/netatmo/
Once I got a bit closer I ended up on a Github bug report which suggested setting up the Netatmo component in the way I posted above.
17-03-26 02:21:58 INFO (MainThread) [homeassistant.loader] Loaded netatmo from homeassistant.components.netatmo
17-03-26 02:21:59 INFO (MainThread) [homeassistant.setup] Setting up netatmo
17-03-26 02:22:01 ERROR (Thread-1) [homeassistant.components.netatmo] Unable to connect to Netatmo API
17-03-26 02:22:01 ERROR (MainThread) [homeassistant.setup] Setup failed for netatmo: Component failed to initialize.
I have the same error as @Doug_Smith, here’s my logs:
2017-08-10 19:17:42 ERROR (SyncWorker_7) [homeassistant.components.netatmo] Unable to connect to Netatmo API
2017-08-10 19:17:42 ERROR (MainThread) [homeassistant.setup] Setup failed for netatmo: Component failed to initialize.
2017-08-10 19:17:42 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of climate.netatmo. Setup failed for dependencies: netatmo
2017-08-10 19:17:42 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate.netatmo: Could not setup all dependencies.
Here’s the revelants sections in my config (I only have a thermostat so I don’t mind displaying everything):
I had the same error as @guillaume86 and @Doug_Smith. It started working after I clicked on the “Activate” button in the “App Status” panel. It’s below the technical parameters where you can also find your client ID and client secret.
I guess Netatmo changed their developer portal and added this functionality. The screenshots in the documentation of the Netatmo component are from the previous version of the developer portal.
Click on the big “Create your app”-button at the right on the screen.
Now, when you se the form, scroll upp to the app you’ve created before in order to make Netatmo work with Hass. You will se that “app” just above the form.
Click on that app.
On this new page, scroll down to the row with “APP STATUS” on the left.
Klick on the big yellow “Activate” button on the same row.
Maybe you have to restart Hass, don’t remember.
That’s how I got it working again without changing anything in my Hass-config.
(Please click on the heart if this was of any help for you).