Closed dandelor closed 3 years ago
Please set debug logging for the netatmo integration and restart HA.
Example:
logger:
# default: warning
logs:
homeassistant.components.netatmo: debug
Nothing showed in the log. I think this makes sense given that the integration is never added to HA, given that once it redirect me to the Netatmo website, then nothing happens to HA.
Btw, this is what I added to the configuration file:
logger:
default: warning
logs:
homeassistant.components.netatmo: debug
If I comment the ‘default: warning’ the log has tons of lines debugging other components and is unreadable.
The log shows this error, but I do not think it is related to Netatmo
2020-12-16 03:18:14 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 57, in _handle
return await self._handle_request(request, token, path)
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 121, in _handle_request
source_header = _init_header(request, token)
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 189, in _init_header
connected_ip = ip_address(request.transport.get_extra_info("peername")[0])
TypeError: 'NoneType' object is not subscriptable
2020-12-16 03:18:14 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 57, in _handle
return await self._handle_request(request, token, path)
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 121, in _handle_request
source_header = _init_header(request, token)
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 189, in _init_header
connected_ip = ip_address(request.transport.get_extra_info("peername")[0])
TypeError: 'NoneType' object is not subscriptable
2020-12-16 03:18:14 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 57, in _handle
return await self._handle_request(request, token, path)
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 121, in _handle_request
source_header = _init_header(request, token)
File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 189, in _init_header
connected_ip = ip_address(request.transport.get_extra_info("peername")[0])
TypeError: 'NoneType' object is not subscriptable
Solved using a different web browser. @cgtobi you can close the issue
Out of curiosity, what were you using? Safari on iOS?
Chrome on iOS (iPhone)
The one that was successful or the one that failed?
The one that failed.
The one successful was chrome on windows on a notebook.
Il giorno mer 16 dic 2020 alle 22:12 Tobias Sauerwein < notifications@github.com> ha scritto:
The one that was successful or the one that failed?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/44178#issuecomment-747026253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5N7APLKEHE6TLD4TRCADLSVEPCZANCNFSM4UZTA4SA .
-- Danilo
Thanks for the information.
@cgtobi
When adding Netatmo integration from lovelace interface for setting up a netatmo thermostat, the integration redirect me to the authentication page of netatmo api (https://auth.netatmo.com/it-it/access/accept?.......) and it shows the following error:
“Array is not an allowed scope for Home Assistant cloud”
Running Hassio HA core 0.118.5 HassOS 4.17 Nabucasa