airFlowDirection / status:dead

Hello all, I’m newbie here.
I’m creating an application to automatically set some conditions to air-conditioners based on other sensor on the room but some conditions are not able to set (like airFlowDirection)
Any one know how to set this condition (I’m get alot of information on “execute” tag but I don’t know how to set it based on SmartThings API documentation).

Thank you all!

As the thread title says, the ‘Air Flow Direction’ capability is ‘dead’ and so I wouldn’t expect any joy using it.

There may be an obvious replacement.

There is a proposed “Fan Oscillation Mode”, however I don’t know whether it works or not.

That’s was the question, if someone know about any replacement for that.

I’ve checked that OCF states are on data/payload but reading all API documentation there is no way to write on it or send any comands.

My device is not sending this feature.

I tried to define it, but I received “fanOscillationMode is not a valid value” for capacity (even seeing that it exists in the SmartThings API)

So, back to the drawing board…

Do you have a working device (air conditioner) which is working with ST already? Query the capabilities of the device, and then make the API call with those.

Or are you trying to create a DH for a device, and want to use something similar as the airFlowDirection, because your device has a function like that? You can create custom capabilities for your device.

This is a Samsung device (WindFree air-con)

The automation is quite simple but I can’t see comands to do that because I cant send commands to air direction and device-lights

  • If temperature reaches fixed value stop air direction (set to none) and special mode to comfort
  • If the sun is down and room lights are off set device-lights to off

But all of these capabilities doesn’t exists (only inside an attribute called “execute” that have all OCF information probably)

Ok, what do you get, if you do the following with the CLI?

smartthings devices:status [deviceID]

Does it give you any useful info there?

But otherwise, I used to have a Samsung AC, before it became SmartThings everything regarding home automation. And I believe that turning on the “Virus Doctor” light and something else wasn’t available from the app. (That was with the Smart Air Conditioner app, back before 2014.)

Hello, I don’t have CLI (I cant found the download anymore)
I’m using postman to explore the REST API using the documentation.

This is the json returned by the device:

The problem is that not all capabilities are available to send commands but all are available in SmartThings app.

