GET api/locations/{locationId}/AutomationDevices/{DeviceID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceID | integer |
Required |
|
| locationId | string |
None. |
Body Parameters
None.
Response Information
Resource Description
AutomationDevicesExternal| Name | Description | Type | Additional information |
|---|---|---|---|
| switches | Collection of SwitchInfoEx |
None. |
|
| locks | Collection of LockInfoEx |
None. |
|
| thermostats | Collection of ThermostatInfoEx |
None. |
Response Formats
application/json, text/json
Sample:
{
"switches": [
{
"id": 2,
"name": "sample string 3",
"type": "wifigaragedoor",
"state": "6",
"level": 7,
"icon": "wifigaragedoor",
"deviceStatus": "64"
},
{
"id": 2,
"name": "sample string 3",
"type": "wifigaragedoor",
"state": "6",
"level": 7,
"icon": "wifigaragedoor",
"deviceStatus": "64"
}
],
"locks": [
{
"id": 2,
"name": "sample string 3",
"lockIndex": 4,
"state": "5",
"battery": "6",
"deviceStatus": "64"
},
{
"id": 2,
"name": "sample string 3",
"lockIndex": 4,
"state": "5",
"battery": "6",
"deviceStatus": "64"
}
],
"thermostats": [
{
"id": 2,
"name": "sample string 3",
"currentOpMode": "Unknown",
"thermostatMode": "Unknown",
"thermostatFanMode": "Unknown",
"heatSetPoint": 8,
"coolSetPoint": 9,
"energySaveHeatSetPoint": 10,
"energySaveCoolSetPoint": 11,
"temperatureScale": "sample string 12",
"currentTemperature": 13,
"battery": "14",
"fanModes": [
{
"modeStatus": "on"
},
{
"modeStatus": "on"
}
],
"thermostatModes": [
{
"modeStatus": "auto"
},
{
"modeStatus": "auto"
}
],
"thermostatSupportedOpModes": [
{
"modeStatus": "temporaryHold"
},
{
"modeStatus": "temporaryHold"
}
],
"deviceStatus": "64",
"LyricUserID": 16,
"DeviceType": 17,
"DateTimeUpdated": "2025-11-19T02:43:14.1059401-05:00",
"ThermostatVersion": "sample string 19",
"TCCthermostatdata": {
"IndoorHumidity": 1,
"OutdoorHumidity": 2,
"OutdoorTemperature": 3,
"TempHoldTime": "sample string 4",
"IsScheduleCapable": true,
"MinHeatSetPoint": 6,
"MaxHeatSetPoint": 7,
"MinCoolSetPoint": 8,
"MaxCoolSetPoint": 9,
"DeadbandforF": "sample string 10",
"DeadbandforC": "sample string 11",
"TCCScheduleHeatSetPoint": 12,
"TCCScheduleCoolSetPoint": 13,
"ThermostatMAC": "sample string 14",
"PartnerLocationID": "sample string 15",
"PartnerDeviceID": "sample string 16",
"CurrentActivity": "sample string 17"
}
},
{
"id": 2,
"name": "sample string 3",
"currentOpMode": "Unknown",
"thermostatMode": "Unknown",
"thermostatFanMode": "Unknown",
"heatSetPoint": 8,
"coolSetPoint": 9,
"energySaveHeatSetPoint": 10,
"energySaveCoolSetPoint": 11,
"temperatureScale": "sample string 12",
"currentTemperature": 13,
"battery": "14",
"fanModes": [
{
"modeStatus": "on"
},
{
"modeStatus": "on"
}
],
"thermostatModes": [
{
"modeStatus": "auto"
},
{
"modeStatus": "auto"
}
],
"thermostatSupportedOpModes": [
{
"modeStatus": "temporaryHold"
},
{
"modeStatus": "temporaryHold"
}
],
"deviceStatus": "64",
"LyricUserID": 16,
"DeviceType": 17,
"DateTimeUpdated": "2025-11-19T02:43:14.1059401-05:00",
"ThermostatVersion": "sample string 19",
"TCCthermostatdata": {
"IndoorHumidity": 1,
"OutdoorHumidity": 2,
"OutdoorTemperature": 3,
"TempHoldTime": "sample string 4",
"IsScheduleCapable": true,
"MinHeatSetPoint": 6,
"MaxHeatSetPoint": 7,
"MinCoolSetPoint": 8,
"MaxCoolSetPoint": 9,
"DeadbandforF": "sample string 10",
"DeadbandforC": "sample string 11",
"TCCScheduleHeatSetPoint": 12,
"TCCScheduleCoolSetPoint": 13,
"ThermostatMAC": "sample string 14",
"PartnerLocationID": "sample string 15",
"PartnerDeviceID": "sample string 16",
"CurrentActivity": "sample string 17"
}
}
]
}
application/xml, text/xml
Sample:
<AutomationDevicesExternal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2API.Resource.Models">
<locks>
<LockInfoEx>
<DeviceID>1</DeviceID>
<_battery>6</_battery>
<deviceStatusId>64</deviceStatusId>
<id>2</id>
<lockIndex>4</lockIndex>
<name>sample string 3</name>
<stateID>5</stateID>
</LockInfoEx>
<LockInfoEx>
<DeviceID>1</DeviceID>
<_battery>6</_battery>
<deviceStatusId>64</deviceStatusId>
<id>2</id>
<lockIndex>4</lockIndex>
<name>sample string 3</name>
<stateID>5</stateID>
</LockInfoEx>
</locks>
<switches>
<SwitchInfoEx>
<DeviceID>1</DeviceID>
<SwitchIndex>4</SwitchIndex>
<deviceStatusId>64</deviceStatusId>
<iconId>8</iconId>
<id>2</id>
<level>7</level>
<name>sample string 3</name>
<stateID>6</stateID>
<typeID>5</typeID>
</SwitchInfoEx>
<SwitchInfoEx>
<DeviceID>1</DeviceID>
<SwitchIndex>4</SwitchIndex>
<deviceStatusId>64</deviceStatusId>
<iconId>8</iconId>
<id>2</id>
<level>7</level>
<name>sample string 3</name>
<stateID>6</stateID>
<typeID>5</typeID>
</SwitchInfoEx>
</switches>
<thermostats>
<ThermostatInfoEx>
<DateTimeUpdated>2025-11-19T02:43:14.1059401-05:00</DateTimeUpdated>
<DeviceID>1</DeviceID>
<DeviceType>17</DeviceType>
<LyricUserID>16</LyricUserID>
<TCCthermostatdata>
<CurrentActivity>sample string 17</CurrentActivity>
<DeadbandforC>sample string 11</DeadbandforC>
<DeadbandforF>sample string 10</DeadbandforF>
<IndoorHumidity>1</IndoorHumidity>
<IsScheduleCapable>true</IsScheduleCapable>
<MaxCoolSetPoint>9</MaxCoolSetPoint>
<MaxHeatSetPoint>7</MaxHeatSetPoint>
<MinCoolSetPoint>8</MinCoolSetPoint>
<MinHeatSetPoint>6</MinHeatSetPoint>
<OutdoorHumidity>2</OutdoorHumidity>
<OutdoorTemperature>3</OutdoorTemperature>
<PartnerDeviceID>sample string 16</PartnerDeviceID>
<PartnerLocationID>sample string 15</PartnerLocationID>
<TCCScheduleCoolSetPoint>13</TCCScheduleCoolSetPoint>
<TCCScheduleHeatSetPoint>12</TCCScheduleHeatSetPoint>
<TempHoldTime>sample string 4</TempHoldTime>
<ThermostatMAC>sample string 14</ThermostatMAC>
</TCCthermostatdata>
<ThermostatIndex>4</ThermostatIndex>
<ThermostatVersion>sample string 19</ThermostatVersion>
<_battery>14</_battery>
<coolSetPoint>9</coolSetPoint>
<currentOpMode>Unknown</currentOpMode>
<currentTemperature>13</currentTemperature>
<deviceStatusId>64</deviceStatusId>
<energySaveCoolSetPoint>11</energySaveCoolSetPoint>
<energySaveHeatSetPoint>10</energySaveHeatSetPoint>
<fanModes>
<FanModeInfoEx>
<modeId>1</modeId>
</FanModeInfoEx>
<FanModeInfoEx>
<modeId>1</modeId>
</FanModeInfoEx>
</fanModes>
<heatSetPoint>8</heatSetPoint>
<id>2</id>
<name>sample string 3</name>
<temperatureScale>sample string 12</temperatureScale>
<thermostatFanMode>Unknown</thermostatFanMode>
<thermostatMode>Unknown</thermostatMode>
<thermostatModes>
<ModeInfoEx>
<modeId>1</modeId>
</ModeInfoEx>
<ModeInfoEx>
<modeId>1</modeId>
</ModeInfoEx>
</thermostatModes>
<thermostatSupportedOpModes>
<SupportedModeInfoEx>
<modeId>1</modeId>
</SupportedModeInfoEx>
<SupportedModeInfoEx>
<modeId>1</modeId>
</SupportedModeInfoEx>
</thermostatSupportedOpModes>
</ThermostatInfoEx>
<ThermostatInfoEx>
<DateTimeUpdated>2025-11-19T02:43:14.1059401-05:00</DateTimeUpdated>
<DeviceID>1</DeviceID>
<DeviceType>17</DeviceType>
<LyricUserID>16</LyricUserID>
<TCCthermostatdata>
<CurrentActivity>sample string 17</CurrentActivity>
<DeadbandforC>sample string 11</DeadbandforC>
<DeadbandforF>sample string 10</DeadbandforF>
<IndoorHumidity>1</IndoorHumidity>
<IsScheduleCapable>true</IsScheduleCapable>
<MaxCoolSetPoint>9</MaxCoolSetPoint>
<MaxHeatSetPoint>7</MaxHeatSetPoint>
<MinCoolSetPoint>8</MinCoolSetPoint>
<MinHeatSetPoint>6</MinHeatSetPoint>
<OutdoorHumidity>2</OutdoorHumidity>
<OutdoorTemperature>3</OutdoorTemperature>
<PartnerDeviceID>sample string 16</PartnerDeviceID>
<PartnerLocationID>sample string 15</PartnerLocationID>
<TCCScheduleCoolSetPoint>13</TCCScheduleCoolSetPoint>
<TCCScheduleHeatSetPoint>12</TCCScheduleHeatSetPoint>
<TempHoldTime>sample string 4</TempHoldTime>
<ThermostatMAC>sample string 14</ThermostatMAC>
</TCCthermostatdata>
<ThermostatIndex>4</ThermostatIndex>
<ThermostatVersion>sample string 19</ThermostatVersion>
<_battery>14</_battery>
<coolSetPoint>9</coolSetPoint>
<currentOpMode>Unknown</currentOpMode>
<currentTemperature>13</currentTemperature>
<deviceStatusId>64</deviceStatusId>
<energySaveCoolSetPoint>11</energySaveCoolSetPoint>
<energySaveHeatSetPoint>10</energySaveHeatSetPoint>
<fanModes>
<FanModeInfoEx>
<modeId>1</modeId>
</FanModeInfoEx>
<FanModeInfoEx>
<modeId>1</modeId>
</FanModeInfoEx>
</fanModes>
<heatSetPoint>8</heatSetPoint>
<id>2</id>
<name>sample string 3</name>
<temperatureScale>sample string 12</temperatureScale>
<thermostatFanMode>Unknown</thermostatFanMode>
<thermostatMode>Unknown</thermostatMode>
<thermostatModes>
<ModeInfoEx>
<modeId>1</modeId>
</ModeInfoEx>
<ModeInfoEx>
<modeId>1</modeId>
</ModeInfoEx>
</thermostatModes>
<thermostatSupportedOpModes>
<SupportedModeInfoEx>
<modeId>1</modeId>
</SupportedModeInfoEx>
<SupportedModeInfoEx>
<modeId>1</modeId>
</SupportedModeInfoEx>
</thermostatSupportedOpModes>
</ThermostatInfoEx>
</thermostats>
</AutomationDevicesExternal>