Not working after upgrade to Home Assistant 2021.5.0

After upgrade to Home Assistant 2021.5.0 integration to NetAtmo climate stop working with the following message in log:

Logger: homeassistant.components.netatmo
Source: components/netatmo/init.py:185
Integration: Netatmo (documentation, issues)
First occurred: 10:06:32 AM (1 occurrences)
Last logged: 10:06:32 AM

Error during webhook registration - 400 - Bad request - Allowed ports for webhooks are 80, 88, 443 and 9443. (21) when accessing ‘https://api.netatmo.com/api/addwebhook

Anyone can help me?

Thanks
Stefano

My Netatmo integration also stopped working, but I don’t have that message.

Actually it seems the webhooks worked on my side. My HA is open on port 443 so maybe that’s the reason.

There’s a warning on the logs about the netatmo camera but it might be normal because I don’t have any, just the thermostat. Also there is an error at the end but I can’t find out if it’s related to netatmo or not.

My relevant log entries:

2021-05-07 11:02:14 INFO (SyncWorker_1) [homeassistant.loader] Loaded climate from homeassistant.components.climate
2021-05-07 11:02:14 INFO (MainThread) [homeassistant.components.light] Setting up light.netatmo
2021-05-07 11:02:14 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.netatmo
2021-05-07 11:02:14 INFO (MainThread) [homeassistant.setup] Setting up climate
2021-05-07 11:02:14 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 0.0 seconds
2021-05-07 11:02:14 INFO (MainThread) [homeassistant.components.climate] Setting up climate.netatmo
2021-05-07 11:02:14 INFO (MainThread) [homeassistant.setup] Setup of domain camera took 0.0 seconds
2021-05-07 11:02:14 INFO (MainThread) [homeassistant.components.camera] Setting up camera.netatmo
2021-05-07 11:02:14 WARNING (MainThread) [homeassistant.components.camera] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2021-05-07 11:02:17 INFO (MainThread) [homeassistant.components.netatmo] Register Netatmo webhook: [[redacted]]
2021-05-07 11:02:17 INFO (MainThread) [homeassistant.components.netatmo.data_handler] Netatmo webhook successfully registered
2021-05-07 11:02:43 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
resp, reset = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'

Netatmo have changed something at their end, unrelated to the Home Assistant update. It’s dropped out of my SmartThings setup as well.

1 Like

Actually I tried rolling back to 2021.4.2 (or, well, the previous one) and it’s not working so your comment makes total sense.

Perfect timing though. :sweat_smile:

My HA is working on port 8123 but i’ve also forwarded port 443 …

The problem arise after HA upgrade to 2021.5.0.

I’m using the container distribution for RPi4.

thanks in advance for any suggestion.
Regards
Stefano

Have you confirmed its works if you rollback to your previous version as someone above your post indicates it happens on previous version also.

Rolling back will not work, Netamo changed stuff on their side which impact climate devices

3 Likes

A fix will land in 2021.5.1

1 Like

@cgtobi, thanks a lot, 2021.5.1 works fine.

thanks
Stefano

1 Like