SmartThings Community

Samsung AC always report switch state as ON even if it is powered off

Hi,
I have three Samuing ACs (WiFi model; AR series) in my house and I looking to read / execute commands on these via the rest APIs.
I succesfully added the ACs in the mobile SmartThings app,
I can succesfully retrieve list of devices via rest api
I can succesfully execute commands on ACs
But when I try to read the current device status ( switch ) it always returns ON even if the device is turned off (bith locally via remote control, or via REST api)

example:
curl -H "Authorization: Bearer " https://api.smartthings.com/v1/devices/<my-device-id/components/main/capabilities/switch/status
{“switch”:{“value”:“on”}}

another weird this is this one, cheching for status I can read in the json::
{“supportedAcModes”:{“value”:[“cool”,“dry”,“wind”,“auto”]}

There is missing “heat” option, which my ACs (all of them) have.

any idea?
Thank you
Amedeo

no one here ?

This sounds like a mapping issue regarding the device data. Some appliances use an older protocol known as SHP vs the newer OCF. You can verify this by looking at the platform id “pi” value from https://api.smartthings.com/v1/devices//components/main/capabilities/ocf/status. If you see a UUID, the device is an OCF device. If you see “SHP”, the device is using SHP.

In some cases the device’s data is not mapped to a capability but rather the “data” attribute of the “execute” capability:
https://api.smartthings.com/v1/devices//components/main/capabilities/execute/status

What model are the air conditioners? We may be able to request updated mapping for these values. I am also not sure why “heat” is not being reported.

It looks like to be an OCF here the responses:

    {
      "deviceId": "MAC_ADDRESS_0000-0000-000000000000",
      "name": "Room air conditioner",
      "label": "Sala",
      "locationId": "XXXXXXXX-3650-48a9-bfd9-26240434139c",
      "roomId": "XXXXXXXX-ea09-40d6-b56f-688a349cdd3e",
      "deviceTypeId": "87763316-abf2-40ae-b019-3e56ef15b220",
      "deviceTypeName": "Samsung OCF Air Conditioner",
      "deviceNetworkType": "UNKNOWN",
      "components": [
        {
          "id": "main",
          "capabilities": [
            {
              "id": "temperatureMeasurement",
              "version": 1
            },
            {
              "id": "relativeHumidityMeasurement",
              "version": 1
            },
            {
              "id": "switch",
              "version": 1
            },
            {
              "id": "refresh",
              "version": 1
            },
            {
              "id": "thermostatCoolingSetpoint",
              "version": 1
            },
            {
              "id": "ocf",
              "version": 1
            },
            {
              "id": "audioVolume",
              "version": 1
            },
            {
              "id": "execute",
              "version": 1
            },
            {
              "id": "airQualitySensor",
              "version": 1
            },
            {
              "id": "odorSensor",
              "version": 1
            },
            {
              "id": "airConditionerMode",
              "version": 1
            },
            {
              "id": "remoteControlStatus",
              "version": 1
            },
            {
              "id": "dustSensor",
              "version": 1
            },
            {
              "id": "demandResponseLoadControl",
              "version": 1
            },
            {
              "id": "powerConsumptionReport",
              "version": 1
            },
            {
              "id": "airConditionerFanMode",
              "version": 1
            },
            {
              "id": "airFlowDirection",
              "version": 1
            },
            {
              "id": "veryFineDustSensor",
              "version": 1
            },
            {
              "id": "custom.error",
              "version": 1
            },
            {
              "id": "custom.deviceDependencyStatus",
              "version": 1
            },
            {
              "id": "custom.disabledCapabilities",
              "version": 1
            },
            {
              "id": "custom.dthVersion",
              "version": 1
            },
            {
              "id": "custom.thermostatSetpointControl",
              "version": 1
            },
            {
              "id": "custom.airConditionerOptionalMode",
              "version": 1
            },
            {
              "id": "custom.airConditionerTropicalNightMode",
              "version": 1
            },
            {
              "id": "custom.autoCleaningMode",
              "version": 1
            },
            {
              "id": "custom.energyType",
              "version": 1
            }
          ]
        }
      ],
      "dth": {
        "deviceTypeId": "87763316-abf2-40ae-b019-3e56ef15b220",
        "deviceTypeName": "Samsung OCF Air Conditioner",
        "deviceNetworkType": "UNKNOWN",
        "completedSetup": false,
        "networkSecurityLevel": "UNKNOWN"
      },
      "type": "DTH"
    }

and this is the execute status

{"data":{"value":{"payload":{"id":"0","x.com.samsung.da.unit":"Celsius","x.com.samsung.da.current":26,"x.com.samsung.da.desired":26}}}}

Any ideas ?

if looks like to be an SHP, this is the value I read under pi.
So what I need to do go get the real state values ?

They are Samsung Series AR5500M Model: AR12KSWNAWKNET

Any update ?