Netatmo in HA 0.105

Sadly the cloud link does not work.
My neatmo Sensors stopped updating values about two weeks ago.
Tried to remove and re add the integration.
Sadly it gets stuck at the Please wait, we are linking your account… nabucasa page.
About two weeks ago it could be re added but threw errors.

Would love to get Netatmo back.

This happened on two totally independent installations of HA

When I try to set it up with configuration.yaml it adds the integration but does not find sensors. This is in my log


First occurred: 1:18:21 (1 occurrences) 
Last logged: 1:18:21

Error while setting up netatmo platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 146, in async_setup_entry
    async_add_entities(await hass.async_add_executor_job(get_entities), True)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 142, in get_entities
    entities.extend(find_entities(data))
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 117, in find_entities
    all_module_infos = data.get_module_infos()
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 552, in get_module_infos
    return self.station_data.getModules()
  File "/usr/local/lib/python3.7/site-packages/pyatmo/weather_station.py", line 89, in getModules
    "module_name": m["module_name"],
KeyError: 'module_name'

This is a know issue and PR is already open for review.

I’ll put it on the list with low priority since it seems working fine except log spamming.

I just used your config straight up and works great.
Saved us allot of time =)

Thanks for sharing

1 Like

Hi! @cgtobi, have you already reimplemented public sensors?

The PR is open for review. Check the thread over there.

1 Like

Thank you! We’re waiting and hope, that they will come soon :slight_smile:

I’m using an NGINX reverse proxy in order to add SSL encryption, so what should I use for the base_url

Should I use the HTTP url or the HTTPS url?

THanks

To use NGINX in front of your HA instance all you need is a config like:

http:
  base_url: https://homeassistant.your.url
  use_x_forwarded_for: true
  trusted_proxies: 192.168.178.3  # IP of your NGINX proxy

Thanks, it seems to be connecting OK now, it just doesn’t seem to be trigger motion events form the Presence camera, but I need to do some more testing

Without more background info about your setup it is just guesswork. In general motion events trigger fine if things are set up correctly. Please check your netatmo dev account whether your webhooks are banned.

1 Like

Thanks again, I seem to have managed to get it working now, sorry for not supplying more info in my last post.

I simply had the automation set up incorrectly, I had ‘movement’ instead of ‘human’ for the event type. I re did the automation using the example from the docs and it’s triggering great now :slight_smile:

     trigger:
     - event_type: netatmo_event
       platform: event
         type: human 

Note to self, read the docs! :smiley:

1 Like

Thanks @cgtobi - I have the same issue as Malte83 with same error log - reestablishing the integration works, but sensors do not come back any ETA for a fix ? or a workaround until then ?

This one? It should be fixed in the current beta already.

Thanks, where can I get the beta ?

Depends on your setup. :slight_smile:

If you’re just running core you can simply python3 -m pip install --pre --upgrade homeassistant.

With a full HA setup with supervisor, I don’t know how to switch to the beta channel. It’s best to ask in the #beta channel on Discord.

Looks like I better go back to an old snapshot until this comes out of Beta otherwise I get in more trouble since I have the full HA setup on a rasberry

Going back would not help with this bug.

OK, looks like patience then until I get my Aircon back on when this becomes a regular release - furtunately no extreme wheater right now where it matters too much, thanks anyway for the quick reply

1 Like

OK, found Beta - actually very easy in GUI - and can confirm it fixes the bug - all Sensors are back - all with a different name, hence some NodeRed updates were required, but back up and running - thanks for fixing it, cheers

1 Like