sendCloudAbstractCommand
- Send cloud.controller_abstracts_set request to Cloud. Controller should convert execution of this block to request and send it to Cloud. Scene is blocked until answer would be received. If answer was received and it has error field with null value then next then-block should be processed. If no answers in 1 minute or answer has error then scene should be failed and stopped. If controller doesn’t have connection with cloud then scene should be failed.
Edit
Field | Type | Required | Description |
---|---|---|---|
blockOptions.method.args.abstractId | string | + | Argument declaration of Abstract ID of command. The name is . The type is . |
blockOptions.method.args.capability | string | + | Argument declaration of Capability. The name is . The type is . |
blockOptions.method.args.command | string | + | Argument declaration of Command . The name is . The type is . |
blockOptions.method.args.parameters | string | + | Argument declaration of Parameters. The name is . The type is . |
Edit
Edit
{
"blockOptions":{
"method":{
"name":"sendCloudAbstractCommand",
"args":{
"abstractId":"abstract",
"capability":"capability",
"command":"command",
"parameters":"parameters"
}
}
},
"blockType":"then",
"fields":[
{
"name":"abstract",
"type":"string",
"value": "asdasdn-2342342-23423"
},
{
"name":"capability",
"type":"string",
"value": "text_command"
},
{
"name":"command",
"type":"string",
"value": "send"
},
{
"name":"parameters",
"type":"object",
"value": {
"text": "turn on the light"
}
}
]
}
Edit
Example of Cloud request:
{
"id": "5c6ec961cc01eb07f86f9dd9",
"method": "cloud.controller_abstracts_set",
"api": "1.0",
"params": {
"uuid": "asdasdn-2342342-23423",
"capability": "text_command",
"command": "send",
"parameters": {
"text": "turn on the light"
}
}
}