Mismatch between SmartThings API and SmartThings App

The SmartThings app offers the following 5 modes for my air conditioners:

  1. Auto
  2. Cool
  3. Dry
  4. Fan
  5. Heat

The SmartThings API only offers 4 modes:

{
    "components": {
        "main": {
            "refresh": {},
            "custom.thermostatSetpointControl": {
                "minimumSetpoint": {
                    "value": 16,
                    "timestamp": "2021-08-05T10:26:36.321Z"
                },
                "maximumSetpoint": {
                    "value": 30,
                    "timestamp": "2021-08-05T10:26:36.321Z"
                }
            },
            "airConditionerMode": {
                "supportedAcModes": {
                    "value": [
                        "cool",
                        "dry",
                        "wind",
                        "auto"
                    ],
                    "timestamp": "2021-08-05T10:26:36.366Z"
                },
                "airConditionerMode": {
                    "value": "heat",
                    "timestamp": "2022-11-04T09:52:18.452Z"
                }
            },
            "execute": {
                "data": {
                    "value": null
                }
            },
            "airQualitySensor": {
                "airQuality": {
                    "value": null
                }
            },
            "switch": {
                "switch": {
                    "value": "off",
                    "timestamp": "2022-11-19T10:46:46.605Z"
                }
            },
            "ocf": {
                "st": {
                    "value": null
                },
                "mndt": {
                    "value": null
                },
                "mnfv": {
                    "value": null
                },
                "mnhw": {
                    "value": null
                },
                "di": {
                    "value": "C097276C-D0B0-0000-0000-000000000000",
                    "timestamp": "2021-08-05T10:26:36.272Z"
                },
                "mnsl": {
                    "value": null
                },
                "dmv": {
                    "value": "res.1.1.0,sh.1.1.0",
                    "timestamp": "2021-08-05T10:26:36.272Z"
                },
                "n": {
                    "value": "Climatiseur séjour",
                    "timestamp": "2021-08-05T12:26:37.299Z"
                },
                "mnmo": {
                    "value": "TP6X_RAC_16K|10175541|60010123001111000100000000000000",
                    "timestamp": "2021-08-05T10:26:36.272Z"
                },
                "vid": {
                    "value": "DA-AC-RAC-100001",
                    "timestamp": "2021-08-05T10:26:36.272Z"
                },
                "mnmn": {
                    "value": "Samsung Electronics",
                    "timestamp": "2021-08-05T10:26:36.272Z"
                },
                "mnml": {
                    "value": null
                },
                "mnpv": {
                    "value": null
                },
                "mnos": {
                    "value": null
                },
                "pi": {
                    "value": "shp",
                    "timestamp": "2021-08-05T10:26:36.272Z"
                },
                "icv": {
                    "value": "core.1.1.0",
                    "timestamp": "2021-08-05T10:26:36.272Z"
                }
            },
            "odorSensor": {
                "odorLevel": {
                    "value": null
                }
            },
            "airConditionerFanMode": {
                "fanMode": {
                    "value": "auto",
                    "timestamp": "2022-11-04T09:54:10.878Z"
                },
                "supportedAcFanModes": {
                    "value": [
                        "auto",
                        "low",
                        "medium",
                        "high",
                        "turbo"
                    ],
                    "timestamp": "2021-08-05T10:26:36.386Z"
                }
            },
            "samsungce.driverState": {
                "driverState": {
                    "value": null
                }
            },
            "custom.disabledCapabilities": {
                "disabledCapabilities": {
                    "value": [
                        "odorSensor"
                    ],
                    "timestamp": "2021-08-05T10:26:36.321Z"
                }
            },
            "samsungce.driverVersion": {
                "versionNumber": {
                    "value": 22090101,
                    "timestamp": "2022-10-14T15:29:27.523Z"
                }
            },
            "temperatureMeasurement": {
                "temperature": {
                    "value": 21,
                    "unit": "C",
                    "timestamp": "2022-11-19T12:10:43.473Z"
                }
            },
            "dustSensor": {
                "dustLevel": {
                    "value": null
                },
                "fineDustLevel": {
                    "value": null
                }
            },
            "thermostatCoolingSetpoint": {
                "coolingSetpoint": {
                    "value": 21,
                    "unit": "C",
                    "timestamp": "2022-11-04T09:52:39.409Z"
                }
            }
        }
    }
}
1 Like

Welcome to the SmartThings Community, @Philippe_Leborgne!

Have you tried sending the command to the device to see its response?

OCF devices such as ACs work more on a plugin (ST App) than an API level. This means that not all the capabilities and values shown in the app will be the same in the API. In this post, I shared more info about their functionality:

Thanks for your return nayelyz.

Cool, dry, wind and auto commands work well.
Heat command does not work and sends error code 161 in the SmartThings application.

However, have you noticed that the heat mode is indeed raised in the status command when it is sent by the SmartThings application?

Does the app show a message with that code? Can you share a screenshot, please?

No message in the SmartThings app.
The message is also displayed on the device as E161.