core: Netatmo integration failing to set up - NLunknown

The problem

Netatmo integration fails to setup. Installing the integration is successful, authentication is successful, but on the HA Integrations page the Netatmo item is highlighted in red and the text “Failed to set up” exists. I tried uninstalling and reinstalling the integration but its always the same result.

What version of Home Assistant Core has the issue?

2022.10.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Netatmo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/netatmo

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/netatmo/data_handler.py:199
First occurred: November 1, 2022 at 7:45:19 PM (3 occurrences)
Last logged: 8:31:15 AM

Error setting up entry Home Assistant Cloud for netatmo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/__init__.py", line 164, in async_setup_entry
    await data_handler.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 151, in async_setup
    await self.subscribe(ACCOUNT, ACCOUNT, None)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 243, in subscribe
    await self.async_fetch_data(signal_name)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 199, in async_fetch_data
    await getattr(self.account, self.publisher[signal_name].method)(
  File "/usr/local/lib/python3.10/site-packages/pyatmo/account.py", line 69, in async_update_topology
    self.process_topology()
  File "/usr/local/lib/python3.10/site-packages/pyatmo/account.py", line 58, in process_topology
    self.homes[home_id] = Home(self.auth, raw_data=home)
  File "/usr/local/lib/python3.10/site-packages/pyatmo/home.py", line 48, in __init__
    self.modules = {
  File "/usr/local/lib/python3.10/site-packages/pyatmo/home.py", line 49, in <dictcomp>
    module["id"]: getattr(modules, module["type"])(
AttributeError: module 'pyatmo.modules' has no attribute 'NLunknown'

Additional information

I’ve seen other similar issues reported where the solution was to reboot cameras, or replace the SD card, but I do not have any cameras. I have three lights, one wireless dimmer switch, and one plug in my Legrand Home+ Control app.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 27 (10 by maintainers)

Most upvoted comments

Now i see, it’s a device plug into my gas meter. I completely forgot about it !

https://particuliers.engie.fr/gaz-naturel/contrat-gaz-naturel/mon-pilotage-installation.html

{
id:"0d:00:00:xx:xx:xx"
type:"EBU"
battery_state:"high"
battery_level:3366
firmware_revision:8
rf_strength:74
reachable:true
bridge:"70:ee:50:xx:xx:xx"
}

Thanks for the quick response! Please let me know if you need any additional info from my setup, or want me to test something.