01.04.2025, 12:24
Another round of Netatmo access and token issues. Sorry, but I can't understand this. I have tried all kind of methods, but can not make it work.
Tried the following methods;
1. Made the Scheduled script with the Require('user.nit_netatmo') and "get_stationdata()" code
2. Made the user.nit_netatmo script (Copied the above code examples, seems to be some few versions in this thread)
3. Refreshed the dev.netatmo.com "Client ID" and "Client secret" from Netatmo and copied into the script
4. Made a "read station" scope and refreshed the "access token" and "refresh token". Pasted in the token to the code
Maybe here is where I go wrong; - Which of the codes are to be used?
Or is it first the access token and and later replace it with the Refresh token? Tried both without success.
5. Tried also to
A) Fully delete the line "storage.set('netatmo_refresh_1', response_decode.refresh_token)" and also tried
B) Change to nil as mentioned over "storage.set('netatmo_refresh_1', nil)" line of code.
Still the following log
* string: netatmo auth error: 400, 1
* string: netatmo token error
Tried the following methods;
1. Made the Scheduled script with the Require('user.nit_netatmo') and "get_stationdata()" code
2. Made the user.nit_netatmo script (Copied the above code examples, seems to be some few versions in this thread)
3. Refreshed the dev.netatmo.com "Client ID" and "Client secret" from Netatmo and copied into the script
4. Made a "read station" scope and refreshed the "access token" and "refresh token". Pasted in the token to the code
Maybe here is where I go wrong; - Which of the codes are to be used?
Or is it first the access token and and later replace it with the Refresh token? Tried both without success.
5. Tried also to
A) Fully delete the line "storage.set('netatmo_refresh_1', response_decode.refresh_token)" and also tried
B) Change to nil as mentioned over "storage.set('netatmo_refresh_1', nil)" line of code.
Still the following log
* string: netatmo auth error: 400, 1
* string: netatmo token error
Schneider Wiser (homeLynk), Power Tags, DALI, Multitouch Pro, Panasonic Heating pump, Flexit balansed ventilation, HUE integration, Lemus Speaker system. Tibber integration.