Reporting Safety Protection Strategy
- Topic:
- Custom MQTT by User:
v1/watt/${PRODUCT_KEY}/${DEVICE}/safety/details/post
- Default MQTT by Platform:
v1/user/${TENANT}/${DEVICE}/safety/details/post
- Permission: Subscribe
Payload – Main Structure
| Parameter | Type | Required | Description | Range | Example |
|---|
| mid | UUID | Yes | Message ID | - | 3e681859-6917-4b9a-9afd-3f162cd185bd |
| type | str | Yes | Message Type | safety_details | safety_details |
| data | data | Yes | Message Content | - | See Payload – data |
| sub_device_uid | str | Yes | First-level device UID (required only if second-level device reports on behalf) | - | jHODSda39 |
| device_uid | str | Yes | Device UID | - | iYRkfVpi77 |
| timestamp | int | Yes | Message timestamp (milliseconds) | (0, ∞) | 1696837112000 |
Payload – data
| Parameter | Type | Required | Description | Range | Example |
|---|
| bms_3 | int | Yes | BMS Level-3 alarm shutdown status (0=Off,1=On) | [0,1] | 1 |
| fire_control | int | Yes | Fire alarm shutdown (0=Off,1=On) | [0,1] | 0 |
| flooding | int | Yes | Flooding shutdown (0=Off,1=On) | [0,1] | 1 |
| aircon | int | Yes | Air conditioner offline shutdown (0=Off,1=On) | [0,1] | 0 |
| aircon_mins | int | Yes | Air conditioner offline shutdown time (minutes) | [0, ∞) | 10 |
| temp | int | Yes | Indoor over-temperature shutdown (0=Off,1=On) | [0,1] | 1 |
| temp_celsius | int | Yes | Over-temperature shutdown threshold (°C) | [0, ∞) | 35 |
| grounded | int | Yes | Grounding offline shutdown status (0=Off,1=On) | [0,1] | 1 |
| grounded_mins | int | Yes | Grounding offline shutdown time (minutes) | [0, ∞) | 5 |
| bms_2 | int | Yes | BMS Level-2 alarm derate/shutdown (0=Off,1=On) | [0,1] | 1 |
| bms_2_kw | int | Yes | BMS Level-2 alarm derate down to (kW) | [0, ∞) | 100 |
| meter_offline_power0 | int | Yes | Meter offline shutdown (0=Off,1=On) | [0,1] | 1 |
| meter_offline_mins | int | Yes | Meter offline shutdown time (minutes) | [0, ∞) | 100 |
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "ee2e8f09-b280-4e4d-bcb9-1529b703cfed",
"type": "safety_details",
"data": {
"bms_3": 0,
"fire_control": 0,
"flooding": 0,
"aircon": 0,
"aircon_mins": 0,
"temp": 0,
"temp_celsius": 0,
"grounded": 0,
"grounded_mins": 0,
"bms_2": 0,
"bms_2_kw": 0,
"meter_offline_power0": 0,
"meter_offline_mins": 0
},
"sub_device_uid": "${SUB_DEVICE_UID}",
"device_uid": "${DEVICE_UID}",
"timestamp": 1695265371000
}
Platform Requests Synchronization of Safety Protection Strategy
- Topic:
- Custom MQTT by User:
v1/watt/${PRODUCT_KEY}/${DEVICE}/safety/sync/command
- Default MQTT by Platform:
v1/user/${TENANT}/${DEVICE}/safety/sync/command
- Permission: Publish
Payload – Main Structure
| Parameter | Type | Required | Description | Range | Example |
|---|
| mid | UUID | Yes | Message ID | - | 4c5b3c27-cea8-4ea1-a936-41fd3596e0e9 |
| reply | UUID | Yes | The mid of the message being replied to | - | 3e681859-6917-4b9a-9afd-3f162cd185bd |
| type | str | Yes | Message Type | safety_sync | safety_sync |
| code | int | Yes | Response code | - | See response codes |
| msg | str | Yes | Failure reason | - | Parameter error |
| sub_device_uid | str | Yes | First-level device UID (only required if second-level device is reporting on behalf) | - | jHODSda39 |
| device_uid | str | Yes | Device UID | - | iYRkfVpi77 |
| timestamp | int | Yes | Message timestamp (ms) | (0, ∞) | 1696837112000 |
Response Codes
| Error Code | Description | Note |
|---|
| 200 | Issued Successfully | - |
| 400 | Parameter Error | - |
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "4c5b3c27-cea8-4ea1-a936-41fd3596e0e9",
"type": "safety_sync",
"code": 200,
"msg": "",
"sub_device_uid": "${SUB_DEVICE_UID}",
"device_uid": "${DEVICE_UID}",
"timestamp": 1695265671000
}
Synchronize Safety Protection Strategy Response
- Topic:
- Custom MQTT by User:
v1/watt/${PRODUCT_KEY}/${DEVICE}/safety/sync/result
- Default MQTT by Platform:
v1/user/${TENANT}/${DEVICE}/safety/sync/result
- Permission: Subscribe
Payload – Main Structure
| Parameter | Type | Required | Description | Range | Example |
|---|
| mid | UUID | Yes | Message ID | - | 3e681859-6917-4b9a-9afd-3f162cd185bd |
| type | str | Yes | Message Type | safety_sync | safety_sync |
| data | data | Yes | Message Content | - | See Payload – data |
| sub_device_uid | str | Yes | First-level device UID (only required if second-level device is reporting on behalf) | - | jHODSda39 |
| device_uid | str | Yes | Device UID | - | iYRkfVpi77 |
| timestamp | int | Yes | Message timestamp (ms) | (0,∞) | 1696837112000 |
Payload – data
| Parameter | Type | Required | Description | Range | Example |
|---|
| bms_3 | int | Yes | BMS Level-3 alarm shutdown state (0=Off,1=On) | [0,1] | 1 |
| fire_control | int | Yes | Fire alarm shutdown (0=Off,1=On) | [0,1] | 0 |
| flooding | int | Yes | Flooding shutdown (0=Off,1=On) | [0,1] | 1 |
| aircon | int | Yes | Air conditioner offline shutdown (0=Off,1=On) | [0,1] | 0 |
| aircon_mins | int | Yes | Air conditioner offline shutdown time (minutes) | [0,∞) | 10 |
| temp | int | Yes | Indoor over-temperature shutdown (0=Off,1=On) | [0,1] | 1 |
| temp_celsius | int | Yes | Over-temperature shutdown threshold (°C) | [0,∞) | 35 |
| grounded | int | Yes | Grounding offline shutdown status (0=Off,1=On) | [0,1] | 1 |
| grounded_mins | int | Yes | Grounding offline shutdown time (minutes) | [0,∞) | 5 |
| bms_2 | int | Yes | BMS Level-2 alarm derate shutdown (0=Off,1=On) | [0,1] | 1 |
| bms_2_kw | int | Yes | Derated power for BMS Level-2 alarm (kW) | [0,∞) | 100 |
| meter_offline_power0 | int | Yes | Meter offline shutdown (0=Off,1=On) | [0,1] | 1 |
| meter_offline_mins | int | Yes | Meter offline shutdown time (minutes) | [0,∞) | 100 |
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "ee2e8f09-b280-4e4d-bcb9-1529b703cfed",
"reply": "3e681859-6917-4b9a-9afd-3f162cd185bd",
"type": "safety_sync",
"data": {
"bms_3": 0,
"fire_control": 0,
"flooding": 0,
"aircon": 0,
"aircon_mins": 0,
"temp": 0,
"temp_celsius": 0,
"grounded": 0,
"grounded_mins": 0,
"bms_2": 0,
"bms_2_kw": 0,
"meter_offline_power0": 0,
"meter_offline_mins": 0
},
"sub_device_uid": "${SUB_DEVICE_UID}",
"device_uid": "${DEVICE_UID}",
"timestamp": 1695265371000
}