Sensor Netatmo not working anymore since 0.22.0

After the update to 0.22.0 my sensor block does not work anymore.
It used to work with <0.22.0, I changed nothing since then.
The only error I read in log is regarding Netatmo but no sensor at all is listed in fronend.

This is the log entry:
> 16-06-19 07:48:35 homeassistant.components.netatmo: Missing required configuration items in netatmo: api_key, username, password, secret_key
> 16-06-19 07:48:35 homeassistant.bootstrap: component netatmo failed to initialize
> 16-06-19 07:48:35 homeassistant.bootstrap: Unable to prepare setup for platform sensor.netatmo because dependency netatmo could not be initialized
> 16-06-19 07:48:38 homeassistant.components.netatmo: Missing required configuration items in netatmo: api_key, username, password, secret_key
> 16-06-19 07:48:38 homeassistant.bootstrap: component netatmo failed to initialize
> 16-06-19 07:48:38 homeassistant.bootstrap: Unable to prepare setup for platform sensor.netatmo because dependency netatmo could not be initialized

Here is my (Netatmo) config part:

  - platform: netatmo
    api_key: something
    secret_key: anything
    username: me
    password: pw
    modules:
      Inside:
        - temperature
        - humidity
        - noise
        - pressure
        - co2
      Outside:
        - temperature
        - humidity
      RainGauge:
        - rain
        - sum_rain_1
        - sum_rain_24

Can someone please confirm this is a bug or give me a hint how to solve.

Thanks, Tom.

The change log contains a breaking change for netatmo

I am getting the same error after configuring it according to the new changes.
A more detailed error log:

Jun 26 01:08:39 odroid-u2 hass[2514]: 16-06-26 01:08:39 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform netatmo
Jun 26 01:08:39 odroid-u2 hass[2514]: Traceback (most recent call last):
Jun 26 01:08:39 odroid-u2 hass[2514]:   File "/usr/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
Jun 26 01:08:39 odroid-u2 hass[2514]:     discovery_info)
Jun 26 01:08:39 odroid-u2 hass[2514]:   File "/usr/lib/python3.5/site-packages/homeassistant/components/sensor/netatmo.py", line 48, in setup_platform
Jun 26 01:08:39 odroid-u2 hass[2514]:     if module_name not in data.get_module_names():
Jun 26 01:08:39 odroid-u2 hass[2514]:   File "/usr/lib/python3.5/site-packages/homeassistant/components/sensor/netatmo.py", line 135, in get_module_names
Jun 26 01:08:39 odroid-u2 hass[2514]:     return self.data.keys()
Jun 26 01:08:39 odroid-u2 hass[2514]: AttributeError: 'NoneType' object has no attribute 'keys'

OK, updated my config according to changes. Now I see all Netatmo readings again :slight_smile:
But also get exact the same errors as mentionned by @siam28.
In addition it seems, not all readings are implemented yet:

16-06-26 07:28:54 homeassistant.core: WorkerPool:All 10 threads are busy and 31 jobs pending
16-06-26 07:28:57 homeassistant.bootstrap: Attempt made to setup netatmo during setup of netatmo
16-06-26 07:28:57 homeassistant.bootstrap: Unable to prepare setup for platform sensor.netatmo because dependency netatmo could not be initialized
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “wifi_status” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “battery_vp” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “min_temp” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “max_temp” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “battery_vp” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “rf_status” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “WindAngle” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “WindStrength” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “GustAngle” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “GustStrength” does not exist
16-06-26 07:28:58 homeassistant.components.sensor.netatmo: Sensor type: “rf_status” does not exist
16-06-26 07:28:59 homeassistant.components.camera: Error while setting up platform netatmo
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py”, line 98, in _setup_platform
discovery_info)
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/netatmo.py”, line 32, in setup_platform
for camera_name in data.get_camera_names():
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/netatmo.py”, line 90, in get_camera_names
self.update()
File “/usr/local/lib/python3.4/dist-packages/homeassistant/util/init.py”, line 289, in wrapper
result = method(*args, **kwargs)
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/netatmo.py”, line 104, in update
self.welcomedata = lnetatmo.WelcomeData(self.auth)
File “/home/pi/.homeassistant/deps/lnetatmo.py”, line 304, in init
self.default_home = list(self.homes.values())[0][‘name’]
IndexError: list index out of range

My Config:

  • platform: netatmo
    station: netatmo
    modules:
    Inside:
    - temperature
    - humidity
    - noise
    - pressure
    - co2
    - wifi_status
    Outside:
    - temperature
    - humidity
    - battery_vp
    - min_temp
    - max_temp
    RainGauge:
    - rain
    - sum_rain_1
    - sum_rain_24
    - battery_vp
    - rf_status
    WindGauge:
    - WindAngle
    - WindStrength
    - GustAngle
    - GustStrength
    - rf_status

You need to share the config you’re using (user/pass redacted obviously) or else no one will be able to help.

Are you following the config from the docs? https://home-assistant.io/components/sensor.netatmo/

All sensors seem to be there.

Sorry, added config excerpt to my previous post…

This problem seems to be resolved. I made sure the case matches for the module names (don’t know if that mattered), and I removed all measurements that I know I didn’t have.

Thanks, I can confirm it as solved.

Two problems here:

Home assistant don’t find noise.
I need to creat 3 sensors for each one:
Module
Station
Raing Gauge

If i use:

platform: netatmo
station: netatmo
modules:
Inside:

  • temperature
  • humidity
  • noise
  • pressure
  • co2
  • wifi_status
    Outside:
  • temperature
  • humidity
  • battery_vp
  • min_temp
  • max_temp
    RainGauge:
  • rain
  • sum_rain_1
  • sum_rain_24
  • battery_vp
  • rf_status
    WindGauge:
  • WindAngle
  • WindStrength
  • GustAngle
  • GustStrength
  • rf_status

in one sensor the home assistant only recognize the first module.

Anyone knows the cause of this two problems?

Hi, sorry for the stupid question but did you change the module names to fit your names?
Inside, Outside, RainGauge and WindGauge are my defined names (in the app in settings/netatmo).
Apart from that this is my current working HASS config, maybe things changed since 0.22.0:

  • platform: netatmo
    station: netatmo
    modules:
    Inside:
    - temperature
    - humidity
    - noise
    - pressure
    - co2
    - wifi_status
    Outside:
    - temperature
    - humidity
    - battery_vp
    - min_temp
    - max_temp
    RainGauge:
    - rain
    - sum_rain_1
    - sum_rain_24
    - battery_vp
    - rf_status
    WindGauge:
    - WindAngle
    - WindStrength
    - GustAngle
    - GustStrength
    - rf_status

Yes, i try with standard names and with my own names.

Hi,
I have same problem. :frowning:

Jakub

Hey there, I had the same issue and spent quite some time trying to find out where my mistake was: for me it was overlooking a simple thing, the login token!
I actually had to go to http://dev.netatmo.com/dev/myaccount and reset the app’s credentials, enter them again in secrets.yaml, then at next connection BAM! everything back to normal (welcome still throws out an error but at least all is now connected).
Hoping it will save someone else the headache!
M