Uplink Messages

Messages sent by Thingsee ENVIRONMENT to the cloud — temperature, humidity, air pressure, hall sensor, vibration, battery, and diagnostics

Overview

This page documents the Wirepas CBOR messages transmitted by the sensor over the mesh network. These are the raw on-wire messages — field names and structure differ from the Haltian IoT JSON API exposed to end users. For the Haltian IoT API format, see Operation — Data Transmission.

Thingsee ENVIRONMENT transmits CBOR-encoded messages over Wirepas endpoint 21/21. The gateway adds header fields (tsmTs, tsmGw) and forwards messages to the cloud.

Each message is identified by tsmId (message structure ID). Each example below is shown in both JSON (decoded CBOR) and CBOR (numeric indexes as transmitted on the wire).

For CBOR encoding/decoding details, see CBOR-JSON Conversion Reference. For configuration commands sent to the sensor, see Downlink Messages.

Wirepas endpoint: 21/21 MQTT topic: haltian-iot/wirepas/gw-event/received_data/{gateway-id}/sink1/{network-id}/21/21


Weather Info (tsmId 12100)

The primary application message. Reports temperature, humidity, air pressure, and light level.

JSON PropertyCBOR IndexMultiplierDescription
tsmId1Message ID: 12100
tsmEv2Event type: 10 (timed), 9 (threshold), 11 (startup)
tsmTs3UTC timestamp in seconds (added by gateway)
tsmTuid4Device unique identifier
tsmGw5Gateway identifier (added by gateway)
temp3010^1Temperature in °C
lght31Light level in lux
humd3210^1Relative humidity in %
airp3310^3Air pressure in Pascals

CBOR Multipliers

Reporting Behavior

ConditionTiming
Normal operationEvery report interval (default 300s)
Threshold exceededImmediate report with tsmEv: 9 (if hysteresis configured)
Device startupImmediate report with tsmEv: 11

Example

{
  "tsmId": 12100,
  "tsmEv": 10,
  "tsmTs": 1755064655,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "temp": 22.4,
  "humd": 67.2,
  "airp": 102092.358,
  "lght": 270
}
{1: 12100, 2: 10, 30: 224, 31: 270, 32: 672, 33: 102092358}

Interpretation: Temperature 22.4°C, humidity 67.2%, air pressure 1020.9 hPa, light level 270 lux.


Magneto Switch Info (tsmId 12101)

Reports hall sensor state — detects doors, windows, or magnetic field changes.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 12101
tsmEv2Event type: 7 (state change), 10 (timed)
tsmTs3UTC timestamp in seconds (added by gateway)
tsmTuid4Device unique identifier
tsmGw5Gateway identifier (added by gateway)
hall46Hall sensor state
hallCount47State change count since last report

State Values

ValueMeaning
0Open (no magnet detected)
1Closed (magnet detected)

hallCount indicates the number of state transitions during the measurement period. For example, hallCount: 2 means one open/close cycle (A → B → A).

Reporting Behavior

hallModeBehavior
0Report at every interval regardless of state
1Report only when state changes (tsmEv: 7)

Example

{
  "tsmId": 12101,
  "tsmEv": 7,
  "tsmTs": 1755064700,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "hall": 1,
  "hallCount": 2
}
{1: 12101, 2: 7, 46: 1, 47: 2}

Interpretation: Hall sensor is closed (magnet detected), with 2 state transitions since the last report.


Leakage Resistance Data (tsmId 12102)

ADC reading from the leakage detection probe. Available on ENVIRONMENT variants with a leakage sensor connection.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 12102
tsmEv2Event type: 10 (timed), 9 (threshold)
tsmTs3UTC timestamp in seconds (added by gateway)
tsmTuid4Device unique identifier
tsmGw5Gateway identifier (added by gateway)
resistance111Resistance reading (ADC value)

Example

{
  "tsmId": 12102,
  "tsmEv": 10,
  "tsmTs": 1755064800,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "resistance": 1023
}
{1: 12102, 2: 10, 111: 1023}

Interpretation: Leakage sensor reading is 1023 (high resistance = no leak). Lower values indicate moisture detected.


Vibration Info (tsmId 16100)

Reports vibration characteristics when the accelerometer is in machine monitoring mode (accelerometerMode: 2). Includes activity level, energy level, and a 10-bin impact histogram.

JSON PropertyCBOR IndexMultiplierDescription
tsmId1Message ID: 16100
tsmEv2Event type: 10 (timed)
tsmTs3UTC timestamp in seconds (added by gateway)
tsmTuid4Device unique identifier
tsmGw5Gateway identifier (added by gateway)
activityLevel8110^3Activity percentage (0–100)
energyLevel89Cumulative impact energy (unitless)
histogram01000Impacts > 128 mG
histogram11001Impacts > 300 mG
histogram21002Impacts > 500 mG
histogram31003Impacts > 1 G
histogram41004Impacts > 2 G
histogram51005Impacts > 3 G
histogram61006Impacts > 4 G
histogram71007Impacts > 8 G
histogram81008Impacts > 12 G
histogram91009Impacts > 16 G

