EcoWatt Technologies Logo

Prot - BESS Safety Protection

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

ParameterTypeRequiredDescriptionRangeExample
midUUIDYesMessage ID-3e681859-6917-4b9a-9afd-3f162cd185bd
typestrYesMessage Typesafety_detailssafety_details
datadataYesMessage Content-See Payload – data
sub_device_uidstrYesFirst-level device UID (required only if second-level device reports on behalf)-jHODSda39
device_uidstrYesDevice UID-iYRkfVpi77
timestampintYesMessage timestamp (milliseconds)(0, ∞)1696837112000

Payload – data

ParameterTypeRequiredDescriptionRangeExample
bms_3intYesBMS Level-3 alarm shutdown status (0=Off,1=On)[0,1]1
fire_controlintYesFire alarm shutdown (0=Off,1=On)[0,1]0
floodingintYesFlooding shutdown (0=Off,1=On)[0,1]1
airconintYesAir conditioner offline shutdown (0=Off,1=On)[0,1]0
aircon_minsintYesAir conditioner offline shutdown time (minutes)[0, ∞)10
tempintYesIndoor over-temperature shutdown (0=Off,1=On)[0,1]1
temp_celsiusintYesOver-temperature shutdown threshold (°C)[0, ∞)35
groundedintYesGrounding offline shutdown status (0=Off,1=On)[0,1]1
grounded_minsintYesGrounding offline shutdown time (minutes)[0, ∞)5
bms_2intYesBMS Level-2 alarm derate/shutdown (0=Off,1=On)[0,1]1
bms_2_kwintYesBMS Level-2 alarm derate down to (kW)[0, ∞)100
meter_offline_power0intYesMeter offline shutdown (0=Off,1=On)[0,1]1
meter_offline_minsintYesMeter 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

ParameterTypeRequiredDescriptionRangeExample
midUUIDYesMessage ID-4c5b3c27-cea8-4ea1-a936-41fd3596e0e9
replyUUIDYesThe mid of the message being replied to-3e681859-6917-4b9a-9afd-3f162cd185bd
typestrYesMessage Typesafety_syncsafety_sync
codeintYesResponse code-See response codes
msgstrYesFailure reason-Parameter error
sub_device_uidstrYesFirst-level device UID (only required if second-level device is reporting on behalf)-jHODSda39
device_uidstrYesDevice UID-iYRkfVpi77
timestampintYesMessage timestamp (ms)(0, ∞)1696837112000

Response Codes

Error CodeDescriptionNote
200Issued Successfully-
400Parameter 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

ParameterTypeRequiredDescriptionRangeExample
midUUIDYesMessage ID-3e681859-6917-4b9a-9afd-3f162cd185bd
typestrYesMessage Typesafety_syncsafety_sync
datadataYesMessage Content-See Payload – data
sub_device_uidstrYesFirst-level device UID (only required if second-level device is reporting on behalf)-jHODSda39
device_uidstrYesDevice UID-iYRkfVpi77
timestampintYesMessage timestamp (ms)(0,∞)1696837112000

Payload – data

ParameterTypeRequiredDescriptionRangeExample
bms_3intYesBMS Level-3 alarm shutdown state (0=Off,1=On)[0,1]1
fire_controlintYesFire alarm shutdown (0=Off,1=On)[0,1]0
floodingintYesFlooding shutdown (0=Off,1=On)[0,1]1
airconintYesAir conditioner offline shutdown (0=Off,1=On)[0,1]0
aircon_minsintYesAir conditioner offline shutdown time (minutes)[0,∞)10
tempintYesIndoor over-temperature shutdown (0=Off,1=On)[0,1]1
temp_celsiusintYesOver-temperature shutdown threshold (°C)[0,∞)35
groundedintYesGrounding offline shutdown status (0=Off,1=On)[0,1]1
grounded_minsintYesGrounding offline shutdown time (minutes)[0,∞)5
bms_2intYesBMS Level-2 alarm derate shutdown (0=Off,1=On)[0,1]1
bms_2_kwintYesDerated power for BMS Level-2 alarm (kW)[0,∞)100
meter_offline_power0intYesMeter offline shutdown (0=Off,1=On)[0,1]1
meter_offline_minsintYesMeter 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
}