Hello all,
I have problems with the ( setpersonshome ) in my NodeRED.
The structure is like this:
1. as: (POST)
2. to: https://api.netatmo.com/api/setpersonshome
3. with this specification:
{
"access_token": "5a4xxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"home_id": "5eaxxxxxxxxxxxxxxxxx",
"person_id": "f6dxxxxx-xxxx-xxxx-xxxxxxxxxx"
}
In response I get:
"{"error":{"code":10, "message": "One arg is missing"}}"
When I execute ( setpersonsaway ) with same date only to this address:
https://api.netatmo.com/api/setpersonsaway
everything works and I leave.
I am grateful for your help.
Problems with Welcome and setpersonshome
Re: Problems with Welcome and setpersonshome
Hello Waldone,
I don't know NodeRED, but I think your issue comes from the way you declared persons ID
An array is needed for person_ids[0] (https://dev.netatmo.com/apidocumentatio ... ersonshome)
Maybe that fixing it will resolve your issue
Have a good day,
Leslie - Community Manager
I don't know NodeRED, but I think your issue comes from the way you declared persons ID
An array is needed for person_ids[0] (https://dev.netatmo.com/apidocumentatio ... ersonshome)
Maybe that fixing it will resolve your issue
Have a good day,
Leslie - Community Manager
Re: Problems with Welcome and setpersonshome
Thanks for the tip!
I have already found an error,
- with setpersonsaway it says == "person_id"
- with setpersonshome it says == "person_ids%5B0%5D".
Unfortunately, the ( setpersonshome ) still doesn't work
I'll keep looking
Thank you Waldone
I have already found an error,
- with setpersonsaway it says == "person_id"
- with setpersonshome it says == "person_ids%5B0%5D".
Unfortunately, the ( setpersonshome ) still doesn't work
I'll keep looking
Thank you Waldone
Re: Problems with Welcome and setpersonshome
As Leslie already pointed out, you gotta pass an array of person ids, so instead of
you have to pass in
Code: Select all
{
"access_token": "5a4xxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"home_id": "5eaxxxxxxxxxxxxxxxxx",
"person_id": "f6dxxxxx-xxxx-xxxx-xxxxxxxxxx"
}
Code: Select all
{
"access_token": "5a4xxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"home_id": "5eaxxxxxxxxxxxxxxxxx",
"person_ids": ["f6dxxxxx-xxxx-xxxx-xxxxxxxxxx"]
}