Netatmo is suddenly dead

Did this start to fail right after the update? What version did you update from?

Same here, I updated to 2021.11.5 → 2021.12.3 on the 15th of December

Edit: Tried to remove and re-add the integration and now it won’t let me re-add it any more. I get this error:

Aborted
The component is not configured. Please follow the documentation.

Edit 2:
I was missing some lines in configuration.yml for netatmo. Re-added after re-entering the lines and now it works again.

Mine has stated working again after about a day, without me doing anything to it.

Not a lot of help i know, but i do not know what killed it and what brought it back to life.

Hi,
I was upgrade my HA on version 2021.12.5. but my Radiator Valves was not function, I deleted integration and install again, but now I see only Weather station. Valves was not add. Secrets in configuration.yaml I have.

In version 2021.11.5. was all right.

Hi,

I’ve the same issue, but with the smart indoor camera. Not found anymore, nothing changed after the upgrade to 2021.12.5

It’s working perfectly fine in the Netatmo app.

Try to reboot the camera, and after 10 min a reboot of HA… does this work?

1 Like

In general, if something stops working that did work before turn the log level for the integration to debug and restart HA or the integration. Watch the logs for the device/service in question and feel free to tag me for Netatmo related issues.

Hi, I have the same problem, the integration is activated but the thermostat no longer sees me.

2021-12-27 23:51:32 INFO (MainThread) [homeassistant.components.netatmo.data_handler] Netatmo webhook successfully registered
2021-12-27 23:51:32 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device data available
2021-12-27 23:51:32 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Data class AsyncHomeCoachData added
2021-12-27 23:52:02 DEBUG (MainThread) [homeassistant.components.netatmo.light] Adding camera lights []

Did you try to reboot the camera(s)? In my case it helps!

1 Like

Thanks all - reboting the cameras and then HA worked!

1 Like

I have tried several times with the reboot, I have also tried to delete and recreate the instance, but it authenticates me, but the smart thermostat does not see me.
If I make manual changes to the thermostat, I see the answers in the logs.

Please gather some data from dev.netatmo.com and send it to me via PM.

Hi, may I ask you, the difference between user_id and home_id. This is because when I try to do a get / homestatus and use the user_id that I find in the debug log, when I configure the service, nothing returns. If, on the other hand, I take the home_id value that I find myself in the log after a change in the thermostat, then it returns the complete json.

{
body:{
homes:[
{
id:"XXXXXXXX"
name:"La mia abitazione"
altitude:13
coordinates:[
XXXXXX
XXXXXX
]
country:"IT"
timezone:"Europe/Rome"
rooms:[
{
id:"XXXXXXX"
name:"Salone"
type:"livingroom"
module_ids:[
"XX:00:00:5e:57:XX"
]
}
]
modules:[
{
id:"XX:ee:50:5e:04:XX"
type:"NAPlug"
name:"Relè"
setup_date:1603105672
modules_bridged:[
"XX:00:00:5e:57:XX"
]
}
{
id:"XX:00:00:5e:57:XX"
type:"NATherm1"
name:"Termostato"
setup_date:1603105673
room_id:"XX95523XX"
bridge:"XX:ee:50:5e:04:XX"
}
]
temperature_control_mode:"heating"
therm_mode:"schedule"
therm_setpoint_default_duration:90
cooling_mode:"schedule"
schedules:[
{
timetable:[
{
m_offset:0
zone_id:1
}
{
m_offset:420
zone_id:3
}
{
m_offset:450
zone_id:0
}
{
m_offset:480
zone_id:4
}
{
m_offset:1140
zone_id:0
}
{
m_offset:1290
zone_id:3
}
{
m_offset:1320
zone_id:1
}
{
m_offset:1860
zone_id:3
}
{
m_offset:1890
zone_id:0
}
{
m_offset:1920
zone_id:4
}
{
m_offset:2580
zone_id:0
}
{
m_offset:2730
zone_id:3
}
{
m_offset:2760
zone_id:1
}
{
m_offset:3300
zone_id:3
}
{
m_offset:3330
zone_id:0
}
{
m_offset:3360
zone_id:4
}
{
m_offset:4020
zone_id:0
}
{
m_offset:4170
zone_id:3
}
{
m_offset:4200
zone_id:1
}
{
m_offset:4740
zone_id:3
}
{
m_offset:4770
zone_id:0
}
{
m_offset:4800
zone_id:4
}
{
m_offset:5460
zone_id:0
}
{
m_offset:5610
zone_id:3
}
{
m_offset:5640
zone_id:1
}
{
m_offset:6180
zone_id:3
}
{
m_offset:6210
zone_id:0
}
{
m_offset:6240
zone_id:4
}
{
m_offset:6900
zone_id:0
}
{
m_offset:7050
zone_id:3
}
{
m_offset:7080
zone_id:1
}
{
m_offset:7620
zone_id:3
}
{
m_offset:7650
zone_id:0
}
{
m_offset:8490
zone_id:3
}
{
m_offset:8520
zone_id:1
}
{
m_offset:9060
zone_id:3
}
{
m_offset:9090
zone_id:0
}
{
m_offset:9930
zone_id:3
}
{
m_offset:9960
zone_id:1
}
]
zones:[
{
type:0
id:0
rooms_temp:[
{
room_id:"XX95523XX"
temp:19
}
]
rooms:[
{
id:"XX95523XX"
therm_setpoint_temperature:19
}
]
}
{
type:1
id:1
rooms_temp:[
{
room_id:"XX95523XX"
temp:16
}
]
rooms:[
{
id:"XX95523XX"
therm_setpoint_temperature:16
}
]
}
{
type:8
id:3
rooms_temp:[
{
room_id:"XX95523XX"
temp:19
}
]
rooms:[
{
id:"XX95523XX"
therm_setpoint_temperature:19
}
]
}
{
type:5
id:4
rooms_temp:[
{
room_id:"XX95523XX"
temp:16
}
]
rooms:[
{
id:"XX95523XX"
therm_setpoint_temperature:16
}
]
}
]
default:true
away_temp:12
hg_temp:7
id:"XXXX"
selected:true
type:"therm"
}
]
}
]
user:{
email:"[email protected]"
language:"it-IT"
locale:"it-IT"
feel_like_algorithm:0
unit_pressure:0
unit_system:0
unit_wind:0
id:"XXX"
}
}
status:"ok"
time_exec:0.027791976928710938
time_server:1640960784
}
Response headers
{
cache-control:"no-cache, must-revalidate"
content-type:"application/json; charset=utf-8"
expires:"0"
}

