Netatmo: Difference between revisions

From Domoticz
Jump to navigation Jump to search
Walter vl (talk | contribs)
Walter vl (talk | contribs)
Updated fully
Line 19: Line 19:
= Install =
= Install =


Enable "Accept new Hardware Devices" in Setup/Setting
Enable "Accept new Hardware Devices" in Setup/Setting  
Add a "Netatmo" Hardware in Setup/Hardware. Input your Netatmo login and password. 5 minutes Data Timeout(not sure about that).
Turned the Thermostat up and down via the iPhone app and it showed up in Domoticz!
In Setup/Devices, display the "not used" and "add" the new devices.
[https://forum.domoticz.com Forum Domoticz].


<span id="Authentication"></span>
= Authentication =
New Netatmo Authentication method implemented from 2024.1
New Netatmo Authentication method implemented from 2024.1


step 1:
Log in on dev.netatmo.com (https://dev.netatmo.com/)


Setup an App under MyApps in the Netatmo developers portal (https://dev.netatmo.com/)
On dev.netatmo.com you create an App.


The Redirect_URI and Webhook  URI should be empty.
The Redirect_URI and Webhook  URI should be empty.
[[File:Netatmo-app1.png|none|frame]]
Press save 2 times.


Once configured correctly, the Client_ID and Client_Secret will be generated and shown.
This gives you the <code>Clientid</code> and <code>Clientsecret</code>


step 2:


In the domoticz hardware setup:
On the Hardware page from Domoticz;


Create/modify the Netatmo hardware
select HardwareType 'Netatmo'
the Client ID should contain <client_id>
the Client Secret should contain <client_secret>
Then Select the Desired Scope compatible with your Devices.


Then Click on the Login Button.
Fill in a Name


This brings you to the My Netatmo page where you have to identify yourself and are asked for permission to grant access to certain devices and types (based on the scope provided).
Fill in <code>Clientid</code> and <code>Clientsecret</code> from the Netatmo App


Confirm the access to the Devices.
Select the correct scope(s) for your devices
After confirmation, your browser will try to redirect you.
[[File:Netatmo-2.png|none|frame]]


Then your Hardware is added or you can press 'ADD'.


if you take too long and Domoticz says it cannot login, error: No access granted, check credentials...
Press Button Login.


Please try again....
You can Login to Netatmo with E-mail and Password. (If you are already Login in you get directly to the Accept page.)
[[File:Netatmo-app2.png|none|frame]]




<span id="supported Devices"></span>
You see a configuration screen from Netatmo.
[[File:Netatmo-app3.png|none|frame]]
 
 
Then the Accept Page is displayed, You scroll to the bottom.
[[File:Netatmo-app4.png|none|frame]]
[[File:Netatmo-app5.png|none|frame]]
 
 
And press Accept.
 
This closes the window and when everything is correct the plugin works.
 
You get a message that nothing is selected.
 
Click on the ADD button to add the Netatmo to Domoticz.
 
In menu Setup - Devices the connected devices should be shown (can take some time)
 
=== With a existing installation; ===
On the Hardware page from Domoticz;
 
you select the Netatmo Hardware Line
 
Fill in Clientid and clientsecret
 
Select the correct scope(s) for your devices
 
Press Button Login.
 
You can Login to Netatmo with E-mail and Password. (If you are already Login in you get directly to The accept page.
 
You see a configuration screen from Netatmo.
 
Then the Accept Page is displayed, You scroll to the bottom.
 
And press Accept.
 
This closes the window and when everything is correct the plugin works.
 
When you want to disable the plugin
 
you select the Hardware Line on the Hardware page from Domoticz
 
switch the Enable button to Red and press update
 
When you want to enable the plugin
 
you select the Hardware Line on the Hardware page from Domoticz
 
switch the Enable button to Green and press update
 
The Add button is not in use anymore but still visible, this is different as normal expected for Domoticz.
 
=== Problem situation ===
When you restart Domoticz or enable the plugin to close to the authentication then Netatmo Blocks the request,
 
and keeps blocking as long as there are continuous requests.
 
When I manually stop the system and wait 20 min then the Block is lifted and the authentication is OK
 
There is a access token and refresh token
 
= supported Devices =
= supported Devices =
At the moment, the supported Devices are;
At the moment, the supported Devices are;

Revision as of 14:41, 22 March 2025

About Netatmo Hardware

Features supported:

  • Temperature sensor,
  • Set point switch,
  • "away" mode switch,
  • Heating Status Switch,
  • Temperature & Humidity Sensor,
  • Barometer Sensor,
  • Rain Sensor,
  • Air QUality Sensor,
  • Sound Sensor,
  • Wind Sensor,
  • Alert Sensor for Security Events,


Install

Enable "Accept new Hardware Devices" in Setup/Setting

New Netatmo Authentication method implemented from 2024.1

Log in on dev.netatmo.com (https://dev.netatmo.com/)

On dev.netatmo.com you create an App.

The Redirect_URI and Webhook URI should be empty.

Press save 2 times.

This gives you the Clientid and Clientsecret


On the Hardware page from Domoticz;

select HardwareType 'Netatmo'

Fill in a Name

Fill in Clientid and Clientsecret from the Netatmo App

Select the correct scope(s) for your devices


Press Button Login.

You can Login to Netatmo with E-mail and Password. (If you are already Login in you get directly to the Accept page.)


You see a configuration screen from Netatmo.


Then the Accept Page is displayed, You scroll to the bottom.


And press Accept.

This closes the window and when everything is correct the plugin works.

You get a message that nothing is selected.

Click on the ADD button to add the Netatmo to Domoticz.

In menu Setup - Devices the connected devices should be shown (can take some time)

With a existing installation;

On the Hardware page from Domoticz;

you select the Netatmo Hardware Line

Fill in Clientid and clientsecret

Select the correct scope(s) for your devices

Press Button Login.

You can Login to Netatmo with E-mail and Password. (If you are already Login in you get directly to The accept page.

You see a configuration screen from Netatmo.

Then the Accept Page is displayed, You scroll to the bottom.

And press Accept.

This closes the window and when everything is correct the plugin works.

When you want to disable the plugin

you select the Hardware Line on the Hardware page from Domoticz

switch the Enable button to Red and press update

When you want to enable the plugin

you select the Hardware Line on the Hardware page from Domoticz

switch the Enable button to Green and press update

The Add button is not in use anymore but still visible, this is different as normal expected for Domoticz.

Problem situation

When you restart Domoticz or enable the plugin to close to the authentication then Netatmo Blocks the request,

and keeps blocking as long as there are continuous requests.

When I manually stop the system and wait 20 min then the Block is lifted and the authentication is OK

There is a access token and refresh token

supported Devices

At the moment, the supported Devices are;

  • Weather station,
  • Netatmo thermostat,
  • Netatmo Valves,
  • Homecoach,
  • CO2detector,
  • Smokedetector,
  • Presence camera (Only Events),
  • Welkom camera (Only Events),
  • Door Tag,

Settings

Settings for Netatmo are found in the Domoticz GUI: Name: > Client ID: > Client Secret: > Scope::

  • Name: This is the name you wan't for your Hardware module.
  • Log level,
  • Data Timeout,
    • Client ID: Client ID obtained from Netatmo Development Site
    • Client Secret: Client Secret obtained from Netatmo Development Site.
    • Scope: Select here the Scope for your Netatmo Devices, make sure you only select scopes compatible with your devices!

Troubleshooting

So, you think if you have done everything correctly but things do not work (in some way) as you expected. Here are a couple steps you can do to find the cause.

Turn on debug logging

Edit your /etc/systemd/system/domoticz.service file to;

ExecStart=/home/domoticz/domoticz -www 8484 -sslwww 8443 -log "/var/log/domoticz.log" -loglevel all -debuglevel normal,hardware,received,eventsystem WorkingDirectory=/home/domoticz


Get help

The Domoticz forum is a great resource for help and solutions. Check the Forum.

History link to wiki