Forum

Browse topics, discover Works With Legrand community!

Set light's status – mistake in BODY when try it

Hi,
in the API “set light status” function, when you select “TRY IT” in the BODY request you find:
{
“status”: “on”,
“level”: 0
}
If try with this you receive a 400 error 21, the correct body for K4003C module is:
{
“status”: “on”
}
value accepted is ON or OFF. The same info is in “set light status” definition.
Is the level appliable for some device?
TIA
silvano

Hello Silvano,

Do you want to use this API to manage a lamp plugged on a electrical outlet ?
In this case, the “POST Set plug’s status” must be used.

If you want to manage the light variation with a light switch, in this case the “POST Set light’s status” must be used

Hoping it will help you,

Have a good day,
Leslie – Community Manager

Silvano, you are right

🙂

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

You must be logged in to reply to this topic.