core: Legrand Netatmo integration doesn't work

The problem

Installed Legrand installation to allow integration of Legrand with Netatmo devices; integration not working on my system.

I have the application configured at dev.netatmo.com using the same login credentials as my Netatmo Gateway.

What version of Home Assistant Core has the issue?

2022.10.5

What was the last working version of Home Assistant Core?

2022.10.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Legrand

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?

2022-10-24 21:26:53.942 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home Assistant Cloud for netatmo
File "/usr/src/homeassistant/homeassistant/components/netatmo/__init__.py", line 164, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 151, in async_setup
File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 243, in subscribe
File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 199, in async_fetch_data

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 30 (11 by maintainers)

Most upvoted comments

Thanks for reporting this issue. A fix is on the way. Waiting for review and a new pyatmo release.

Hi guys, I installed Custom component over HACS.

  • roller shutters absolutely perfect with stop Button !!! AMAZIMG.
  • dimmer lights OK,
  • plugs OK,
  • missing lights over micromodul (legrand nr. 064888).
  • missing scenario switchces.

Do you pland add micromodul and scenario buttons?

I will test Next days.

@cgtobi Thank you very much for integration. Perfect work.

@cgtobi works perfectly for me using the custom integration. Thanks a lot !

@cgtobi Thank you for the info and thank you very much for your work.

Thank you for the fast info. I will wait for the next update 😃

Looks like I missed a NLUI device class. I’ll implement this ASAP.

Logger: homeassistant.config_entries Source: components/netatmo/data_handler.py:199 First occurred: October 24, 2022, 9:38:27 PM (7 occurrences) Last logged: October 24, 2022, 10:13:43 PM

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 ‘NLUI’

My log with integration (which doesn’t work) look quite similar:

2022-10-23 19:24:17.761 INFO (SyncWorker_1) [homeassistant.loader] Loaded netatmo from homeassistant.components.netatmo 2022-10-25 16:10:16.115 INFO (MainThread) [homeassistant.setup] Setting up netatmo 2022-10-25 16:10:16.115 INFO (MainThread) [homeassistant.setup] Setup of domain netatmo took 0.0 seconds 2022-10-25 16:10:17.593 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home Assistant Cloud for netatmo File “/usr/src/homeassistant/homeassistant/components/netatmo/init.py”, line 164, in async_setup_entry File “/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py”, line 151, in async_setup File “/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py”, line 243, in subscribe File “/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py”, line 199, in async_fetch_data

Logger: homeassistant.config_entries Source: components/netatmo/data_handler.py:199 First occurred: 16:10:17 (2 occurrences) Last logged: 16:10:23

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)( AttributeError: module ‘pyatmo.modules’ has no attribute ‘NLunknown’