It seems that quite a few people struggled with setting up the webhooks for Netatmo integration. (You need to set them up if you want to drastically increase status update response times reported by your Netatmo devices). I was one of those people so I decided to gather all the information scattered among multiple posts and write up this compact guide to help anyone else struggling with this.
It’s important to note that the main credit for the information provided below goes to Cgtobi who seems to be the main person in charge of Netatmo integration overall and ondrej.belecky. Contributions of both people helped me the most to solve this issue especially in this post.
This step is the most important:
DO NOT install Netatmo Integration from Home Assistant Integration page yet!!!
If you have it already installed, delete it first. Disabling it is not enough, you need to delete it. You will reinstall it as the last step of this guide. (After reinstalling, I didn’t have to redefine any of the Netatmo entities, they all came back. But just to be on the safe side, make note of all the customizations you happened to make to your Netatmo devices and entities.)
If you use Nabu Casa you can skip this step.
If you don’t use Nabu Casa you need open port 443 so that your home assistant installation can be accessed externally. You can find multiple posts that deal with how to do it. And you need to have reverse proxy configured correctly as can be found for example here. (Nabu Casa does both of these steps for you.)
Sign in to Netatmo Developer Page here: https://dev.netatmo.com/
(Use the same credentianls you use to sign in to regular Netatmo account.)
On that page, create new app. Name it whatever you like (although it must be a unique name). It will generate client ID and client secret for you as shown below. Make sure “App status” is “Activated” and there is a green tick next to “Webhooks” status as also shown below:
In Home Assistant go to Settings > Devices and click three dots in top right corner and then click on Application Credentials as seen here: Application Credentials - Home Assistant. Add credentials manually by clicking the button in bottom right corner (Add Application Credentials):
Select “Netatmo” from Integration drop down menu.
Give your credentials a name. (It can be anything. Remember it. You will need it later when setting up the integration itself.)
Use client_id and client_secret that was generated for you when creating the app in the previous step.
Click Add
Restart Home Assistant
Now add Netatmo integration from integration page. It will give you option to set it up either from credentials you created in previous steps (the name you gave it) or Home Assistant Cloud. Use the option with the name of credentials you created!
Everything should be working nicely now and the status update response times should be almost instantaneous.
If it didn’t work, the most likely culprits are:
You installed the Netatmo integration before setting up the webhooks on Netatmo Developer Page and before adding the information to configuration.yaml.
You didn’t open the port 443 (If you have Nabu Casa you don’t need to.)
You don’t have reverse proxy configured correctly. (If you have Nabu Case you don’t need to.)
Hi all,
I’m new in HA, so probably (or sure) it’s my fault, but when I add netatmo integration and try to configure it, just “Netatmo public weather sensor” appears. How can I add my modulating thermostat and valves?. I was reading the community but without success.
Thanks in advance.
Under “Devices and Services” in your Home Assistant you should see something like this:
You should see your thermostat and valves after you click “devices” (In my case “7 devices”). You don’t need to click “Configure” for those devices to work.
Have you checked the logger for more information about the problems you are experiencing with the Netatmo integration? If not, you can modify your configuration.yaml file to increase the logging level for the Netatmo integration. To do this, add the following lines to your configuration.yaml file:
logger:
default: warning
logs:
homeassistant.components.netatmo: info
Once you’ve made the necessary changes, remember to restart Home Assistant. After the restart, you can verify whether the logger provides additional information about any issues with the Netatmo integration.
(For more information about the logger, you can check this link)
It seems Home Assistant can connect to your Netatmo account correctly. It then recognizes at least some of your devices but it doesn’t receive any data from them so it drops connection to them.
It is difficult to say what could be causing these problems. Here are a few things you can try to troubleshoot the issue:
Do the devices work properly outside of Home Assistant like Netatmo app on your phone?
Can you see your devices properly in your Netatmo account e.g. here or here (depending on which devices you use?
Have you tried restarting your Netatmo devices?
If none of the above works, I would suggest reporting the issue here.
I found a solution. In fact now you just have to set up the application id. Uninstall the integration, reboot ha. Install the intégration and select webhook.
For the past few days, my Netatmo Video Doorbell hasn’t been streaming. Therefore, I deleted the integration and attempted to reinstall and reconfigure it. However, it’s now only linking to my account via the HA cloud, despite my attempts to connect to my developer account → “Successfully authenticated. Created configuration for Home Assistant Cloud.”
The next step I took was creating a new app on dev.netatmo.com, which is where things became strange. After entering the necessary information (title, email, DPO) and clicking ‘create,’ I ended up on a 404 error page (on dev.netatmo.com).
When I returned to my apps, it seemed that one had been created. However, all fields were empty, and even after attempting to fill them or enable/disable the active status, nothing was saved.
I have the same problem. Creating a new app on dev.netatmo.com is not possible. After deleting the integration, it is also not possible to establish a connection via the HA Cloud.
Can anybody confirm if webhooks are still working with a “fresh” installation?
I only use smart valves, not sure if this is the problem.
My installation was working untill march, then we turned off the heating and i did not care for a while.
For some maintenance, I deleted the integration and re-installed it.
If during installation i use the “developer” method here described I get nowhere, with an error that states unable to register webhooks, and i get no entities or device.
If I login “normally” with user/password I get my entities but no webhooks.