POST api/locations/{locationId}/AutomationDevices/{DeviceID}/Thermostat
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceID | integer |
Required |
|
| locationId | string |
None. |
Body Parameters
ThermostatAction| Name | Description | Type | Additional information |
|---|---|---|---|
| ids | Collection of integer |
None. |
|
| heatThreshold | integer |
None. |
|
| coolThreshold | integer |
None. |
|
| heatSetPoint | integer |
None. |
|
| coolSetPoint | integer |
None. |
|
| tempHoldTime | string |
None. |
|
| currentOpMode | StatCurrentOpMode |
None. |
|
| thermostatMode | StatMode |
None. |
|
| thermostatFanMode | StatFanMode |
None. |
Request Formats
application/json, text/json
Sample:
{
"currentOpMode": 0,
"thermostatMode": 0,
"thermostatFanMode": 0,
"ids": [
1,
2
],
"heatThreshold": 1,
"coolThreshold": 2,
"heatSetPoint": 3,
"coolSetPoint": 4,
"tempHoldTime": "sample string 5"
}
application/xml, text/xml
Sample:
<ThermostatAction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2API.Resource.Models">
<coolSetPoint>4</coolSetPoint>
<coolThreshold>2</coolThreshold>
<currentOpMode>normal</currentOpMode>
<heatSetPoint>3</heatSetPoint>
<heatThreshold>1</heatThreshold>
<ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</ids>
<tempHoldTime>sample string 5</tempHoldTime>
<thermostatFanMode>auto</thermostatFanMode>
<thermostatMode>off</thermostatMode>
</ThermostatAction>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ThermostatControlResultsNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<ThermostatControlResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2API.Resource.Models" />