Sending a Liquid Cooling Control Strategy
-
Topic:
- User-defined MQTT:
v1/watt/${PRODUCT_KEY}/${DEVICE}/condition_control/set/command - Platform Default MQTT:
v1/user/${TENANT}/${DEVICE}/condition_control/set/command
- User-defined MQTT:
-
Permission: Subscribe
-
Payload Main Structure
Parameter Type Required Description Range Example mid UUID true Message ID - 3e681859-6917-4b9a-9afd-3f162cd185bd type str true Message type condition_set condition_set data data true Message content - See Payload – data sub_device_uid str true Primary device UID (only required if secondary device reports on behalf of primary) - jHODSda39 sub_device_id int true Primary device ID (only required if secondary device reports on behalf of primary) - 2 device_uid str true Device UID - iYRkfVpi77 timestamp int true Message timestamp (ms) (0, ∞) 1696837112000 -
Payload – data
Parameter Type Required Description Range Example power_on int false Power on (0: off, 1: on) [0,1] 1 target_heating_point float false Target temperature for heating [0,∞) 0 target_cooling_point float false Target temperature for cooling [0,∞) 1 -
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "ee2e8f09-b280-4e4d-bcb9-1529b703cfed",
"type": "condition_set",
"data": {
"power_on": 1,
"target_heating_point": 100,
"target_cooling_point": 10
},
"sub_device_uid": "${SUB_DEVICE_UID}",
"sub_device_id": "${SUB_DEVICE_ID}",
"device_uid": "${DEVICE_UID}",
"timestamp": 1695265371000
}
Response to Sending Liquid Cooling Control Strategy
-
Topic:
- User-defined MQTT:
v1/watt/${PRODUCT_KEY}/${DEVICE}/condition_control/set/result - Platform Default MQTT:
v1/user/${TENANT}/${DEVICE}/condition_control/set/result
- User-defined MQTT:
-
Permission: Subscribe
-
Payload Main Structure
Parameter Type Required Description Range Example mid UUID true Message ID - 4c5b3c27-cea8-4ea1-a936-41fd3596e0e9 reply UUID true The mid being replied to - 3e681859-6917-4b9a-9afd-3f162cd185bd type str true Message type condition_set condition_set code int true Response code - See Response Codes msg str false Failure reason - Parameter error sub_device_uid str true Sub-device UID - sub_device_id int true Primary device ID (only required if secondary device reports) - 2 device_uid str true (Secondary) device UID - iYRkfVpi77 timestamp int true Message timestamp (ms) (0, ∞) 1696837112000 -
Response Codes
Error Code Description Notes 200 Issued successfully 400 Parameter error -
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "4c5b3c27-cea8-4ea1-a936-41fd3596e0e9",
"type": "condition_set",
"reply": "3e681859-6917-4b9a-9afd-3f162cd185bd",
"code": 200,
"msg": "Issued successfully",
"sub_device_uid": "jHODSda39",
"sub_device_id": "${SUB_DEVICE_ID}",
"device_uid": "iYRkfVpi77",
"timestamp": 1695265671000
}
Request to Synchronize Liquid Cooling Control Strategy
-
Topic:
- User-defined MQTT:
v1/watt/${PRODUCT_KEY}/${DEVICE}/condition_control/sync/command - Platform Default MQTT:
v1/user/${TENANT}/${DEVICE}/condition_control/sync/command
- User-defined MQTT:
-
Permission: Publish
-
Payload Main Structure
Parameter Type Required Description Range Example mid UUID true Message ID - 4c5b3c27-cea8-4ea1-a936-41fd3596e0e9 type str true Message type condition_sync condition_sync sub_device_uid str true Primary device UID (only required if secondary device reports) - jHODSda39 sub_device_id int true Primary device ID (only required if secondary device reports) - 2 device_uid str true Device UID - iYRkfVpi77 timestamp int true Message timestamp (ms) (0, ∞) 1696837112000 -
Response Codes
Error Code Description Notes 200 Issued successfully 400 Parameter error -
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "4c5b3c27-cea8-4ea1-a936-41fd3596e0e9",
"type": "condition_sync",
"sub_device_uid": "${SUB_DEVICE_UID}",
"sub_device_id": "${SUB_DEVICE_ID}",
"device_uid": "${DEVICE_UID}",
"timestamp": 1695265671000
}
Response to Synchronizing Liquid Cooling Control Strategy
-
Topic:
- User-defined MQTT:
v1/watt/${PRODUCT_KEY}/${DEVICE}/condition_control/sync/result - Platform Default MQTT:
v1/user/${TENANT}/${DEVICE}/condition_control/sync/result
- User-defined MQTT:
-
Permission: Subscribe
-
Payload Main Structure
Parameter Type Required Description Range Example mid UUID true Message ID - 3e681859-6917-4b9a-9afd-3f162cd185bd type str true Message type condition_sync condition_sync code int true Response code - See Response Codes data data true Message content - See Payload – data sub_device_uid str true Primary device UID (only required if secondary device reports) - jHODSda39 sub_device_id int true Primary device ID (only required if secondary device reports) - 2 device_uid str true Device UID - iYRkfVpi77 timestamp int true Message timestamp (ms) (0, ∞) 1696837112000 -
Payload – data
Parameter Type Required Description Range Example power_on int false Power on (0: off, 1: on) [0,1] 1 target_heating_point float false Target temperature for heating [0,∞) 0 target_cooling_point float false Target temperature for cooling [0,∞) 1 -
Payload Example
{
"trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
"mid": "ee2e8f09-b280-4e4d-bcb9-1529b703cfed",
"reply": "3e681859-6917-4b9a-9afd-3f162cd185bd",
"type": "condition_sync",
"code": 200,
"data": {
"power_on": 1,
"target_heating_point": 100,
"target_cooling_point": 10
},
"sub_device_uid": "${SUB_DEVICE_UID}",
"sub_device_id": "${SUB_DEVICE_ID}",
"device_uid": "${DEVICE_UID}",
"timestamp": 1695265371000
}
