Hub 2

May 16, 2026 ยท View on GitHub


Device Status

KeyValue TypeDescription
deviceIdStringdevice ID
deviceTypeStringdevice type. Hub 2
hubDeviceIdStringHub ID, equivalent to device ID
temperatureFloattemperature in celsius
lightLevelIntegerthe level of illuminance of the ambience light, 1~20
versionStringthe current firmware version, e.g. V4.2
humidityIntegerhumidity percentage

Webhook Events

Key NameValue TypeDescription
eventTypeStringthe type of events
eventVersionStringthe current event version
contextObjectthe detail info of the event
deviceTypeStringattributes of the context object. the type of the device
deviceMacStringattributes of the context object. the MAC address of the device
temperatureFloatthe current temperature reading
humidityIntegerthe current humidity reading in percentage
lightLevelIntegerthe level of illuminance of the ambience light, 1~20
scaleStringthe current temperature unit being used
timeOfSampleLongattributes of the context object. the time stamp when the event is sent
{
    "eventType": "changeReport",
    "eventVersion": "1",
    "context": {
        "deviceType": "WoHub2",
        "deviceMac": DEVICE_MAC_ADDR,
        "temperature":13,
        "humidity":18,
        "lightLevel": 19,
        "scale": "CELSIUS",
        "timeOfSample": 123456789
    }
}