Cannot authenticate w/Netatmo

Posted on
Mon Dec 04, 2023 12:07 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Cannot authenticate w/Netatmo

Can no longer authenticate with Netatmo.
Starting today whenever I start the plugin in and authenticate, I get
Code: Select all
{"error":{"code":404,"message":"method not found"}}

I would assume this is a Netatmo issue. But, do you know anything about this?

Posted on
Mon Dec 04, 2023 12:13 pm
siclark offline
Posts: 1963
Joined: Jun 13, 2017
Location: UK

Re: Cannot authenticate w/Netatmo

I just requested a new token from the plugin menu. Usual webpage opened and I accepted and got 200 code indicating all worked.

Restart of teh plugin works as well.

Posted on
Mon Dec 04, 2023 12:18 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Cannot authenticate w/Netatmo

siclark wrote:
I just requested a new token from the plugin menu. Usual webpage opened and I accepted and got 200 code indicating all worked.

Restart of teh plugin works as well.
I had tried that, no joy.

Posted on
Mon Dec 04, 2023 12:21 pm
siclark offline
Posts: 1963
Joined: Jun 13, 2017
Location: UK

Re: Cannot authenticate w/Netatmo

Hopefully narrows it down to your end, or at least a regional Netatmo server issue...

Posted on
Tue Dec 05, 2023 12:15 am
racarter offline
User avatar
Posts: 478
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Cannot authenticate w/Netatmo

Code 404 means the plugin can't find the URL, so as Simon says it's likely to be a Netatmo issue. As a matter of interest, can you access your system via the Netatmo app?

Posted on
Tue Dec 05, 2023 1:34 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Cannot authenticate w/Netatmo

racarter wrote:
As a matter of interest, can you access your system via the Netatmo app?
Well, I can login into their website with a browser and display my data..

Posted on
Tue Dec 05, 2023 3:13 pm
MartinG offline
Posts: 116
Joined: Aug 19, 2016

Re: Cannot authenticate w/Netatmo

May or may not be related, but spomtaneously and for the last few days I've been seeing this error. Just haven't had time to deal with it. I can see sensible data from this module in the app, including good battery status info.

Debug info is as below:
5 Dec 2023 at 21:10:43
NetatmoWelcome Processing Weather Station 0
NetatmoWelcome Processing Modules:
NetatmoWelcome Processing Master Bedroom NAMain
NetatmoWelcome Processing Noise
NetatmoWelcome Processing Temp
NetatmoWelcome Processing Temp Trend
NetatmoWelcome Processing Pressure
NetatmoWelcome Processing Humidity
NetatmoWelcome Processing CO2
NetatmoWelcome Processing CO2 Cal
NetatmoWelcome Processing Min/Max
NetatmoWelcome Processing Timestamp
NetatmoWelcome Finding weather device
NetatmoWelcome - Updating Netatmo Indoor
NetatmoWelcome Processing Outdoor NAModule1
NetatmoWelcome Error Outdoor module WS0M1 update error: <class 'KeyError'>


Neither requesting a new access token nor restarting the plugin worked for me.

Posted on
Tue Dec 05, 2023 4:58 pm
racarter offline
User avatar
Posts: 478
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Cannot authenticate w/Netatmo

This error occurs when the Netatmo servers send a response which is missing a parameter which the plugin is expecting to receive. I've trapped for the parameters I've seen missing before, but this looks like a new one. Enabling weather station comms to the Event Log might help identify the culprit.


MartinG wrote:
May or may not be related, but spomtaneously and for the last few days I've been seeing this error. Just haven't had time to deal with it. I can see sensible data from this module in the app, including good battery status info.

Debug info is as below:
5 Dec 2023 at 21:10:43
NetatmoWelcome Processing Weather Station 0
NetatmoWelcome Processing Modules:
NetatmoWelcome Processing Master Bedroom NAMain
NetatmoWelcome Processing Noise
NetatmoWelcome Processing Temp
NetatmoWelcome Processing Temp Trend
NetatmoWelcome Processing Pressure
NetatmoWelcome Processing Humidity
NetatmoWelcome Processing CO2
NetatmoWelcome Processing CO2 Cal
NetatmoWelcome Processing Min/Max
NetatmoWelcome Processing Timestamp
NetatmoWelcome Finding weather device
NetatmoWelcome - Updating Netatmo Indoor
NetatmoWelcome Processing Outdoor NAModule1
NetatmoWelcome Error Outdoor module WS0M1 update error: <class 'KeyError'>


Neither requesting a new access token nor restarting the plugin worked for me.

Posted on
Tue Dec 05, 2023 5:13 pm
racarter offline
User avatar
Posts: 478
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Cannot authenticate w/Netatmo

