<!-- READ THIS FIRST:
- If you need additional help with this template, pleas…e refer to https://www.home-assistant.io/help/reporting_issues/
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/core/releases
- Do not report issues for integrations if you are using custom components or integrations.
- Provide as many details as possible. Paste logs, configuration samples and code into the backticks.
DO NOT DELETE ANY TEXT from this template! Otherwise, your issue may be closed without comment.
-->
## The problem
<!--
Describe the issue you are experiencing here to communicate to the
maintainers. Tell us what you were trying to do and what happened.
-->
I have a Samsung Fridge Freezer with a USB wifi Smart Things Adaptor.
I have it linked into Smart Things and into the Smart Things integration in Home Assistant.
The door closed sensor updates correctly, but the fridge temp and setpoint, don't update.
Looking at Smartthings and in the data returned from API calls, the statuses I want are part of sub-product within the fridge.
## Environment
<!--
Provide details about the versions you are using, which helps us to reproduce
and find the issue quicker. Version information is found in the
Home Assistant frontend: Configuration -> Info.
-->
- Home Assistant Core release with the issue: 2020.12.1
- Last working Home Assistant Core release (if known): Looking at #26230 this problem has been around since at least 0.97
- Operating environment (OS/Container/Supervised/Core): Supervised
- Integration causing this issue: SmartThings
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/smartthings/
## Problem-relevant `configuration.yaml`
<!--
An example configuration that caused the problem for you. Fill this out even
if it seems unimportant to you. Please be sure to remove personal information
like passwords, private URLs and other credentials.
-->
No YAML, setup through Integrations.
I can get the sensor values as a workaround, using....
```
sensor:
- platform: rest
name: Fridge IceMaker
resource: https://api.smartthings.com/v1/devices/xxxxxxxxx/status
headers:
Authorization: Bearer xxxxxx
value_template: '{{ value_json.components.icemaker.switch.switch.value }}'
value_template: '{{ value_json.components.cooler.contactSensor.contact.value }}'
value_template: '{{ value_json.components.cooler.temperatureMeasurement.temperature.value }}'
value_template: '{{ value_json.components.cooler.thermostatCoolingSetpoint.coolingSetpoint.value }}'
value_template: '{{ value_json.components.freezer.contactSensor.contact.value }}'
value_template: '{{ value_json.components.freezer.temperatureMeasurement.temperature.value }}'
value_template: '{{ value_json.components.freezer.thermostatCoolingSetpoint.coolingSetpoint.value }}'
value_template: '{{ value_json.components.main.refrigeration.rapidCooling.value }}'
value_template: '{{ value_json.components.main.refrigeration.rapidFreezing.value }}'
```
## Traceback/Error logs
<!--
If you come across any trace or error logs, please provide them.
-->
## Additional information
```
curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" https://api.smartthings.com/v1/devices/DEVICE_ID
{"deviceId":"05cfad5f-011c-bb8e-6796-dd23b3ea2a04","name":"[refrigerator] Samsung","label":"Refrigerator","manufacturerName":"Samsung Electronics","presentationId":"DA-REF-NORMAL-000001","deviceManufacturerCode":"Samsung Electronics","locationId":"f8cfdba3-c156-4f42-9895-85fd1b820a62","ownerId":"021a7833-cbfd-4981-7067-5bf9429039d8","roomId":"1040455b-b981-42fa-965e-6ec2bafdd8b1","deviceTypeName":"Samsung OCF Refrigerator","components":[{"id":"main","capabilities":[{"id":"contactSensor","version":1},{"id":"execute","version":1},{"id":"ocf","version":1},{"id":"powerConsumptionReport","version":1},{"id":"refresh","version":1},{"id":"refrigeration","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"custom.deodorFilter","version":1},{"id":"custom.deviceReportStateConfiguration","version":1},{"id":"custom.fridgeMode","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"custom.disabledComponents","version":1},{"id":"custom.waterFilter","version":1},{"id":"samsungce.driverVersion","version":1}],"categories":[{"name":"Refrigerator"}]},{"id":"freezer","capabilities":[{"id":"contactSensor","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"custom.fridgeMode","version":1}],"categories":[]},{"id":"cooler","capabilities":[{"id":"contactSensor","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"custom.fridgeMode","version":1}],"categories":[]},{"id":"cvroom","capabilities":[{"id":"contactSensor","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"custom.fridgeMode","version":1}],"categories":[]},{"id":"onedoor","capabilities":[{"id":"contactSensor","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"custom.fridgeMode","version":1}],"categories":[]},{"id":"icemaker","capabilities":[{"id":"switch","version":1},{"id":"custom.disabledCapabilities","version":1}],"categories":[]}],"profile":{"id":"9ef7327f-f0dd-393f-8e0a-f54ef7a05bde"},"type":"OCF","restrictionTier":0}
curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" https://api.smartthings.com/v1/devices/DEVICE_ID/status
{"components":{"icemaker":{"custom.disabledCapabilities":{"disabledCapabilities":{"value":null,"timestamp":"2020-12-24T22:20:32.790Z"}},"switch":{"switch":{"value":"on","timestamp":"2020-12-24T17:33:00.159Z"}}},"onedoor":{"custom.fridgeMode":{"fridgeModeValue":{"value":null,"timestamp":"2020-12-24T22:20:02.789Z"},"fridgeMode":{"value":null,"timestamp":"2020-12-24T22:20:02.789Z"}},"contactSensor":{"contact":{"value":"closed","timestamp":"2020-12-24T15:32:37.903Z"}},"custom.disabledCapabilities":{"disabledCapabilities":{"value":null,"timestamp":"2020-12-24T22:19:32.776Z"}},"temperatureMeasurement":{"temperature":{"value":null,"timestamp":"2020-12-24T22:19:02.759Z"}},"thermostatCoolingSetpoint":{"coolingSetpoint":{"value":null,"timestamp":"2020-12-24T22:18:32.959Z"}}},"cooler":{"custom.fridgeMode":{"fridgeModeValue":{"value":null,"timestamp":"2020-12-24T20:53:17.619Z"},"fridgeMode":{"value":null,"timestamp":"2020-12-24T20:53:17.619Z"}},"contactSensor":{"contact":{"value":"closed","timestamp":"2020-12-27T10:37:54.152Z"}},"custom.disabledCapabilities":{"disabledCapabilities":{"value":["custom.fridgeMode"],"timestamp":"2020-12-24T15:32:39.817Z"}},"temperatureMeasurement":{"temperature":{"value":3,"unit":"C","timestamp":"2020-12-26T17:24:57.862Z"}},"thermostatCoolingSetpoint":{"coolingSetpoint":{"value":3,"unit":"C","timestamp":"2020-12-24T17:30:40.804Z"}}},"freezer":{"custom.fridgeMode":{"fridgeModeValue":{"value":null,"timestamp":"2020-12-24T20:53:53.799Z"},"fridgeMode":{"value":null,"timestamp":"2020-12-24T20:53:53.799Z"}},"contactSensor":{"contact":{"value":"closed","timestamp":"2020-12-27T10:23:39.404Z"}},"custom.disabledCapabilities":{"disabledCapabilities":{"value":["custom.fridgeMode"],"timestamp":"2020-12-24T15:32:39.817Z"}},"temperatureMeasurement":{"temperature":{"value":-17,"unit":"C","timestamp":"2020-12-24T15:32:37.229Z"}},"thermostatCoolingSetpoint":{"coolingSetpoint":{"value":-17,"unit":"C","timestamp":"2020-12-24T16:15:28.150Z"}}},"main":{"custom.disabledComponents":{"disabledComponents":{"value":["cvroom","onedoor"],"timestamp":"2020-12-24T15:32:39.817Z"}},"contactSensor":{"contact":{"value":"closed","timestamp":"2020-12-27T10:37:54.152Z"}},"powerConsumptionReport":{"powerConsumption":{"value":null,"timestamp":"2020-12-24T15:32:37.638Z"}},"refresh":{},"execute":{"data":{"value":{"payload":{"rt":["oic.r.door"],"if":["oic.if.baseline","oic.if.s"],"openState":"Close","x.com.samsung.da.mode":"RVACATION_OFF"}},"data":{"href":"/door/cooler/0"},"timestamp":"2020-12-27T10:37:54.152Z"}},"custom.fridgeMode":{"fridgeModeValue":{"value":null,"timestamp":"2020-12-24T22:18:02.008Z"},"fridgeMode":{"value":null,"timestamp":"2020-12-24T22:18:02.008Z"}},"ocf":{"st":{"value":null,"timestamp":"2020-12-24T22:17:06.517Z"},"mndt":{"value":null,"timestamp":"2020-12-24T22:10:38.434Z"},"mnfv":{"value":"0.1.0","timestamp":"2020-12-24T15:30:25.555Z"},"mnhw":{"value":"ARTIK051 DA_DONGLE_4f0723b7a2753ebc","timestamp":"2020-12-24T15:32:36.469Z"},"di":{"value":"05cfad5f-011c-bb8e-6796-dd23b3ea2a04","timestamp":"2020-12-24T15:30:25.555Z"},"mnsl":{"value":null,"timestamp":"2020-12-24T20:57:49.881Z"},"dmv":{"value":"1.2.1","timestamp":"2020-12-24T15:32:36.469Z"},"n":{"value":"[refrigerator] Samsung","timestamp":"2020-12-24T15:30:25.555Z"},"mnmo":{"value":"DONGLE","timestamp":"2020-12-24T15:30:25.555Z"},"vid":{"value":"DA-REF-NORMAL-000001","timestamp":"2020-12-24T15:30:25.555Z"},"mnmn":{"value":"Samsung Electronics","timestamp":"2020-12-24T15:30:25.555Z"},"mnml":{"value":"http://www.samsung.com","timestamp":"2020-12-24T15:30:25.555Z"},"mnpv":{"value":"0.1.0","timestamp":"2020-12-24T15:30:25.555Z"},"mnos":{"value":"TizenRT2.0","timestamp":"2020-12-24T15:30:25.555Z"},"pi":{"value":"05cfad5f-011c-bb8e-6796-dd23b3ea2a04","timestamp":"2020-12-24T15:30:25.555Z"},"icv":{"value":"core.1.1.0","timestamp":"2020-12-24T15:30:25.555Z"}},"refrigeration":{"defrost":{"value":null,"timestamp":"2020-12-24T22:17:06.597Z"},"rapidCooling":{"value":"off","timestamp":"2020-12-24T15:32:37.600Z"},"rapidFreezing":{"value":"off","timestamp":"2020-12-24T15:32:37.600Z"}},"custom.deodorFilter":{"deodorFilterCapacity":{"value":null,"timestamp":"2020-12-24T22:18:01.893Z"},"deodorFilterStatus":{"value":null,"timestamp":"2020-12-24T22:18:01.893Z"},"deodorFilterResetType":{"value":null,"timestamp":"2020-12-24T22:18:01.893Z"},"deodorFilterUsage":{"value":null,"timestamp":"2020-12-24T22:18:01.893Z"},"deodorFilterUsageStep":{"value":null,"timestamp":"2020-12-24T22:18:01.893Z"}},"custom.disabledCapabilities":{"disabledCapabilities":{"value":["custom.deodorFilter","custom.waterFilter","custom.deviceReportStateConfiguration"],"timestamp":"2020-12-24T15:32:39.817Z"}},"samsungce.driverVersion":{"versionNumber":{"value":20110902,"timestamp":"2020-12-24T15:30:25.700Z"}},"temperatureMeasurement":{"temperature":{"value":null,"timestamp":"2020-12-24T18:47:33.855Z"}},"custom.deviceReportStateConfiguration":{"reportStateRealtimePeriod":{"value":null,"timestamp":"2020-12-24T18:36:21.141Z"},"reportStateRealtime":{"value":null,"timestamp":"2020-12-24T18:36:21.141Z"},"reportStatePeriod":{"value":null,"timestamp":"2020-12-24T18:36:21.141Z"}},"custom.waterFilter":{"waterFilterUsageStep":{"value":null,"timestamp":"2020-12-24T18:31:50.344Z"},"waterFilterResetType":{"value":null,"timestamp":"2020-12-24T18:31:50.344Z"},"waterFilterCapacity":{"value":null,"timestamp":"2020-12-24T18:31:50.344Z"},"waterFilterUsage":{"value":null,"timestamp":"2020-12-24T18:31:50.344Z"},"waterFilterStatus":{"value":null,"timestamp":"2020-12-24T18:31:50.344Z"}},"thermostatCoolingSetpoint":{"coolingSetpoint":{"value":null,"timestamp":"2020-12-24T15:38:21.427Z"}}},"cvroom":{"custom.fridgeMode":{"fridgeModeValue":{"value":null,"timestamp":"2020-12-24T20:55:33.193Z"},"fridgeMode":{"value":null,"timestamp":"2020-12-24T20:55:33.193Z"}},"contactSensor":{"contact":{"value":"closed","timestamp":"2020-12-24T15:32:38.777Z"}},"custom.disabledCapabilities":{"disabledCapabilities":{"value":null,"timestamp":"2020-12-24T22:18:03.132Z"}},"temperatureMeasurement":{"temperature":{"value":null,"timestamp":"2020-12-24T20:55:33.204Z"}},"thermostatCoolingSetpoint":{"coolingSetpoint":{"value":null,"timestamp":"2020-12-24T22:06:09.652Z"}}}}}
```