Hello
I have problem in my air conditioner Display On/Off Command
Unlike other commands, it doesn’t have its own capability. I guess It needs execute command
I found clue on exec capability in logs
So execute capability is
"commands": {
"execute": {
"arguments": [
{
"name": "command",
"optional": false,
"schema": {
"title": "String",
"type": "string",
"maxLength": 255
}
},
{
"name": "args",
"optional": true,
"schema": {
"title": "JsonObject",
"type": "object"
}
}
]
}
}
My target command is Display_Off like below
"execute": {
"data": {
"value": {
"payload": {
"rt": [
"x.com.samsung.da.mode"
],
"if": [
"oic.if.baseline",
"oic.if.a"
],
"x.com.samsung.da.supportedModes": [
"AIComfort",
"Cool",
"Dry",
"ComfortCooling",
"Wind"
],
"x.com.samsung.da.modes": [
"ComfortCooling"
],
"x.com.samsung.da.options": [
...............................................
"DiagnosisAI_Off",
"Display_On",
"ProgressDiagnosisAI_1",
...........................................
]
}
},
"data": {
"href": "/mode/vs/0"
},
"timestamp": "2021-08-01T00:23:20.046Z"
}
},
So I designed APi Body like below, but not working
{
"commands": [
{
"component": "main",
"capability": "execute",
"command": "execute",
"arguments": [
"Display_Off"
]
}
]
}
Could you give me advice for that? I guess “x.com.samsung.da.options” should be placed at some point but I have no clue.
Thanks