I am playing with developing a rest application to control my Samsung AC (windfree) and am stuck on the ionizer control.
I expected, that similar to other calls, the following body in the post request will work (full request and response below, but it results in an error that the command is not correct, i kindly ask you for advise, how exactly the syntax should look. Searched for this information in the API documentation and on forums etc. but with no luck.
If you need more details, please let me know.
Thanks beforehand for your support!
Kind regards
jla
Request:
curl -X POST https://api.smartthings.com/v1/devices/XXXXXXXX/commands
-H ‘Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX’
-d ‘{“commands”:[{“component”:“main”,“capability”:“custom.spiMode”,“command”:“setSpiMode”,“arguments”:[“on”]}]}’
response status code:
HTTP/1.1 422 Unprocessable Entity
response body:
{
“requestId”: “44DB31D0-3FD0-4E3E-B139-F1CCD550DD93”,
“error”: {
“code”: “ConstraintViolationError”,
“message”: “The request is malformed.”,
“details”: [
{
“code”: “NotValidValue”,
“target”: “[0].command”,
“message”: “setSpiMode is not a valid value.”,
“details”:
}
]
}
}
I am not familiar with spiMode but I assume it is S-Plasma Ion (SPI).
I am unable to find the commands that this capability accepts. “setSpiMode” likely is not a valid command. I requested more information about this capability and will share that once I receive it.
EDIT: This custom capability is intended to show the state of the SPI but is not controllable via SmartThings.
Would be great if you could share progress on this. I have the WiFi-kit with dvm system using AM007NN1DCH/AA ceiling cassettes. Samsung’s existing ST integration is very limited.