-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
netatmo not working #37257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
netatmo documentation |
This is a bug that won’t be solved by restarting/re-adding the integration. Please take a look at the pre-release custom component: https://community.home-assistant.io/t/testers-wanted-netatmo-integration/203729 It contains many fixes. |
Tested. Followed this instructions after importing custom component. Now I get:
|
Tried also with home assistant 0.113.0.dev20200702 Here I had the problem that http: base_url was deprecated. I tried to set the URL of nabu.casa in homeassistant: external_url, but when I try to add netatmo Integration, I get to the site where I grant access and when I try to save, I am not redirected to this URL. It tries to access the internet IP of my server, but there is no port open. So it is not successful. |
Ok, seems that I have to set internal_url in 0.113, so that I can add netatmo. But now I have the same error again:
|
Please increase the log level for the Netatmo integration to debug so we can see where it's failing. Feel free to contact me on the forums or on Discord if you want to share that data more privately. |
Replaced private data with "..." Logs while adding component: It shows that my weatherstation is found. But to the homeassistant.components.sensor exception I do not get more data.
Restart: hass | 2020-07-03 09:37:06 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.netatmo
hass | 2020-07-03 09:37:09 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.unifi
hass | 2020-07-03 09:37:09 DEBUG (MainThread) [custom_components.netatmo.data_handler] Data class CameraData added
hass | 2020-07-03 09:37:11 DEBUG (MainThread) [custom_components.netatmo.data_handler] Data class WeatherStationData added
hass | 2020-07-03 09:37:11 DEBUG (MainThread) [custom_components.netatmo.sensor] Adding module Innen 70:ee:50:5f:56:80
hass | 2020-07-03 09:37:11 DEBUG (MainThread) [custom_components.netatmo.sensor] Adding module None None
hass | 2020-07-03 09:37:11 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up netatmo platform for sensor
hass | Traceback (most recent call last):
hass | File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
hass | await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
hass | File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
hass | return fut.result()
hass | File "/config/custom_components/netatmo/sensor.py", line 154, in async_setup_entry
hass | async_add_entities(await get_entities(), True)
hass | File "/config/custom_components/netatmo/sensor.py", line 150, in get_entities
hass | entities.extend(await find_entities(data_class))
hass | File "/config/custom_components/netatmo/sensor.py", line 136, in find_entities
hass | module_id=module["_id"]
hass | KeyError: '_id'
hass | 2020-07-03 09:37:11 DEBUG (MainThread) [custom_components.netatmo.data_handler] Data class HomeData added
hass | 2020-07-03 09:37:11 DEBUG (MainThread) [custom_components.netatmo.data_handler] Data class HomeData removed
hass | 2020-07-03 09:37:11 DEBUG (MainThread) [custom_components.netatmo.data_handler] Data class CameraData removed
hass | 2020-07-03 09:37:12 DEBUG (SyncWorker_3) [custom_components.netatmo.pyatmo.auth] addwebhook: {'status': 'ok', 'time_exec': 0.01427912712097168, 'time_server': 1593761831}
hass | 2020-07-03 09:37:12 INFO (MainThread) [custom_components.netatmo] Register Netatmo webhook: https://hooks.nabu.casa/...
hass | 2020-07-03 09:37:12 DEBUG (MainThread) [custom_components.netatmo.webhook] Got webhook data: {'user_id': '...', 'user': {'id': '...', 'email': '...'}, 'push_type': 'webhook_activation'}
hass | 2020-07-03 09:37:12 INFO (MainThread) [custom_components.netatmo.data_handler] Netatmo webhook successfully registered |
Strange... restartet today again, error gone, and all is running. I did nothing but trying the ~ 20th restart. |
This should be fixed in the latest release of the custom component. |
The problem
I set up netatmo like described in https://www.home-assistant.io/integrations/netatmo/ in the following steps:
Until restart all was ok and netatmo says it is configured. But wenn home assistant starts, the exception "Error while setting up netatmo platform for sensor" is thrown and netatmo does not detect my devices.
Environment
Home assistant Version: 0.111.4 running in docker with following docker-compose.yml
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: