Skip to content

Repeat Alert

Repeat alerts are suitable for scenarios requiring continuous reminders or periodic announcements, and support custom cid.

Purpose: Implement periodic audible and visual announcements.

URL: http://<Alarm Light IP Address>/api/api/set_api_repeat_alarm

Request Method: POST

Data Type: form-data

Request Parameters:

Parameter NameTypeDescription
notify_descstringNotification group
tts_textstringVoice announcement content

Successful Response Example:

{
"code": 200,
"msg": "OK",
"data": {
"cid": "658529f458d39" // cid is the ID of the periodic announcement, which is required for deletion.
}
}

Failed Response Example:

{
"code": 500,
"msg": "Notification group does not exist, please enter the correct notification group.",
"data": null
}
{
"code": 703,
"msg": "This feature is not enabled.",
"data": null
}

Purpose: Used for unlimited, non-interval looping voice announcements until deleted.

URL: http://<Alarm Light IP Address>/api/api/not_stop_repeat_alarm

Request Method: POST

Data Type: form-data

Parameters:

Parameter NameTypeDescription
notify_descstringNotification group
tts_textstringVoice announcement content

Successful Response Example:

{
"code": 200,
"msg": "OK",
"data": {
"cid": "65852a694f97b" // cid is the ID of the periodic announcement, which is required for deletion.
}
}

Failed Response Example:

{
"code": 500,
"msg": "Notification group does not exist, please enter the correct notification group.",
"data": null
}
{
"code": 703,
"msg": "This feature is not enabled.",
"data": null
}

Purpose: Used to manually delete periodic or infinite loop announcements.

URL: http://<Alarm Light IP Address>/api/home/del_repeat_alarm

Request Method: POST

Data Type: form-data

Request Parameters:

Parameter NameTypeDescription
idstringPeriodic (infinite loop) announcement ID

Successful Response Example:

{
"code": 200,
"msg": "Loop announcement deleted successfully.",
"data": {
"method": 63,
"id": "67b4abf1bcc6b3fd19f24ac0dc42dd8c",
"data": "OK",
"res_code": 0
}
}