Hi,
again thank you so much… i hope you have a paypal so i can tip you after all the time you took for me ^^’
I tried the POST command but i get this :
{
“requestId”: “761086164459075659”,
“error”: {
“code”: “ForbiddenError”,
“message”: “create-behavior-fail-invalid-scopes”,
“details”:
}
}
In “POST” i set this : https://api.smartthings.com/rules?locationId=xxx
But I may have an hesitation about the body.
In this section :
“greaterThanOrEquals”: {
“left”: {
“device”: {
“devices”: [
“temperatureSensor or AC deviceID” => i set this “xxxxxxxx” (deviceID). Is this ok or do i have to replace something in “temperatureSensor” too ?
For the record, i’m pretty sure the AC can measure temperature because if i open ST, AC tells me the temperature even when it’s OFF.
But when i do the GET command you first gave me, there is no temperatureSensor.
But again, there is a line saying about temperaturemeasurement so i don’t understand.
Here’s the GET command if it can help :
“deviceId”: “xxxxxx”,
“name”: “Samsung-Room-Air-Conditioner”,
“label”: “Clim Chambre Parents”,
“manufacturerName”: “Samsung Electronics”,
“presentationId”: “DA-AC-RAC-000003”,
“deviceManufacturerCode”: “Samsung Electronics”,
“locationId”: “xxxxxx”,
“ownerId”: “xxxxxxx”,
“roomId”: “xxxxxxx”,
“deviceTypeName”: “Samsung OCF Air Conditioner”,
“components”: [
{
“id”: “main”,
“label”: “main”,
“capabilities”: [
{
“id”: “ocf”,
“version”: 1
},
{
“id”: “switch”,
“version”: 1
},
{
“id”: “airConditionerMode”,
“version”: 1
},
{
“id”: “airConditionerFanMode”,
“version”: 1
},
{
“id”: “fanOscillationMode”,
“version”: 1
},
{
“id”: “temperatureMeasurement”,
** “version”: 1**
},
{
“id”: “thermostatCoolingSetpoint”,
“version”: 1
},
{
“id”: “relativeHumidityMeasurement”,
“version”: 1
},
{
“id”: “airQualitySensor”,
“version”: 1
},
{
“id”: “odorSensor”,
“version”: 1
},
{
“id”: “dustSensor”,
“version”: 1
},
{
“id”: “veryFineDustSensor”,
“version”: 1
},
{
“id”: “audioVolume”,
“version”: 1
},
{
“id”: “remoteControlStatus”,
“version”: 1
},
{
“id”: “powerConsumptionReport”,
“version”: 1
},
{
“id”: “demandResponseLoadControl”,
“version”: 1
},
{
“id”: “refresh”,
“version”: 1
},
{
“id”: “execute”,
“version”: 1
},
{
“id”: “custom.spiMode”,
“version”: 1
},
{
“id”: “custom.thermostatSetpointControl”,
“version”: 1
},
{
“id”: “custom.airConditionerOptionalMode”,
“version”: 1
},
{
“id”: “custom.airConditionerTropicalNightMode”,
“version”: 1
},
{
“id”: “custom.autoCleaningMode”,
“version”: 1
},
{
“id”: “custom.deviceReportStateConfiguration”,
“version”: 1
},
{
“id”: “custom.energyType”,
“version”: 1
},
{
“id”: “custom.dustFilter”,
“version”: 1
},
{
“id”: “custom.veryFineDustFilter”,
“version”: 1
},
{
“id”: “custom.deodorFilter”,
“version”: 1
},
{
“id”: “custom.electricHepaFilter”,
“version”: 1
},
{
“id”: “custom.doNotDisturbMode”,
“version”: 1
},
{
“id”: “custom.periodicSensing”,
“version”: 1
},
{
“id”: “custom.airConditionerOdorController”,
“version”: 1
},
{
“id”: “custom.ocfResourceVersion”,
“version”: 1
},
{
“id”: “custom.disabledCapabilities”,
“version”: 1
},
{
“id”: “samsungce.deviceIdentification”,
“version”: 1
},
{
“id”: “samsungce.dustFilterAlarm”,
“version”: 1
},
{
“id”: “samsungce.driverVersion”,
“version”: 1
},
{
“id”: “samsungce.softwareUpdate”,
“version”: 1
},
{
“id”: “samsungce.selfCheck”,
“version”: 1
},
{
“id”: “samsungce.individualControlLock”,
“version”: 1
}
],
“categories”: [
{
“name”: “AirConditioner”,
“categoryType”: “manufacturer”
}
]
}
],
“createTime”: “2024-06-07T19:30:49.435Z”,
“profile”: {
“id”: “xxxxxx”
},
“ocf”: {
“ocfDeviceType”: “oic.d.airconditioner”,
“name”: “Samsung-Room-Air-Conditioner”,
“specVersion”: “core.1.1.0”,
“verticalDomainSpecVersion”: “1.2.1”,
“manufacturerName”: “Samsung Electronics”,
“modelNumber”: “TP2X_RAC_20K|10217841|600105140014110142000035242432423”,
“platformVersion”: “DAWIT 2.0”,
“platformOS”: “TizenRT 2.0 + IPv6”,
“hwVersion”: “MediaTek”,
“firmwareVersion”: “TP2X_RAC_20K_11230531”,
“vendorId”: “DA-AC-RAC-000003”,
“vendorResourceClientServerVersion”: “MediaTek Release 2.220916.2”,
“lastSignupTime”: “2024-06-07T19:30:45.754977Z”,
“transferCandidate”: false,
“additionalAuthCodeRequired”: false
},
“type”: “OCF”,
“restrictionTier”: 0,
“allowed”: ,
“executionContext”: “CLOUD”