Plugin has stopped working

User avatar
racarter
Posts: 498
Joined: Sat Jun 18, 2016 4:23 am
Location: North Yorkshire, UK
Contact:

Re: Plugin has stopped working

Post by racarter »

I have no idea where the app.netatmo.com is coming from. I've checked my code and ALL the calls are api.netatmo.com. Is there any reason you're not using the latest version of the plugin?
juntta
Posts: 147
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Plugin has stopped working

Post by juntta »

racarter wrote:I have no idea where the app.netatmo.com is coming from. I've checked my code and ALL the calls are api.netatmo.com. Is there any reason you're not using the latest version of the plugin?
Actually I didnt check if there is a newer version than what is published in plugin store! Image Thanks for the headsup!

I will check it out later tonight and get back to you!
juntta
Posts: 147
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Re: Plugin has stopped working

Post by juntta »

racarter wrote:I have no idea where the app.netatmo.com is coming from. I've checked my code and ALL the calls are api.netatmo.com. Is there any reason you're not using the latest version of the plugin?
Hmm, isnt 2022.4.9 the latest version?!? That is the latest release on plugin store. Image

I actually noticed that reflector is required so that seems to be problem since I dont have one. Image Funny that it worked till yesterday just fine…
User avatar
racarter
Posts: 498
Joined: Sat Jun 18, 2016 4:23 am
Location: North Yorkshire, UK
Contact:

Re: Plugin has stopped working

Post by racarter »

My bad - I'm running 2024.0.0 but haven't released it because it just contains a couple of minor cosmetic fixes.

I'm afraid that due to Netatmo changing their authorisation method a reflector is required in order that Netatmo has a URI to which to send the authorisation confirmation; I see no way around this. There was a discussion about this issue: viewtopic.php?f=109&t=26430&p=212748&hi ... RL#p212748

A reflector is also needed for webhooks, although that is only an issue if you have doorbells, cameras or smoke alarms.

If your plugin has continued to work until recently I can only surmise that you haven't needed to reauthorise using the 'new' method.
User avatar
ClickCauseLazy
Posts: 5
Joined: Tue Jan 26, 2021 4:24 pm

Re: Plugin has stopped working

Post by ClickCauseLazy »

Here's a bit more detailed version of how I resolved the webhook issue:
  • In Indigo, under Plugins Menu, Disable NetatmoWelcome.
  • Delete the preferences file found in (at least mine was found here):
    “/Volumes/Hard Drive Name/Library/Application Support/Perceptive Automation/Indigo Current Version Number/Preferences/Plugins/com.berkinet.Netatmo.indiPref”.
  • Note the Client ID and Client Secret ID, you will use this in a few steps
  • Back in Indigo, enable the NetatmoWelcome plugin from the Plugins menu
  • Enter the new Client ID and Client Secret ID information recently provided by the Netatmo dev website. Don't worry about the Token, you'll regenerate it next.
  • Reload the plug in.
  • Request a new access token from the Plugins menu
  • Reload the plug in again
Thank you again, racarter, for the awesome plug in!
User avatar
racarter
Posts: 498
Joined: Sat Jun 18, 2016 4:23 am
Location: North Yorkshire, UK
Contact:

Re: Plugin has stopped working

Post by racarter »

Nice summary - but prefs file is com.racarter.indigoplugin.netatmo-welcome :)
Post Reply

Return to “Netatmo Multi”