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
71.72k stars 29.98k forks source link

Netatmo Smart Thermostat not working anymore since last 2 releases #106007

Closed Atarinside closed 2 months ago

Atarinside commented 9 months ago

The problem

Hi,

I have 3 Netatmo devices. The 3 are detected as 4 entities: climate.kitchen => unavailable (the smart thermostat on which I set the temperature) Select.mytown => available (the box connected to my oil-fired boiler) Camera.office => available and working (my camera) sensor.thermostat_battery_percent => unavailable (the battery of the smart thermostat on which we set the temperature)

With Chrome on windows, on the My.netatmo site, if I change the heating temperature, I can see the changes. So the smart thermostat does works and the netatmo box connected to it does work.

Everything is ok with the android netatmo app.

I've already tried to:

But none of these actions worked.

I use the nabu-casa cloud.

Extract of my configuration.yaml (the only line with "netamo"):

logger:
  default: error
  logs:
    homeassistant.components.netatmo: debug

Evrything was working a few releases ago.

What version of Home Assistant Core has the issue?

System Information

version | core-2023.12.3 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.11.6 os_name | Linux os_version | 6.1.63-haos arch | armv7l timezone | Europe/Paris config_dir | /config  <details><summary>Home Assistant Community Store</summary>  GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.33.0 Stage | running Available Repositories | 1429 Downloaded Repositories | 14 HACS Data | ok  </details>  <details><summary>Home Assistant Cloud</summary>  logged_in | true -- | -- subscription_expiration | 25 mars 2024 à 01:00 relayer_connected | true relayer_region | eu-central-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true remote_server | eu-central-1-6.ui.nabu.casa certificate_status | ready instance_id | 3e71ca2e12db4d6ba7688f2fdefd36c0 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok  </details>  <details><summary>Home Assistant Supervisor</summary>  host_os | Home Assistant OS 11.2 -- | -- update_channel | stable supervisor_version | supervisor-2023.11.6 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 116.5 GB disk_used | 71.4 GB healthy | true supported | true board | odroid-xu4 supervisor_api | ok version_api | ok installed_addons | File editor (5.7.0), Mosquitto broker (6.4.0), Samba share (12.2.0), Advanced SSH & Web Terminal (17.0.0), tydom2mqtt (3.4.2), Home Assistant Google Drive Backup (0.112.1), Samba Backup (5.2.0), Grafana (9.1.1), motionEye (0.19.1), Zigbee2MQTT (1.34.0-1), MyElectricalData (0.9.3), ESPHome (2023.11.6)  </details>  <details><summary>Dashboards</summary>  dashboards | 1 -- | -- resources | 6 views | 13 mode | storage  </details>  <details><summary>Recorder</summary>  oldest_recorder_run | 8 décembre 2023 à 10:22 -- | -- current_recorder_run | 18 décembre 2023 à 19:34 estimated_db_size | 2265.68 MiB database_engine | sqlite database_version | 3.41.2  </details>

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

config_entry-netatmo-2ec727abf77b1444680c524ba50a2000.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-12-18 19:36:54.848 INFO (MainThread) [homeassistant.components.netatmo.config_flow] Successfully authenticated
2023-12-18 19:36:55.118 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher account added
2023-12-18 19:36:55.328 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device data available
2023-12-18 19:36:55.328 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher weather added
2023-12-18 19:36:55.487 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device data available
2023-12-18 19:36:55.487 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher air_care added
2023-12-18 19:36:55.538 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher home-5d3378c1c7babbae5e10290f added
2023-12-18 19:36:55.579 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 19:36:55.580 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher home-5e1cf18519776b000c791745 added
2023-12-18 19:36:55.635 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher home-5fa8041a0f2d883ab155e93d added
2023-12-18 19:37:01.251 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 19:37:01.251 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher home-62092f52c134e05c49328862 added
2023-12-18 19:37:01.252 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher weather removed
2023-12-18 19:37:01.253 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher air_care removed
2023-12-18 19:37:01.474 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher event-62092f52c134e05c49328862 added
2023-12-18 19:37:02.406 INFO (MainThread) [homeassistant.components.netatmo] [***REDACTED***]
2023-12-18 19:43:01.254 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 19:43:55.052 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 19:49:01.251 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 19:49:55.094 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 19:55:01.255 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 19:55:55.173 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:01:01.261 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:01:55.094 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:07:01.251 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:07:55.115 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:13:01.253 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:13:55.137 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:19:01.252 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:19:55.144 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:25:01.258 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:25:55.203 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:31:01.253 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:31:55.163 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:37:01.256 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:37:55.179 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response
2023-12-18 20:43:01.252 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 
2023-12-18 20:43:55.267 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] No device found, errors in response

Additional information

No response

home-assistant[bot] commented 9 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)

jires commented 9 months ago

I can confirm. Weather station sensors unavailable after update to 2023.12.3 [EDIT] I figured out that somehow webhook token became invalid after update. Reinstalled integration with OAuth and developer account. Working again :)

Atarinside commented 9 months ago

Hi, same problem with HA core 2023.12.4 (tried to unistall/reinstall Netatmo integration).

cgtobi commented 9 months ago

Instead of simply stating that it still does not work with the latest release it would be more helpful to provide insights, logs and data straight from the API to aid debugging.

Atarinside commented 9 months ago

Hi @cgtobi , you have everything in my first post. What could be helpfull to you ? Just tell me and i will send all the new datas you may need. Best regards.

cgtobi commented 9 months ago

Please navigate to https://dev.netatmo.com/apidocumentation/control and gather data from /homesdata and /homestatus. Since this might contain sensitive information feel free ton contact me via Discord and send it as PM.

stefan-b-b commented 8 months ago

@cgtobi Hi Tobi - I can send you the logs. Just waiting on the Discord approval for the PM. The sensor takes about 15 minutes to come back after a reboot. This is only an issue with the Main Netatmo station . Thanks for your fantastic work with this integration!

tyge68 commented 8 months ago

I have the exact same issue, for sometime now it's no longer available. So I started to write my own integration, still it would be nice the official one would work.

cgtobi commented 8 months ago

I seriously must ask why you would consider writing a whole new integration rather than contributing to the existing one?

propi62 commented 6 months ago

my thermostats dont show up anymore in homeassistant. camera, wind, rain and other modules still working. (exept 1 one 3 cameras does not show up.

FranckG1981 commented 6 months ago

Hi all of my climate entities tied to Netatmo integration show up as unavailable as well. I do have the following error in my logs : "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'". Note tha tI am using this integration since years and was working fine and I did not change anyting in my network infra. I tried to delete and re-intalled Netatmo integration to somehow refresh something but it did not help.

Thanks for your help.

Marcoletto commented 5 months ago

Same here:

''' Registratore: homeassistant.components.netatmo Fonte: components/netatmo/init.py:168 Integrazione: Netatmo (documentazione, problemi) Prima occorrenza: 12 aprile 2024, 20:58:14 (1 occorrenze) Ultima registrazione: 12 aprile 2024, 20:58:14

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' '''

How can i fix?

cgtobi commented 5 months ago

@Marcoletto @FranckG1981 how to set up webhook in described in the documentation https://www.home-assistant.io/integrations/netatmo#webhook-events

issue-triage-workflows[bot] commented 2 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.