Netatmo setup errors

I Recently bought a netatmo during lowes’ last big sale and have not been able to get it connected with Home Assistant

Here is the error from the log:

2017-09-16 00:42:36 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform netatmo
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/sensor/netatmo.py", line 87, in setup_platform
    for module_name in data.get_module_names():
  File "/usr/src/app/homeassistant/components/sensor/netatmo.py", line 302, in get_module_names
    self.update()
  File "/usr/src/app/homeassistant/util/__init__.py", line 306, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/app/homeassistant/components/sensor/netatmo.py", line 315, in update
    self.data = self.station_data.lastData(exclude=3600)
  File "/usr/local/lib/python3.6/site-packages/smart_home/WeatherStation.py", line 111, in lastData
    lastD[module['module_name']] = ds.copy()
KeyError: 'module_name'

I followed the Docs and got the API and Secret keys from the Netatmo dev website, the app is activated.

It seems to be something wrong with your Netatmo module name in HA. You should name it exactly as it is in your https://my.netatmo.com/app/station

My station is working fine in HA with this setup:
In configuration.yaml I have…

netatmo:
  api_key: !secret netatmo_api_key
  secret_key: !secret netatmo_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_password
  discovery: false

…and in sensors.yaml (I use split configuration)

- platform: netatmo
  station: SPJTNSV15G  # this is the station name, exactly as in Netatmo app
  modules:
    ute-spjtnsv15g:  # this is the outdoor module name, exactly as in Netatmo app
      - temperature
      - humidity
      - rf_status
      - battery_vp
    inne-spjtnsv15g:  # this is the indoor module name, exactly as in Netatmo app
      - temperature
      - co2
      - pressure
      - noise
      - humidity
      - wifi_status

Setting up Netatmo in HA should be as easy as this. Good luck.

Disabling discovery and specifying all the sensor data did it.

Thanks!