Message Header
Thingsee Message header structure and common fields
The Thingsee Message Protocol defines how devices communicate with the cloud platform. Messages are organized into profiles based on functionality, with each profile assigned a specific ID range.
Every Thingsee message contains a standard header with the following fields:
| Field | Type | Description |
|---|---|---|
tsmId | Number | Message identifier (defines the message type) |
tsmEv | Number | Event type code |
tsmTs | Number | Unix timestamp when the message was created |
tsmTuid | String | Thing Unique ID (device identifier) |
tsmGw | String | Gateway TUID that relayed the message |
tsmDstTuid | String | Destination TUID (for commands) |
Common event type codes used across all profiles:
| Code | Description |
|---|---|
| 0 | Event data not applicable or unknown |
| 10 | Standard sensor data event |
| 19 | Assistance requested |
| 20 | Assistance response |
| 23 | Reset request |
| 25 | Firmware update requested |
| 27 | Diagnostics requested |
| 28 | Diagnostics response |
| 29 | Error diagnostics |
| 30 | Configuration request |
| 31 | Configuration response |
| 32 | Firmware information request |
| 33 | Firmware information response |
| 35 | Command request |
| 36 | Command response |
| 100 | Network diagnostic data |
| 101 | Battery data event |
| Range | Profile | Description |
|---|---|---|
| 1000-1999 | Common Profile | System info, configuration, firmware, diagnostics |
| 2000-2999 | Analytics Profile | Occupancy and jam detection |
| 3000-3999 | Edge Profile | Edge computing and core state |
| 11000-11999 | Gateway Profile | Gateway heartbeat, Wirepas, MQTT |
| 12000-12999 | Environment Profile | Weather, temperature, humidity, hall sensor |
| 13000-13999 | Presence Profile | PIR motion, presence, occupancy detection |
| 16000-16999 | Machine Usage Profile | Vibration monitoring, accelerometer |
| 17000-17999 | Distance Profile | ToF distance measurement |
| 18000-18999 | Angle Profile | Angular position measurement |
| 24000-24999 | Air Quality Profile | CO2, TVOC measurement |
Messages are transmitted as JSON (for APIs) or CBOR (optimized binary format for device communication). The content is identical between formats.
Example Message:
[{
"tsmId": 1110,
"tsmEv": 101,
"tsmTs": 1492603998,
"tsmTuid": "TSPOD6789",
"tsmGw": "TSGW1234",
"batl": 34.6,
"chrg": 2
}]
Sensor data messages are delivered through your configured integration:
Configuration and command messages are sent via the Open Service API:
curl -X POST \
"https://{api-url}/v1/things/{tuid}/commands" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '[{
"tsmId": 1500,
"tsmEv": 30,
"measurementInterval": 60,
"reportInterval": 300
}]'
The device will respond with tsmEv: 31 containing the applied configuration.
Individual profile specifications with message IDs, payload formats, and examples.
Thingsee Message header structure and common fields
Sending commands and configuration to Thingsee devices
System information, configuration, firmware updates, and diagnostic messages used by all Thingsee devices.
Computed analytics messages including occupancy state and jam detection.
Edge computing core state and synchronization messages.
Gateway heartbeat monitoring, Wirepas mesh management, and MQTT configuration.
Environmental sensor messages for weather conditions, temperature, humidity, and hall sensors.
Presence detection, occupancy monitoring, and PIR sensor configuration.
Vibration monitoring and accelerometer-based machine activity tracking.
Time-of-flight distance measurement sensors.
Angular position and tilt measurement sensors.
Carbon dioxide (CO2) and volatile organic compound (TVOC) measurement.