Example

{
  "tsmId": 16100,
  "tsmEv": 10,
  "tsmTs": 1755064900,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "activityLevel": 34,
  "energyLevel": 400,
  "histogram0": 2,
  "histogram1": 14,
  "histogram2": 45,
  "histogram3": 23,
  "histogram4": 2,
  "histogram5": 1,
  "histogram6": 0,
  "histogram7": 0,
  "histogram8": 0,
  "histogram9": 0
}
{1: 16100, 2: 10, 81: 34000, 89: 400,
 1000: 2, 1001: 14, 1002: 45, 1003: 23, 1004: 2, 1005: 1,
 1006: 0, 1007: 0, 1008: 0, 1009: 0}

Interpretation: Machine is 34% active. Most vibration impacts are in the 500 mG – 1 G range, indicating moderate machine operation. No significant high-G impacts detected.


Orientation Info (tsmId 1111)

Reports device orientation as 3-axis acceleration values. Sent when the accelerometer is in orientation mode (accelerometerMode: 1).

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 1111
tsmEv2Event type: 10 (timed), 7 (state change)
accx40X-axis acceleration
accy41Y-axis acceleration
accz42Z-axis acceleration

Example

{
  "tsmId": 1111,
  "tsmEv": 10,
  "tsmTs": 1755068000,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "accx": 12,
  "accy": -45,
  "accz": 980
}
{1: 1111, 2: 10, 40: 12, 41: -45, 42: 980}

System Info (tsmId 1100)

Sent once on device boot-up. Contains firmware version and device model.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 1100
tsmEv2Event type: 11 (startup)
swVersion70Firmware version string
modelCode71Device model code
psnProduction serial number

Example

{
  "tsmId": 1100,
  "tsmEv": 11,
  "tsmTs": 1755060000,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "swVersion": "3.2.1",
  "modelCode": "TSEN01"
}
{1: 1100, 2: 11, 70: "3.2.1", 71: "TSEN01"}

Battery Level (tsmId 1110)

Reported every 6 hours (21600 seconds). Monitors remaining battery capacity.

JSON PropertyCBOR IndexMultiplierDescription
tsmId1Message ID: 1110
tsmEv2Event type: 10 (timed)
batl2110^1Battery level percentage

Example

{
  "tsmId": 1110,
  "tsmEv": 10,
  "tsmTs": 1755081600,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "batl": 85
}
{1: 1110, 2: 10, 21: 850}

Network Diagnostics (tsmId 1202)

Reported every 12 hours (43200 seconds). Provides mesh network connectivity metrics.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 1202
tsmEv2Event type: 10 (timed)
tuid62Device identifier
rssi61Received signal strength
rssiDbm65Signal strength in dBm

Example

{
  "tsmId": 1202,
  "tsmEv": 10,
  "tsmTs": 1755103200,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "tuid": "TSEN01TSC20203001",
  "rssi": -58,
  "rssiDbm": -58
}
{1: 1202, 2: 10, 62: "TSEN01TSC20203001", 61: -58, 65: -58}

Firmware Binary Info (tsmId 1312)

Sent once on boot alongside System Info. Reports firmware binary details.

Example

{
  "tsmId": 1312,
  "tsmEv": 11,
  "tsmTs": 1755060000,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "binaryType": 1,
  "binaryVersion": "3.2.1"
}
{1: 1312, 2: 11}

Error Event (tsmId 1403)

Sent when an error condition occurs. Use errorType and errorCause to diagnose issues.

Example

{
  "tsmId": 1403,
  "tsmEv": 29,
  "tsmTs": 1755064700,
  "tsmTuid": "TSEN01TSC20203001",
  "tsmGw": "TSGW06EWK31903495",
  "errorType": 1,
  "errorCause": 3
}
{1: 1403, 2: 29}

Event Types Reference

All tsmEv values used by ENVIRONMENT uplink messages:

tsmEvNameDescription
7State changeHall sensor state transition
9ThresholdHysteresis threshold exceeded (weather or leakage)
10TimedPeriodic report at configured interval
11StartupDevice boot-up / power-on
29ErrorCritical error report
34Timed diagnosticsPeriodic diagnostic event
CBOR IndexJSON PropertyCategory
1tsmIdHeader
2tsmEvHeader
3tsmTsHeader
4tsmTuidHeader
5tsmGwHeader
21batlSystem (multiplier 10^1)
30tempWeather (multiplier 10^1)
31lghtWeather
32humdWeather (multiplier 10^1)
33airpWeather (multiplier 10^3)
40accxOrientation
41accyOrientation
42acczOrientation
46hallMagneto switch
47hallCountMagneto switch
61rssiNetwork
62tuidNetwork
65rssiDbmNetwork
70swVersionSystem
71modelCodeSystem
81activityLevelVibration (multiplier 10^3)
89energyLevelVibration
111resistanceLeakage
1000–1009histogram0histogram9Vibration histogram