Run an action defined on the device model.
| Topic | Direction |
|---|---|
things5-production/v1/devices/{device_id}/cmd/perform_action_req | Things5 → device |
things5-production/v1/devices/{device_id}/cmd/perform_action_res | Device → Things5 |
Things5 → device: cmd/perform_action_req
cmd/perform_action_reqThis topic can be used to request a device to perform an action
things5-production/v1/devices/<device-id>/cmd/perform_action_req
Payload
{
"request_id": "UUID",
"name": "start_recipe",
"parameters": [{
"name": "name",
"value": "chicken"
}]
}
| name | description | example |
|---|---|---|
| request_id | the id to send back in the response | |
| name | name of the action | |
| parameters | provide optional parameters |
Device → Things5: cmd/perform_action_res
cmd/perform_action_resThis topic can be used to request a device to perform an action
things5-production/v1/devices/<device-id>/cmd/perform_action_res
Payload
{
"request_id": "UUID sent during perform action request",
"errors": []
}
| name | description | example |
|---|---|---|
| request_id | a random UUID created by things5 during perform action request | |
| errors | list of strings. Empty if no errors |
