Mute Device

Last Updated on : 2023-06-20 14:54:09

Send a command of muting the alarm sound to a firefighting device. On receiving the command, the firefighting device will mute the alarm sound.

API address

POST: /v1.0/fire-control/{device_id}/actions/silence-enable

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.

Description of body

Parameter nameTypeINRequiredDescription
enable_silenceBoolean falseSpecifies whether the alarm sound of a firefighting device is muted.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe command record ID.

Request example

POST: /v1.0/fire-control/6ce****/actions/silence-enable
{
  "enableSilence": true
}

Return example

{
    "result": {
        "sn": "133****"
    },
    "t": 1561456817168,
    "success": true
}

Error code

For more information, see error code.