Devices
An overview of devices, where they can be found, and the various types.

Device Types

The following table provides an overview of all the device types that can be found throughout our API.
Device Name
Device Type
Description
​Temperature​
temperature
Sensor that reports temperature in Celsius.
​Proximity​
proximity
Sensor that reports objects in close proximity.
​Touch​
touch
Sensor that reports when the sensor is touched.
​Humidity​
humidity
Sensor that reports temperature in Celsius and relative humidity as a percentage.
​Counting Proximity​
proximityCounter
Sensor that reports total count of proximity events.
​Counting Touch​
touchCounter
Sensor that reports total count of touch events.
​Water Detector​
waterDetector
Sensor that reports the whether or not water is present.
​CO2​
co2
Sensor that Co2, Barometric Pressure, Temperature, and Relative Humidity.
​Motion​
motion
Sensor that reports the onset and conclusion of motion in its field of view.
​Cloud Connector​
ccon
Connects sensors securely to the cloud.

Structure

A device is either a sensor or a Cloud Connector and has a defined structure in our APIs. They can be fetched either by listing the devices in a project or looking up a single device, both of which will return device(s) with the structure as shown in the snippet below.
1
{
2
"name": "projects/<PROJECT_ID>/device/<DEVICE_ID>",
3
"type": "<DEVICE_TYPE>",
4
"productNumber": "<PRODUCT_NUMBER>",
5
"labels": {
6
"<KEY>": "<VALUE>",
7
...
8
},
9
"reported": {
10
...
11
}
12
}
Copied!
Field
Type
Description
name
string
The device resource name. Includes both the identifier of the project the device is currently in and the identifier of the device itself.
type
string
The device type. See the overview below for a full list.
productNumber
string
The device product number. This is the same product number that can be found on the Sensors and Cloud Connectors support pages.
labels
struct
Device labels are user-configurable metadata key-value pairs. DT Studio uses labels with the keys name and description for the display name and description of the device, respectively.
reported
struct
Contains the last Event of each event type received for this device. Which events are included here depends on the device type. See the overview below to learn which event type is included with which device type.

Wireless Sensors Details

The following provides details of all the types of wireless sensors found throughout our APIs. Each type may contain one- or several different product numbers.

Temperature Sensor

Reports temperature in Celsius.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Temperature​
temperature
Every periodic heartbeat or when touched.
​Touch​
touch
When touched.
​Network Status​
networkStatus
Every periodic heartbeat.
​Battery Status​
batteryStatus
Approximately once per day.

Proximity Sensor

Reports objects in close proximity.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Object Present​
objectPresent
When an object appears or disappears in close proximity.
​Touch​
touch
When touched.
​Network Status​
networkStatus
Every periodic heartbeat.
​Battery Status​
batteryStatus
Approximately once per day.

Touch Sensor

Reports when the sensor is touched.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Touch​
touch
When touched.
​Network Status​
networkStatus
Every periodic heartbeat.
​Battery Status​
batteryStatus
Approximately once per day.

Humidity Sensor

Reports temperature in Celsius and percentage humidity.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Humidity​
humidity
Every periodic heartbeat or when touched.
​Touch​
touch
When touched.
​Network Status​
networkStatus
Every periodic heartbeat.
​Battery Status​
batteryStatus
Approximately once per day.

Counting Proximity Sensor

Reports total count of proximity events.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Object Present Count​
objectPresentCount
Every periodic heartbeat.
​Touch​
touch
When touched.
​Network Status​
networkStatus
Every periodic heartbeat.
​Battery Status​
batteryStatus
Approximately once per day.

Counting Touch Sensor

Reports total count of touch events.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Touch Count​
touchCount
Every periodic heartbeat.
​Touch​
touch
When touched.
​Network Status​
networkStatus
Every periodic heartbeat.
​Battery Status​
batteryStatus
Approximately once per day.

Water Detector Sensor

Reports the appearance or disappearance of water.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Water Present​
waterPresent
When water appears or disappears.
​Touch​
touch
When touched.
​Network Status​
networkStatus
Every periodic heartbeat.
​Battery Status​
batteryStatus
Approximately once per day.

CO2 Sensor

Reports CO2, Barometric Pressure, Relative Humidity, and Temperature.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​CO2​
co2
​Pressure​
pressure
​Humidity​
humidity
​Temperature​
temperature
​Network Status​
networkStatus
​Battery Status​
batteryStatus
Approximately once per day.

Motion Sensor

Reports motion in the sensor field of view.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Motion​
motion
The presence of people in the PIR sensor field of view.
​Network Status​
networkStatus
​Battery Status​
batteryStatus
Approximately once per day.

Cloud Connector Details

Securely relays device events to our DT Cloud.
The following event types are available for this device type.
Event Name
Event Type
Trigger
​Connection Status​
connectionStatus
When the connection changes.
​Ethernet Status​
ethernetStatus
When the ethernet connection changes.
​Cellular Status​
cellularStatus
When the cellular connection changes.
​Touch​
touch
When touched.