API (setpersonshome) works but the server response is bad

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
hsd75
Posts: 19
Joined: 18 Nov 2017, 09:54

API (setpersonshome) works but the server response is bad

Post by hsd75 »

Hello,

I use several Netatmo APIs but I have a problem with one: setpersoneshome.
When I use it, it works fine but I have in return an error:

Code: Select all

{"error":{"message":"Invalid device_id","code":21}}
I only send an ID with the argument "person_ids% 5B0% 5D =" and "home_id =" and of course "access_token".

Thanks in advance for any help.
Daegil_Netatmo
Posts: 31
Joined: 18 Jul 2019, 09:51

Re: API (setpersonshome) works but the server response is bad

Post by Daegil_Netatmo »

Hi!

The invalid device ID usually means that you do not have that device in the account or that your didn't get the MAC right. If you did, please send us more information by contacting our support.

Happy new year! 😁
Daegil
hsd75
Posts: 19
Joined: 18 Nov 2017, 09:54

Re: API (setpersonshome) works but the server response is bad

Post by hsd75 »

Hello,

Happy New Year too.

We could understand that but ... the device ID is not required for this request ...
I haven't had this answer since I fixed the scope problem (I opened another thread for that https://forum.netatmo.com/viewtopic.php?f=5&t=19476 ).
The API responses are sometimes strange. So now it works but doing things that aren't in the documentation.
Post Reply

Return to “Netatmo API”