"mode not authorized" when trying to set thermostat to "off"

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
nlohmann
Posts: 9
Joined: 22 Nov 2013, 23:57
Location: Rostock. Germany

"mode not authorized" when trying to set thermostat to "off"

Post by nlohmann »

I am trying to use the endpoint https://app.netatmo.net/api/setthermmode described in https://dev.netatmo.com/resources/techn ... tthermmode to control my thermostat. I can log in and set it to mode "away" or "hg" without problems. However, when I try to set the thermostat to "off" or "max", I get a "mode not authorized" error.

What do I need to do to use these modes?

Note the https://dev.netatmo.com/api/setthermpoint endpoint used to work without problems with all modes.
gieljnssns
Posts: 41
Joined: 23 Nov 2016, 17:56

Re: "mode not authorized" when trying to set thermostat to "

Post by gieljnssns »

Try
api/setroomthermpoint
Documentation is wrong…
nlohmann
Posts: 9
Joined: 22 Nov 2013, 23:57
Location: Rostock. Germany

Re: "mode not authorized" when trying to set thermostat to "

Post by nlohmann »

I'm afraid that also does not work - the documentation is really broken.

What works: go to http://my.netatmo.com and use the Web Inspector to see the actual API calls being made. The endpoints are https://app.netatmo.net/api/setthermmode and https://app.netatmo.net/syncapi/v1/setthermpoint. This is still really cumbersome, but serves my purpose.

It would be really nice if there were proper documentation, though.
Céline
Posts: 58
Joined: 20 Nov 2017, 18:17

Re: "mode not authorized" when trying to set thermostat to "

Post by Céline »

Hello,

Setthermode is made to set the whole home heating system to use schedule, away or frost guard mode.

If you want to set your thermostat to OFF or MAX, you should be using Setroomthermpoint which permits to modifiy a room mode (and not the home one).
With Setroomthermpoint you can set a room to manual or to home (which will apply the home mode to the room). OFF and MAX are specific as they can only be set on the room that contains the thermostat (otherwise, it can't control any boiler).

Endpoint to use is https://api.netatmo.com/api/setroomthermpoint
Céline - Netatmo Team :D
Post Reply

Return to “Netatmo API”