Netatmo Integration not working anymore since update to 0.116

Hi all! Our netatmo integration has stopped working this week.
It works fine with one home set up in the netatmo account, but as soon as I add a second home, it can not find any devices at all (even the first home’s devices are gone).
Several removals and re-addings later I can confirm that this is reproducible.
The same netatmo account works fine with OpenHAB, no problem there.
Any ideas?

Logger: homeassistant.components.sensor
Source: components/netatmo/sensor.py:248
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 13:23:01 (1 occurrences)
Last logged: 13:23:01

Error while setting up netatmo platform for sensor

Traceback (most recent call last): 
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform 
    await asyncio.shield(task) 
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 160, in async_setup_entry 
    async_add_entities(await find_entities(data_class_name), True) 
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 151, in find_entities 
    NetatmoSensor(data_handler, data_class_name, module, condition) 
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 248, in __init__ 
    self._device_name = module_info["station_name"] 
KeyError: 'station_name'


Logger: homeassistant
Source: helpers/temperature.py:23
First occurred: 11:48:14 (96 occurrences)
Last logged: 13:23:15

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 592, in _update_entity_states
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 283, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 322, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 175, in state_attributes
    ATTR_TEMPERATURE: show_temp(
  File "/usr/src/homeassistant/homeassistant/helpers/temperature.py", line 23, in display_temp
    raise TypeError(f"Temperature is not a number: {temperature}")
TypeError: Temperature is not a number: error

A fix for this is already in the working. Just waiting for an upstream release.

Please see: https://github.com/home-assistant/core/issues/41654

Great, thanks so much!

1 Like

Netatmo integration for smart valves control has stopped working.

After re-integrating Netatmo, only data from the Netatmo weather station will be displayed, but no climate devices.

  • I have weather station and smart valves in the account.
  1. I tried integration on another HA installation (same issue)

  2. different accounts (same issue)

  3. custom user_id from dev portal (same issue)

  4. finally tried check the Netatmo API call, which returns all devices correctly.

This is a really old thread. Non the less, a fix will land in 2021.5.1.

Hi,
Phew, this has been driving me crazy working out why Netatmo climate devices were unavailable.

I had been running Core 2021.3.4 previously where devices disappeared also.

Hope 2021.5.1 fixes! Thanks.