Here is my log.

Logger: homeassistant.components.select
Source: components/netatmo/data_handler.py:154
Integration: Select (documentation, issues)
First occurred: 10:32:44 (1 occurrences)
Last logged: 10:32:44

Error while setting up netatmo platform for select
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/select.py", line 40, in async_setup_entry
    await data_handler.register_data_class(
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 198, in register_data_class
    await self.async_fetch_data(data_class_entry)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 154, in async_fetch_data
    await self.data[data_class_entry].async_update()
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 495, in async_update
    self.publish()
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 473, in publish
    self.subscriptions[home_id](home)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 314, in process_topology
    self.homes[self.home_id] = NetatmoHome(raw_data=raw_data)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 81, in __init__
    self.schedules = {
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 82, in <dictcomp>
    s["id"]: NetatmoSchedule(home_id=self.entity_id, raw_data=s)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 226, in __init__
    self.name = raw_data["name"]
KeyError: 'name'

Now I created new API and rewrite in configuration.yaml … after this, I was restart HA a resetting integration …

Logger: homeassistant.components.climate
Source: components/netatmo/climate.py:149
Integration: Klima (documentation, issues)
First occurred: 18:50:48 (1 occurrences)
Last logged: 18:50:48

Error while setting up netatmo platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/climate.py", line 149, in async_setup_entry
    for room in climate_state.homes[home_id].rooms.values():
KeyError: '5fda4b85ee66b13e1309a5b2'

Well, to query /homesdata you don’t need to pass anything and for /homestatus you only need to pass the home_id, therefore I don’t understand your question.

1 Like

This issue has been fixed upstream and should be part of HA 2021.12.8.

1 Like

OK, I will waiting for next release :slight_smile: Thanks.

Problem solved. Thanks. :slightly_smiling_face:

1 Like

Same here - Netatmo webhook does not work anymore!

Logger: homeassistant.components.select
Source: components/netatmo/select.py:122
Integration: Auswählen ([documentation](https://www.home-assistant.io/integrations/select), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+select%22))
First occurred: 11. Januar 2022, 15:23:23 (1 occurrences)
Last logged: 11. Januar 2022, 15:23:23

Error while setting up netatmo platform for select

Traceback (most recent call last): 
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task) 
File "/usr/src/homeassistant/homeassistant/components/netatmo/select.py", line 65, in async_setup_entry 
entities = [ 
File "/usr/src/homeassistant/homeassistant/components/netatmo/select.py", line 66, in <listcomp> 
NetatmoScheduleSelect( 
File "/usr/src/homeassistant/homeassistant/components/netatmo/select.py", line 122, in __init__ 
self._attr_current_option = getattr(self._home.get_selected_schedule(), "name") 
AttributeError: 'NoneType' object has no attribute 'name'