Reporting Faults/Alarms
- Topic:
- User-defined MQTT:
v1/watt/${PRODUCT_KEY}/${DEVICE}/alarm/details/post - Platform Default MQTT:
v1/user/${TENANT}/${DEVICE}/alarm/details/post
- User-defined MQTT:
- Permissions: Subscription
Payload Main Structure
| Parameter | Type | Required | Description | Range | Example |
|---|---|---|---|---|---|
| mid | UUID | true | Message ID | - | 3e681859-6917-4b9a-9afd-3f162cd185bd |
| type | str | true | Message type | alarm_details | alarm_details |
| data | data | true | Message content | - | See Payload - data |
| sub_device_uid | str | true | Primary device UID, required if reported by a secondary device on behalf of a primary device | - | jHODSda39 |
| sub_device_id | int | true | Primary device ID, required if reported by a secondary device on behalf of a primary device | (0, ∞) | 1 |
| device_uid | str | true | Device UID | - | iYRkfVpi77 |
| timestamp | int | true | Message timestamp (in ms) | (0, ∞) | 1696837112000 |
Payload - data/AlarmData
| Parameter | Type | Required | Description | Range | Example |
|---|---|---|---|---|---|
| id | int | true | Alarm ID | (0, ∞) | 10 |
| content | str | true | Fault/Alarm Content | - | Non-controlled rectification alarm |
| device_type | str | true | Device type where the alarm occurred | PCS, BMS | PCS |
| alarm_type | str | true | Type of device reporting the alarm | ems | ems |
| level | int | true | Alarm level | [1, 3] | 1 |
| handle_status | int | true | Status 1: New 2: Processed | - | 2 |
| handle_type | int | false | Handling Method 1: Auto 2: Manual | - | 2 |
| user_id | int | false | ID of the user who handled it | - | 1 |
| occur_time | str | true | Alarm occurrence time (UTC) | - | 2024-04-16T02:30:27Z |
| handle_time | str | false | Alarm handling time (UTC) | - | 2024-04-16T02:30:27Z |
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "ee2e8f09-b280-4e4d-bcb9-1529b703cfed",
"type": "alarms_details",
"data": {
"content": "Non-controlled rectification alarm",
"device_type": "PCS",
"alarm_type": "ems",
"level": 1,
"handle_status": 2,
"handle_type": 2,
"user_id": 1,
"occur_time": "2024-04-16T02:30:27Z",
"handle_time": "2024-04-16T02:30:27Z"
},
"sub_device_uid": "${SUB_DEVICE_UID}",
"sub_device_id": "${SUB_DEVICE_ID}",
"device_uid": "${DEVICE_UID}",
"timestamp": 1695265371000
}
