setComponentState
Testing Env
https://{{host}}:8092
Testing Env
https://{{host}}:8092
POST
/json-rpc/component
WebsocketHTTP/S
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location -g --request POST 'https://localhost:8092/json-rpc/component' \
--header 'Content-Type: application/json' \
--data-raw '{
"command": "componentstate",
"instance": [
0
],
"componentstate": {
"component": "LEDDEVICE",
"state": false
},
"tan": 4711
}'
Response Response Example
Success
{
"command": "componentstate",
"success": true,
"tan": 4711
}
Request
Body Params application/json