API getmeasure change

michael.parry.87

Hello,

I created an application over a year ago to have all my temperature curves and other measurements on a single graph (the new app does this now, but it’s limited to five measurements).

It still works well, except for the thermostatic valves. Since March, it has been returning the same temperatures within the requested interval.

I use the same endpoint for everything (Thermostat, Valve, and Indoor/Outdoor Weather Station) /getmeasure, because it always returns the same type of response and I can target specific valves (I have two in a large room, for example).

Payload:

module_id: xx:xx:xx:xx:xx:xx
device_id: 7xx:xx:xx:xx:xx:xx
type: temperature
scale: 30min
date_begin: 1718402400
date_end: 1718488799

Réponse :


{
"body": [
{
"beg_time": 1718403300,
"step_time": 1800,
"value": [
[21.1],
[21.1],
[21.1],
[21.1],
...
]
}
],
"status": "ok",
"time_exec": 0.027194976806640625,
"time_server": 1718454984
}

I could use the /getroommeasure endpoint, but I would lose the detail of each valve and the response is not in the same format.

How can I explain this difference?

Thank you in advance.

0

Comments

6 comments

  • Comment author
    Leslie Community moderator

    Hello Michael, 

    Please talk in English on the forum part, so that other users can also understand and help you

    First, could you try via the webapp to see what values you retrieve for your radiator valves ? (https://home.netatmo.com/ > Click on the 3 dots > Download data)

    Then, can you please send me via the contact form the email address of your Netatmo end-user account + the exact payload you send to our servers and its response ?

    (We can speak in French via the contact form tickets ;)) 

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    michael.parry.87

    Yes, sorry, I couldn't find an API section in the French forum.
    I will translate my original post.
    I'll send you the information.

    0
  • Comment author
    michael.parry.87
    • Edited

    The temperature are good from your webapp:

    But I only see one temperature in this room, even though I have two valves. As will return me the endpoints /getroommesure or your internal endpoint /gethomemesure.

    Here is the result on me app:

    0
  • Comment author
    Leslie Community moderator

    Hello,

    I answered you directly via the contact form

    In a nutshell if it can help somebody else : the /getmeasure endpoint for a NATherm1 thermostat doesn't support the "temperature" type. Instead of sending a 400 error it sends a 200 with false values, which is kinda perturbing 

    The correct endpoint to use is /getroommeasure (documentation here : https://dev.netatmo.com/apidocumentation/energy)

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    michael.parry.87

    Hi, I'm in the process of upgrading my app following our exchange.
    I'm making a lot of comparisons with your web app.

    Is there any way to get `heating_power_request` from a room like your `/gethomemeasure` endpoint?

    I'm asking you again, as in my e-mail, but isn't it planned to remove the limit of 4 measurements in your web app? (in this case, I no longer need my app 😅).

    Or else make your new `/gethomemeasure` endpoint available for public?

    0
  • Comment author
    Leslie Community moderator

    Hello Michael,

    For now, the /gethomemeasure endpoint is only available with a higher token level (webapp/native Netatmo app)

    I'll ask to the teams but I doubt they have the will to make it available to a third-party token level

    I also asked the team in charge of the webapp if it's planned to extend the measurements shown. I'm waiting for their feedback

    Have a good day,

    Leslie - Community Manager

    0

Please sign in to leave a comment.