{
    "components": {
        "main": {
            "relativeHumidityMeasurement": {
                "humidity": {
                    "value": 61,
                    "unit": "%",
                    "timestamp": "2020-06-27T02:19:38.539+0000"
                }
            },
            "custom.airConditionerOdorController": {
                "airConditionerOdorControllerProgress": {
                    "value": null,
                    "timestamp": "2020-06-24T18:00:13.563+0000"
                },
                "airConditionerOdorControllerState": {
                    "value": null,
                    "timestamp": "2020-06-24T18:00:13.563+0000"
                }
            },
            "custom.thermostatSetpointControl": {
                "minimumSetpoint": {
                    "value": null,
                    "timestamp": "2020-06-24T16:23:26.308+0000"
                },
                "maximumSetpoint": {
                    "value": null,
                    "timestamp": "2020-06-24T16:23:26.308+0000"
                }
            },
            "airConditionerMode": {
                "supportedAcModes": {
                    "value": [
                        "cool",
                        "dry",
                        "wind",
                        "auto",
                        "heat"
                    ],
                    "timestamp": "2020-05-26T10:43:15.903+0000"
                },
                "airConditionerMode": {
                    "value": "cool",
                    "timestamp": "2020-07-01T00:44:38.965+0000"
                }
            },
            "custom.spiMode": {
                "spiMode": {
                    "value": "off",
                    "timestamp": "2020-06-27T13:21:34.002+0000"
                }
            },
            "airQualitySensor": {
                "airQuality": {
                    "value": null,
                    "unit": "CAQI",
                    "timestamp": "2020-06-24T16:19:32.315+0000"
                }
            },
            "custom.airConditionerOptionalMode": {
                "supportedAcOptionalMode": {
                    "value": [
                        "off",
                        "windFree"
                    ],
                    "timestamp": "2020-01-13T23:26:34.700+0000"
                },
                "acOptionalMode": {
                    "value": "off",
                    "timestamp": "2020-06-20T10:52:41.604+0000"
                }
            },
            "switch": {
                "switch": {
                    "value": "on",
                    "timestamp": "2020-07-01T13:33:29.093+0000"
                }
            },
            "custom.airConditionerTropicalNightMode": {
                "acTropicalNightModeLevel": {
                    "value": 0,
                    "timestamp": "2020-02-02T00:50:18.763+0000"
                }
            },
            "ocf": {
                "st": {
                    "value": null,
                    "timestamp": "2020-06-23T21:47:53.194+0000"
                },
                "mndt": {
                    "value": null,
                    "timestamp": "2020-06-24T13:52:31.141+0000"
                },
                "mnfv": {
                    "value": "0.1.0",
                    "timestamp": "2020-01-13T23:26:33.202+0000"
                },
                "mnhw": {
                    "value": "1.0",
                    "timestamp": "2020-01-13T23:26:33.215+0000"
                },
                "di": {
                    "value": "xxxxxxxxxxxxxx",
                    "timestamp": "2020-01-13T23:26:33.427+0000"
                },
                "mnsl": {
                    "value": null,
                    "timestamp": "2020-06-23T23:48:22.566+0000"
                },
                "dmv": {
                    "value": "res.1.1.0,sh.1.1.0",
                    "timestamp": "2020-01-13T23:26:33.439+0000"
                },
                "n": {
                    "value": "[room a/c] Samsung",
                    "timestamp": "2020-01-13T23:26:33.549+0000"
                },
                "mnmo": {
                    "value": "xxxxxxxxxxxx",
                    "timestamp": "2020-01-13T23:26:33.357+0000"
                },
                "vid": {
                    "value": "xxxxxxxxxxxxx",
                    "timestamp": "2020-01-13T23:26:33.404+0000"
                },
                "mnmn": {
                    "value": "Samsung Electronics",
                    "timestamp": "2020-01-13T23:26:33.381+0000"
                },
                "mnml": {
                    "value": "http://www.samsung.com",
                    "timestamp": "2020-01-13T23:26:33.369+0000"
                },
                "mnpv": {
                    "value": "0.1.0",
                    "timestamp": "2020-01-13T23:26:33.344+0000"
                },
                "mnos": {
                    "value": "TizenRT2.0",
                    "timestamp": "2020-01-13T23:26:33.228+0000"
                },
                "pi": {
                    "value": "xxxxxxxxxxxxxxxx",
                    "timestamp": "2020-01-13T23:26:33.393+0000"
                },
                "icv": {
                    "value": "core.1.1.0",
                    "timestamp": "2020-01-13T23:26:33.454+0000"
                }
            },
            "airConditionerFanMode": {
                "fanMode": {
                    "value": "high",
                    "timestamp": "2020-07-01T11:54:47.675+0000"
                },
                "supportedAcFanModes": {
                    "value": [
                        "auto",
                        "low",
                        "medium",
                        "high",
                        "turbo"
                    ],
                    "timestamp": "2020-01-13T23:26:34.623+0000"
                }
            },
            "custom.electricHepaFilter": {
                "electricHepaFilterCapacity": {
                    "value": null,
                    "timestamp": "2020-06-23T20:41:21.219+0000"
                },
                "electricHepaFilterUsageStep": {
                    "value": null,
                    "timestamp": "2020-06-23T20:41:21.219+0000"
                },
                "electricHepaFilterStatus": {
                    "value": null,
                    "timestamp": "2020-06-23T20:41:21.219+0000"
                },
                "electricHepaFilterUsage": {
                    "value": null,
                    "timestamp": "2020-06-23T20:41:21.219+0000"
                },
                "electricHepaFilterResetType": {
                    "value": null,
                    "timestamp": "2020-06-23T20:41:21.219+0000"
                }
            },
            "custom.disabledCapabilities": {
                "disabledCapabilities": {
                    "value": [
                        "airFlowDirection",
                        "dustSensor",
                        "odorSensor",
                        "airQualitySensor",
                        "odorSensor",
                        "veryFineDustSensor",
                        "remoteControlStatus",
                        "custom.airConditionerOdorController",
                        "demandResponseLoadControl",
                        "custom.dustFilter",
                        "custom.deodorFilter",
                        "custom.eletricHepaFilter",
                        "custom.periodicSensing",
                        "custom.doNotDisturbMode"
                    ],
                    "timestamp": "2020-05-26T10:43:16.016+0000"
                }
            },
            "temperatureMeasurement": {
                "temperature": {
                    "value": 17,
                    "unit": "C",
                    "timestamp": "2020-07-01T12:02:33.928+0000"
                }
            },
            "dustSensor": {
                "dustLevel": {
                    "value": null,
                    "unit": "μg/m^3",
                    "timestamp": "2020-06-23T20:37:49.477+0000"
                },
                "fineDustLevel": {
                    "value": null,
                    "unit": "μg/m^3",
                    "timestamp": "2020-06-23T20:37:49.477+0000"
                }
            },
            "custom.deviceReportStateConfiguration": {
                "reportStateRealtimePeriod": {
                    "value": null,
                    "timestamp": "2020-06-23T17:57:37.457+0000"
                },
                "reportStateRealtime": {
                    "value": null,
                    "timestamp": "2020-06-23T17:57:37.457+0000"
                },
                "reportStatePeriod": {
                    "value": null,
                    "timestamp": "2020-06-23T17:57:37.457+0000"
                }
            },
            "custom.periodicSensing": {
                "automaticExecutionSetting": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "automaticExecutionMode": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "supportedAutomaticExecutionSetting": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "supportedAutomaticExecutionMode": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "periodicSensing": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "periodicSensingInterval": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "lastSensingTime": {
                    "value": null,
                    "unit": "second",
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "lastSensingLevel": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                },
                "periodicSensingStatus": {
                    "value": null,
                    "timestamp": "2020-06-23T20:32:40.679+0000"
                }
            },
            "thermostatCoolingSetpoint": {
                "coolingSetpoint": {
                    "value": 16,
                    "unit": "C",
                    "timestamp": "2020-07-01T11:55:19.061+0000"
                }
            },
            "demandResponseLoadControl": {
                "drlcStatus": {
                    "value": {
                        "duration": 0,
                        "drlcLevel": -1,
                        "start": "1970-01-01T00:00:00Z",
                        "override": false
                    },
                    "timestamp": "2020-01-13T23:26:34.850+0000"
                }
            },
            "audioVolume": {
                "volume": {
                    "value": 0,
                    "unit": "%",
                    "timestamp": "2020-07-01T04:14:37.523+0000"
                }
            },
            "powerConsumptionReport": {
                "powerConsumption": {
                    "value": {
                        "energySaved": 0,
                        "powerEnergy": 0.0,
                        "persistedEnergy": 291600.0,
                        "start": "2020-07-01T09:51:55Z",
                        "deltaEnergy": 200.0,
                        "power": 0,
                        "end": "2020-07-01T10:21:54Z",
                        "energy": 291600.0
                    },
                    "timestamp": "2020-07-01T10:21:54.188+0000"
                }
            },
            "custom.autoCleaningMode": {
                "autoCleaningMode": {
                    "value": "off",
                    "timestamp": "2020-07-01T10:55:28.241+0000"
                }
            },
            "custom.outingMode": {
                "outingMode": {
                    "value": null,
                    "timestamp": "2020-06-23T17:53:01.748+0000"
                }
            },
            "refresh": {},
            "airFlowDirection": {
                "airFlowDirection": {
                    "value": "fixed",
                    "timestamp": "2020-06-26T04:08:56.696+0000"
                }
            },
            "custom.dthVersion": {
                "versionNumber": {
                    "value": 20050701,
                    "timestamp": "2020-05-26T10:43:16.031+0000"
                }
            },
            "execute": {
                "data": {
                    "value": {
                        "payload": {
                            "supportedModes": [
                                "Cool",
                                "Dry",
                                "Wind",
                                "Auto",
                                "Heat",
                                "HOMECARE_WIZARD_V2"
                            ],
                            "if": [
                                "oic.if.baseline",
                                "oic.if.a"
                            ],
                            "rt": [
                                "oic.r.mode"
                            ],
                            "modes": [
                                "Cool"
                            ]
                        }
                    },
                    "data": {},
                    "timestamp": "2020-07-01T13:33:29.184+0000"
                }
            },
            "custom.error": {
                "error": {
                    "value": {
                        "timestamp": 1593395440461,
                        "message": "NotAcceptable - Desired mode is same with current mode",
                        "component": "main",
                        "args": {
                            "value": "on"
                        },
                        "command": "setAutoCleaningMode",
                        "code": 406,
                        "capability": "custom.autoCleaningMode"
                    },
                    "timestamp": "2020-06-29T01:50:40.483+0000"
                }
            },
            "custom.dustFilter": {
                "dustFilterUsageStep": {
                    "value": null,
                    "timestamp": "2020-06-23T16:25:49.619+0000"
                },
                "dustFilterUsage": {
                    "value": null,
                    "timestamp": "2020-06-23T16:25:49.619+0000"
                },
                "dustFilterStatus": {
                    "value": null,
                    "timestamp": "2020-06-23T16:25:49.619+0000"
                },
                "dustFilterCapacity": {
                    "value": null,
                    "timestamp": "2020-06-23T16:25:49.619+0000"
                },
                "dustFilterResetType": {
                    "value": null,
                    "timestamp": "2020-06-23T16:25:49.619+0000"
                }
            },
            "remoteControlStatus": {
                "remoteControlEnabled": {
                    "value": null,
                    "timestamp": "2020-06-23T13:19:30.646+0000"
                }
            },
            "odorSensor": {
                "odorLevel": {
                    "value": null,
                    "timestamp": "2020-06-23T13:25:13.382+0000"
                }
            },
            "custom.deodorFilter": {
                "deodorFilterCapacity": {
                    "value": null,
                    "timestamp": "2020-06-23T15:59:14.183+0000"
                },
                "deodorFilterStatus": {
                    "value": null,
                    "timestamp": "2020-06-23T15:59:14.183+0000"
                },
                "deodorFilterResetType": {
                    "value": null,
                    "timestamp": "2020-06-23T15:59:14.183+0000"
                },
                "deodorFilterUsage": {
                    "value": null,
                    "timestamp": "2020-06-23T15:59:14.183+0000"
                },
                "deodorFilterUsageStep": {
                    "value": null,
                    "timestamp": "2020-06-23T15:59:14.183+0000"
                }
            },
            "custom.deviceDependencyStatus": {
                "subDeviceActive": {
                    "value": null,
                    "timestamp": "2020-06-23T13:14:26.651+0000"
                },
                "dependencyStatus": {
                    "value": "single",
                    "timestamp": "2020-01-13T23:26:34.880+0000"
                },
                "numberOfSubDevices": {
                    "value": null,
                    "timestamp": "2020-06-23T12:51:25.724+0000"
                }
            },
            "custom.energyType": {
                "energyType": {
                    "value": "1.0",
                    "timestamp": "2020-01-13T23:26:34.835+0000"
                }
            },
            "veryFineDustSensor": {
                "veryFineDustLevel": {
                    "value": null,
                    "unit": "μg/m^3",
                    "timestamp": "2020-06-23T12:47:42.070+0000"
                }
            },
            "custom.doNotDisturbMode": {
                "doNotDisturb": {
                    "value": null,
                    "timestamp": "2020-06-23T12:34:13.046+0000"
                },
                "startTime": {
                    "value": null,
                    "timestamp": "2020-06-23T12:34:13.046+0000"
                },
                "endTime": {
                    "value": null,
                    "timestamp": "2020-06-23T12:34:13.046+0000"
                }
            }
        }
    }
}

