Forum

Browse topics, discover Works With Legrand community!

Info regarding Smarther POST – Boost

I tried to use this
{
“function”: “heating”,
“mode”: “boost”,
“activationTime”: “2018-12-06T16:00:00”
}

Now is 2018-12-06T15:00:00, but returns error.
What’s the required fields for set boost?
Bye
Sandro

Hello Sandro,

Can you tell me what is the error you have ?
And which Smarther API did you use ?

Have a good day,
Leslie – Community Manager

This works fine

POST https://api.developer.legrand.com/smarther/v1.0/chronothermostat/thermoregulation/addressLocation/plants/8476aa7b-7685-5f,,,/modules/parameter/id/value/dd78aa7b-ad43-c22,,,,,,,,,, HTTP/1.1
Host: api.developer.legrand.com
Content-Type: application/json
Ocp-Apim-Subscription-Key: 82f90,,,,,,,d13846
Authorization: Bearer eyJ0eXAiOiJKV1QiL……wv-g

{
“function”: “heating”,
“mode”: “manual”,
“setPoint”: 21.0,
“activationTime”: “2018-12-06T18:00:00”
}

this NO

POST https://api.developer.legrand.com/smarther/v1.0/chronothermostat/thermoregulation/addressLocation/plants/8476aa7b-7685-5f,,,/modules/parameter/id/value/dd78aa7b-ad43-c22,,,,,,,,,, HTTP/1.1
Host: api.developer.legrand.com
Content-Type: application/json
Ocp-Apim-Subscription-Key: 82f90,,,,,,,d13846
Authorization: Bearer eyJ0eXAiOiJKV1QiL……wv-g
{
“function”: “heating”,
“mode”: “boost”,
“activationTime”: “2018-12-06T18:00:00”
}

with this answer

Warning: Bad request
Vary: Host
X-Frame-Options: SAMEORIGIN
X-MULE_SESSION: rO0ABXNyACNvcmc…………..JeHB4
http.status: 400
Service_Release: 2.18.0
Node_ID: 2
Set-Cookie: dtCookie=9234078FF01D3E6C1C1C6……….mljZXN8MQ; Path=/; Domain=.myhomeweb.com;HttpOnly;Secure,My_prod_session=!GZnCOefZsPIASkGHfGIUT7QqV2r0S978Li+sW7A8qUqqP39IT2yuQQQQe7qiTaZK0/PQ2C2OHISo6+RI1fYD6ut5RizmynDs+r3lKLs=; path=/; Httponly; Secure
Date: Thu, 06 Dec 2018 16:11:50 GMT
Connection: close
Content-Length: 44
Content-Type: application/json

{
“statusCode”: “400”,
“message”: “Bad request”
}

I looked at the documentation : https://portal.developer.legrand.com/docs/services/5a00867ea719680f8450b985/export?DocumentFormat=Swagger

I saw that :
"activationTime": {
"type": "string",
"pattern": "[0-9]{4}(-[0-9]{1,2}){2}T[0-9]{2}(:[0-9]{2}){2}(/[0-9]{4}(-[0-9]{1,2}){2}T[0-9]{2}(:[0-9]{2}){2})?",
"description": "Date and time (format YYYY-MM-DDThh:mm:ss) to which new working mode will be maintained. For boost mode, duration is limited to 30, 60 or 90 minutes, indicating starting (current) and final date and time. Required parameter for boost mode, optional for manual, off and protection modes"
}

As I understand, you have to define a final date and time for the boost mode in order to tell the Smarther if he has to heat for 30, 60 or 90 minutes

I hope it will work fine 😉

Sincerely,
Leslie – Community Manager

This works for me:
{
“function”: “heating”,
“mode”: “boost”,
“setPoint”: 0.0,
“programs”: [
{
“number”: 0
}
],
“activationTime”: “2018-12-06T16:00:00/2018-12-06T16:30:00”
}
I have not tried if “setpoint” and “programs” are required.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Info regarding Smarther POST – Boost’ is closed to new replies.