home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.54k stars 30.35k forks source link

netatmo station not available after reboot / reload of integration #112848

Open eugsterli opened 7 months ago

eugsterli commented 7 months ago

The problem

if I restart home assistant or reload the integration netatmo the internal station has no sensor data available. the outdoor sensor has always data...after ~5 minutes data is available.

log: 2024-03-09 23:36:33.745 INFO (MainThread) [homeassistant.components.netatmo.config_flow] Successfully authenticated 2024-03-09 23:36:33.966 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher account added 2024-03-09 23:36:34.310 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.310 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.311 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.311 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.312 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.312 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.312 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.313 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.313 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.313 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.314 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.314 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.314 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.315 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.315 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:36:34.316 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher weather added 2024-03-09 23:36:34.381 DEBUG (MainThread) [pyatmo.helpers] Server response: {'body': {'devices': [], 'user': {'mail': 'xxxxxxx@xxxxxxx.ch', 'administrative': {'reg_locale': 'de-CH', 'lang': 'de', 'unit': 0, 'windunit': 0, 'pressureunit': 0, 'feel_like_algo': 0, 'country': 'CH'}}}, 'status': 'ok', 'time_exec': 0.024699926376342773, 'time_server': 1710023794} 2024-03-09 23:36:34.381 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device data available 2024-03-09 23:36:34.381 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher air_care added 2024-03-09 23:36:34.468 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher home-5ebffd05f37xxxxxxxxxx added -> i changed this but the ID is correct 2024-03-09 23:36:34.614 DEBUG (MainThread) [pyatmo.auth] The Netatmo API returned b'{"error":{"code":21,"message":"Invalid home_id"}}' (400) 2024-03-09 23:36:34.616 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 400 - Bad request - Invalid home_id (21) when accessing 'https://api.netatmo.com/api/homestatus' 2024-03-09 23:36:34.616 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher home-5ebffd05f37xxxxxxxxxx added -> i changed this but the ID is correct 2024-03-09 23:36:34.682 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher air_care removed 2024-03-09 23:36:34.708 WARNING (MainThread) [homeassistant.components.netatmo] Webhook not registered - https and port 443 is required to register the webhook 2024-03-09 23:37:33.748 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 299 2024-03-09 23:38:33.749 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 149 2024-03-09 23:39:33.750 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 99 2024-03-09 23:40:34.279 DEBUG (MainThread) [pyatmo.auth] The Netatmo API returned b'{"error":{"code":21,"message":"Invalid home_id"}}' (400) 2024-03-09 23:40:34.279 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 400 - Bad request - Invalid home_id (21) when accessing 'https://api.netatmo.com/api/homestatus' 2024-03-09 23:40:34.353 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 104 2024-03-09 23:41:33.751 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 83 2024-03-09 23:42:33.751 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 69 2024-03-09 23:43:34.174 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.175 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.175 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.175 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.176 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.177 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.179 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.179 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.180 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.180 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.180 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.180 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.181 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.181 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.181 DEBUG (MainThread) [pyatmo.account] No home None found. 2024-03-09 23:43:34.183 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 77 2024-03-09 23:44:33.753 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 67 2024-03-09 23:45:33.753 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 59 2024-03-09 23:46:33.931 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 59

What version of Home Assistant Core has the issue?

core-2024.3.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

netatmo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/netatmo

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 7 months ago

Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `netatmo` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign netatmo` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


netatmo documentation netatmo source (message by IssueLinks)

vingerha commented 7 months ago

I donot have the same errors though but a HA restart just makes it to stop working and only a reload of the integration repairs that. I already opened another ticket that the integration is not repairing itself but no feedback. I am not sure if anyone is still maintaining the netatmo integration

simonepittis commented 7 months ago

+1 same problem

floow77 commented 7 months ago

+1 Same problem

Kohnrad commented 7 months ago

Same problem

echopage commented 7 months ago

Same problem

steffo007 commented 7 months ago

Same problem for mee to :-(

plouf34 commented 7 months ago

Same problem

vitjurasek commented 6 months ago

Same problem

vingerha commented 6 months ago

I tried to have a look at it and then discovered that there is a dependency towards pyatmo lib which is no longer supported by the owner, except for PR. There are known and upcoming changes in the authentication and possibly already not covered via pyatmo. There is an alternative lib but that still requires a re-write of the core. https://pypi.org/project/pyatmo/

image

spanzetta commented 6 months ago

same here... Netatmo Thermostat.. Need to reload integration at every HA restart..

Question: is there a way to automate the integration reload after a restart?

Foguet commented 6 months ago

Another one with the same problem, every time I reboot it gets lost and I have to reload manually.

stefanjakl commented 6 months ago

Same here, although I don't need to reload the integration - the problem always fixes itself 5-10 minutes after the reboot.

My logs are similar to the description above.

Interestingly only the sensors of the Netatmo main module are unavailable (temperature, humidity, co2, pressure). The outdoor module as well as my 3 additional indoor modules are not affected.

rbrtwillis commented 6 months ago

Well, it might be time to ditch Netatmo for good. I already ditched the outdoor sensor since I had 2 die on me because they couldn't withstand the moisture (and yes i kept them covered and away from direct rain on a porch).

vingerha commented 6 months ago

Well, it might be time to ditch Netatmo for good

Yeah, I wish it would be that simple. Mine work fine and cost slightly below 100EUR so just replacing them to-fit-HA is no a real option. The one thing I learned form this: donot buy anything proprietary

Langohr23 commented 6 months ago

I have a similar problem - after a restart of the homeassistant the main-station runs, but the additional modules do not deliver data. If I reload the integration the additional modules work, but not the main station anymore.

gomba777 commented 6 months ago

Same issue, need to reload integration after each restart :(

floow77 commented 6 months ago

Hello, same issue. Is a fix planned ?

plouf34 commented 6 months ago

you are on a french company. Maybe in 6 month it will be resolved...

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

vingerha commented 3 months ago

Issue persists

jetmcquack commented 3 months ago

same problem here

Foguet commented 3 months ago

another with the same problem

issue-triage-workflows[bot] commented 5 days ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.