I've heard of this error message being sent from Netatmo if your login credentials are wrong. Could your user name or password have changed? Sorry if this seems obvious, but it's the only thing I've found from the forums which causes this error.



berkinet wrote:
Can no longer authenticate with Netatmo.
Starting today whenever I start the plugin in and authenticate, I get
Code: Select all
{"error":{"code":404,"message":"method not found"}}

I would assume this is a Netatmo issue. But, do you know anything about this?

Posted on
Thu Dec 07, 2023 4:02 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Cannot authenticate w/Netatmo

Problem solved. The key was an old post in this forum ( viewtopic.php?f=306&t=27643 ). It was a reflector issue. Somehow my reflector had become deactivated. I (re)activated it and now all is working again.

Posted on
Thu Dec 07, 2023 4:13 am
racarter offline
User avatar
Posts: 478
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Cannot authenticate w/Netatmo

Glad to hear you got it sorted. In the next release I'll add a message to point folks in the right direction if this error comes up.

Posted on
Mon Dec 11, 2023 4:53 am
MartinG offline
Posts: 116
Joined: Aug 19, 2016

Re: Cannot authenticate w/Netatmo

Closing the open issue on my error messages as reported above, they appear to have stopped magically.

I've been seeing the errors regularly, but on Saturday evening they just stopped:
Code: Select all
9 Dec 2023 at 18:04:14
   NetatmoWelcome Error            Outdoor module WS0M1 update error: <class 'KeyError'>

9 Dec 2023 at 18:14:16
   NetatmoWelcome Error            Outdoor module WS0M1 update error: <class 'KeyError'>

9 Dec 2023 at 18:24:19
   NetatmoWelcome                  Weather Station update fault cleared


The following day I see this, which appears to be a temporary problem.

Code: Select all
10 Dec 2023 at 16:44:57
   NetatmoWelcome Error            Device Netatmo Outdoor is unreachable after ten attempts


And now all data is showing as expected - no errors or warnings since.

Posted on
Mon Dec 11, 2023 5:44 am
racarter offline
User avatar
Posts: 478
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Cannot authenticate w/Netatmo

Glad to hear it’s sorted

Posted on
Wed Dec 13, 2023 4:58 am
MartinG offline
Posts: 116
Joined: Aug 19, 2016

Re: Cannot authenticate w/Netatmo

Bah! Spoke too soon. It's back!

This one repeats every 10 minutes:
Code: Select all
12 Dec 2023 at 15:37:17
   NetatmoWelcome Error            Outdoor module WS0M1 update error: <class 'KeyError'>
   NetatmoWelcome                  {'min_temp': 6.6, 'max_temp': 8.6, 'date_max_temp': 1702351435, 'date_min_temp': 1702339336}
   NetatmoWelcome                  Device reachable is True

And this one appeared shortly after midnight:
Code: Select all
13 Dec 2023 at 00:21:30
   NetatmoWelcome Error            Outdoor module WS0M1 update error: <class 'KeyError'>
   NetatmoWelcome Error            Weather station WS-0 update error: <class 'KeyError'> 'dashboard_data'
   NetatmoWelcome                  Device reachable is True

Then the messages changed to:
Code: Select all
13 Dec 2023 at 00:31:32
   NetatmoWelcome Error            Outdoor module WS0M1 update error: <class 'KeyError'>

Which has repeated since, thought at random intervals. Sometimes 1 minute, sometimes 5 minutes, currently 10 minutes.

Edit:
So I turn on all the debugging related messages:
Code: Select all
13 Dec 2023 at 10:57:42
   NetatmoWelcome                  Logging all Healthy Home messages to Event Log
   NetatmoWelcome                  Logging all weather station messages to Event Log
   NetatmoWelcome                  Webhook messages will be written to Event Log
   NetatmoWelcome                  Debug messages will be written to Event Log

No more errors! So let's try turning all these messages off.
Code: Select all
13 Dec 2023 at 11:27:39
   NetatmoWelcome                  Weather station message logging is off
   NetatmoWelcome                  Webhook messages will not be written to Event Log
   NetatmoWelcome                  Debug messages will not be written to Event Log

Still no error messages, but the device state shows as "Error" in Indigo.
Some time later, I notice that the device state has returned to normal, and the following has appeared in the log:
Code: Select all
13 Dec 2023 at 11:56:02
   NetatmoWelcome                  Weather Station update fault cleared

No error messages in the log for the last hour.
Most peculiar!
Last edited by MartinG on Wed Dec 13, 2023 6:08 am, edited 1 time in total.

Posted on
Wed Dec 13, 2023 5:32 am
racarter offline
User avatar
Posts: 478
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Cannot authenticate w/Netatmo

This means there’s one or more missing keys from the Netatmo response. Post or DM the weather station comms and I’ll have a look.

Who is online

Users browsing this forum: No registered users and 6 guests