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.

Hi, @Philippe_Leborgne
Sorry for the delay.
Could you share the following info, please?

  1. Confirm if the email you use in ST is the same one you use here in the Community.
  2. The device name
  3. Provide support access by following these steps:
  1. Go to the SmartThings Web (my.smartthings.com)
  2. Log in to your Samsung Account
  3. Select Menu (â‹®) and choose Settings
  4. Toggle on Account Data Access
  5. Select the time period and confirm - In this step, please select “Until turned off”, once the team finishes, we’ll let you know so you can disable it again

Hi, nayeliz,

Yes, my ST email is identical to the one I use in the community.
I have enabled access to my account data.

Here are my device identities. They all have the same answers :

  1. Climatiseur SĂ©jour : C097276C-D0B0-0000-0000-000000000000
  2. Climatiseur Salon : C097276C-D242-0000-0000-000000000000
  3. Climatiseur Chambre : C0972705-55AA-0000-0000-000000000000
1 Like

Hi nayeliz,
Have you found a moment to look at this problem?

I have the same problem. Are there any options on getting the data from another API structure, because I would need access to the same data and command options as the mobile app can display.

Unfortunately, the Smartthings community has stopped communicating on this subject. I don’t know the reason. I wish you better luck than me.