Hi
This is my first time at using the API to send a command.
I have successfully received the status of the switch (using bearer authorization)
GET
https://api.smartthings.com/v1/devices/{deviceId}/status
the status reply is:
payload.components.main.switch.switch.value.off
But my attempt at sending the command below fails and returns 406
PUT
https://api.smartthings.com/v1/devices/{deviceId}/commands.components.main.switch.switch.value. [off]
Postman status reply:
{
“components”: {
“main”:
“switch”: {
“switch”: {
“value”: “off”
}
}
}
}
Please could someone give me a pointer
Thanks in advance