thexperiments / pimatic-netatmo

Plugin for supporting Netatmo Weather devices in Pimatic
GNU General Public License v2.0
0 stars 1 forks source link

Netatmo plugin stopped working #14

Open jorgemarmor opened 1 year ago

jorgemarmor commented 1 year ago

Hi, the netatmo plugin stopped working suddenly. It plots following error "Netatmo API error: Authenticate error: unauthorized_client"

Please note that I haven't changed account nor API keys. Just to try, I refreshed the API keys and updated pimatic plugin but it won't work either.

I think they have changed something in the API, as the webpage https://dev.netatmo.com/dev/createapp is not working anymore (they changed the location to https://dev.netatmo.com/apps/createanapp

jorgemarmor commented 1 year ago

I don't know about this programming language and I have no experience programming plugins for pimatic, but reading Netatmo documentation (https://dev.netatmo.com/apidocumentation/oauth), I've seen that aparently there is a new field I haven't seen to be sent to the netatmo library when authenticating: "grant_type" (maybe this is a new addition to add more complex auth modes). I've tried to add it manually to the netatmo.coffee file, but this change stops the plugin to load at start.

Just some ideas about where the issue may be.

thexperiments commented 1 year ago

Hi, sadly I have stopped using pimatic years ago and it also has been deprecated for some time. I will not be able to fix anything here but feel free to fork it. I transitioned to Home Assistant which has worked great for me so far, maybe you give it a try.