That explains a lot. i don’t think that you will be able to change that. The DH doesn’t support it, it must be a way how it is reading the value, but there isn’t a way to alter it.

This must be the value read from the unit:

“airFlowDirection”: {
“airFlowDirection”: {
“value”: “fixed”,
“timestamp”: “2020-06-26T04:08:56.696+0000”
}

Yes, I can read but cannot set (when check the condition the state is “dead” and on the device it’s disabled)

But SmartThings application can set this so it’s probably using another API that is not public, unfortunately.

Really? Do you mean, that in the app you can control it?

Yes!

Air flow direction, device lights (illumination), device special mode (comfort, dual stage cooling, etc)
I don’t need to use device IR for nothing.

Everything is possible using SmartThings APP, it’s strange that it’s not exposed on the API because the app uses an API to do that (and it’s online because I can set it from 4g and it says offline if there is no internet in my Wi-Fi connection)

I think I found something.

The command is “postOcfCommand” but I dont know how to use this.

This is the return of this capability:

{

"id": "ocf",

"version": 1,

"status": "proposed",

"name": "Ocf",

"attributes": {

    "n": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "icv": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "dmv": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "di": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "pi": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnmn": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnml": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnmo": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mndt": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnpv": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnos": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnhw": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnfv": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "mnsl": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "st": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    },

    "vid": {

        "schema": {

            "title": "StringAttribute",

            "type": "object",

            "properties": {

                "value": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            "additionalProperties": false,

            "required": [

                "value"

            ]

        },

        "enumCommands": []

    }

},

"commands": {

    "postOcfCommand": {

        "arguments": [

            {

                "name": "href",

                "optional": false,

                "schema": {

                    "title": "String",

                    "type": "string",

                    "maxLength": 255

                }

            },

            {

                "name": "value",

                "optional": false,

                "schema": {

                    "title": "JsonObject",

                    "type": "object"

                }

            }

        ]

    }

}

}

This is the POST but I dont know what is the info need on “arguments”
{

“commands”: [

{

  "component": "main",

  "capability": "ocf",

  "command": "postOcfCommand",

  "arguments": [

    
  ]

}

]

}

Hello all.

I’ve managed this.

You need to use this (the resouce, I got this using OCF Device Spy seconds after I power-on my router because the A/C close all ports after some hours running)

Return /oic/res

[
   {
      "di":"xxxxxx",
      "links":[
         {
            "href":"/oic/sec/doxm",
            "rt":[
               "oic.r.doxm"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/oic/sec/pstat",
            "rt":[
               "oic.r.pstat"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/oic/d",
            "rt":[
               "oic.wk.d",
               "oic.d.airconditioner"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.r"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/oic/p",
            "rt":[
               "oic.wk.p"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.r"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/device/0",
            "rt":[
               "x.com.samsung.devcol",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/0",
            "rt":[
               "oic.r.switch.binary"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/vs/0",
            "rt":[
               "x.com.samsung.da.operation"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/desired/0",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/current/0",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperatures/vs/0",
            "rt":[
               "x.com.samsung.da.temperatures"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/0",
            "rt":[
               "oic.r.airflow"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/vs/0",
            "rt":[
               "x.com.samsung.da.wind"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/0",
            "rt":[
               "oic.r.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/vs/0",
            "rt":[
               "x.com.samsung.da.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/diagnosis/vs/0",
            "rt":[
               "x.com.samsung.da.diagnosis"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/alarms/vs/0",
            "rt":[
               "x.com.samsung.da.alarms"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/0",
            "rt":[
               "oic.r.energy.consumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/vs/0",
            "rt":[
               "x.com.samsung.da.energyconsumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/configuration/vs/0",
            "rt":[
               "x.com.samsung.da.configuration"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/information/vs/0",
            "rt":[
               "x.com.samsung.file.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/0",
            "rt":[
               "oic.r.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/consumable/vs/0",
            "rt":[
               "x.com.samsung.da.consumable"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/vs/0",
            "rt":[
               "x.com.samsung.da.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/multidevice/vs/0",
            "rt":[
               "x.com.samsung.da.multidevice"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/sec/devices",
            "rt":[
               "x.com.samsung.devcol",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/sec/accesspointlist",
            "rt":[
               "x.com.samsung.accesspointlist"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/actions/vs/0",
            "rt":[
               "x.com.samsung.da.actions"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/transfer/vs/0",
            "rt":[
               "x.com.samsung.file.transfer"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/sec/provisioninginfo",
            "rt":[
               "x.com.samsung.provisioninginfo"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/information/vs/0",
            "rt":[
               "x.com.samsung.da.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/hass/state/vs/0",
            "rt":[
               "x.com.samsung.da.hass.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/hass/command/vs/0",
            "rt":[
               "x.com.samsung.da.hass.command"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/list/vs/0",
            "rt":[
               "x.com.samsung.file.list"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/transfer/chunk/vs/0",
            "rt":[
               "x.com.samsung.file.chunk"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/rm/state/vs/0",
            "rt":[
               "x.com.samsung.da.rm.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/rm/micomdata/vs/0",
            "rt":[
               "x.com.samsung.da.rm.micomdata"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/device/1",
            "rt":[
               "x.com.samsung.devcol",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/1",
            "rt":[
               "oic.r.switch.binary"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/power/vs/1",
            "rt":[
               "x.com.samsung.da.operation"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/desired/1",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperature/current/1",
            "rt":[
               "oic.r.temperature"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/temperatures/vs/1",
            "rt":[
               "x.com.samsung.da.temperatures"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/1",
            "rt":[
               "oic.r.airflow"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/airflow/vs/1",
            "rt":[
               "x.com.samsung.da.wind"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/1",
            "rt":[
               "oic.r.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/mode/vs/1",
            "rt":[
               "x.com.samsung.da.mode"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/diagnosis/vs/1",
            "rt":[
               "x.com.samsung.da.diagnosis"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/alarms/vs/1",
            "rt":[
               "x.com.samsung.da.alarms"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/1",
            "rt":[
               "oic.r.energy.consumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/energy/consumption/vs/1",
            "rt":[
               "x.com.samsung.da.energyconsumption"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/configuration/vs/1",
            "rt":[
               "x.com.samsung.da.configuration"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/information/vs/1",
            "rt":[
               "x.com.samsung.file.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/1",
            "rt":[
               "oic.r.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/consumable/vs/1",
            "rt":[
               "x.com.samsung.da.consumable"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/humidity/vs/1",
            "rt":[
               "x.com.samsung.da.humidity"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/actions/vs/1",
            "rt":[
               "x.com.samsung.da.actions"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/file/transfer/vs/1",
            "rt":[
               "x.com.samsung.file.transfer"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/information/vs/1",
            "rt":[
               "x.com.samsung.da.information"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/hass/state/vs/1",
            "rt":[
               "x.com.samsung.da.hass.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/hass/command/vs/1",
            "rt":[
               "x.com.samsung.da.hass.command"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/list/vs/1",
            "rt":[
               "x.com.samsung.file.list"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.s"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/file/transfer/chunk/vs/1",
            "rt":[
               "x.com.samsung.file.chunk"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":1,
               "sec":false,
               "x.org.iotivity.tcp":0
            }
         },
         {
            "href":"/rm/state/vs/1",
            "rt":[
               "x.com.samsung.da.rm.state"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/rm/micomdata/vs/1",
            "rt":[
               "x.com.samsung.da.rm.micomdata"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.a"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/EasySetupResURI",
            "rt":[
               "oic.r.easysetup",
               "oic.wk.col"
            ],
            "if":[
               "oic.if.baseline",
               "oic.if.ll",
               "oic.if.b"
            ],
            "p":{
               "bm":1,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/WiFiConfResURI",
            "rt":[
               "oic.r.wificonf"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/CoapCloudConfResURI",
            "rt":[
               "oic.r.coapcloudconf"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         },
         {
            "href":"/DevConfResURI",
            "rt":[
               "oic.r.devconf"
            ],
            "if":[
               "oic.if.baseline"
            ],
            "p":{
               "bm":3,
               "sec":true,
               "port":49155,
               "x.org.iotivity.tls":46228
            }
         }
      ]
   }
]

And this is the way to send OCF commands to the unit

{
   "commands":[
      {
         "component":"main",
         "capability":"execute",
         "command":"execute",
         "arguments":[
            "airflow/vs/0",
            {
               "x.com.samsung.da.direction":"Left_And_Right"
            }
         ]
      }
   ]
}

Valid options are All / Up_And_Low / Left_And_Right / Fix

You can check here for some samples on how to use OCF: https://openconnectivityfoundation.github.io/devicemodels/docs/resource-enum.html

2 Likes

Hey, I know how you got the resource name x.com.samsung.da.direction, but can you tell me how you found out about the possible arguments All / Up_And_Low / Left_And_Right / Fix?

Hello, sorry for long delay… very busy these days…

I just do a GET from API (device info) after change de information on SmartThings APP and check the ‘execute’ content to check the information.

The only thing that until now I can’t send to the Air Con is the Reset Filter, I can get filter information but I cannot send the reset filter to Air Con

No worries, I’be already found a way to achieve what I want, see here: HW-Q990B/Q995B: The app can control the sound mode, but I cannot find it in Smart Things capabilities - #11 by S3basuchian

Maybe it’s of use for you too :slight_smile:

1 Like