Range

Function

This API is used to get Alarm > Disarming parameter range.

Request Message

Parameter Description

None.

Sample:

POST /API/AlarmConfig/Disarming/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
disarmingbooldisarming switch.
actionobjectSee Table 2 for details.
disarming_channel"CH1"…"CHx",
"IP_CH1"…"IP_CHx",
"WIFI_CH1"…"WIFI_CHx"
The channel supported by the device.
string arraydisarming channel .
channel_infoobjectSee Table 3.
Table 2
ParameterRangeTypeDescription
buzzerboolWhether to disarm the buzzer switch.
alarm_outboolWhether to disarm the alarm output switch.
show_messageboolWhether to disarm the alarm icon switch.
send_emailboolWhether to disarm email switch.
full_screenboolWhether to disarm the full screen switch.
voice_promptsboolWhether to disarm the voice broadcast switch.
event_push_platformboolWhether to disarm event push switch.
Table 3
ParameterRangeTypeDescription
CH1objectSee Table 4.
object
IP_CH1object
object
WIFI_CH1object
object
Table 4
ParameterRangeTypeDescription
disarming_scheduleobject arraySee Table 5.
Table 5
ParameterRangeTypeDescription
schedule_type"Disarming"stringSchedule type.
weekobject arraySee Table 6 for details.
Table 6
ParameterRangeTypeDescription
day"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"string
time0: close the time period
1: open the time period
arrayEach array bit represents half an hour.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "support_copy": true,
        "disarming": {"type": "bool"},
        "action": {
            "type": "object",
            "items": {
                "buzzer": {"type": "bool"},
                "alarm_out": {"type": "bool"},
                "show_message": {"type": "bool"},
                "send_email": {"type": "bool"},
                "full_screen": {"type": "bool"},
                "voice_prompts": {"type": "bool"},
                "event_push_platform": {"type": "bool"},
                "mobile_push": {"type": "bool"}
            }
        },
        "disarming_channel": {
            "type": "array",
            "min_size": 0,
            "max_size": 16,
            "items": {
                "type": "string",
                "items": [
                    "CH1",
                    "CH2",
                    "CH3",
                    "CH4",
                    "CH5",
                    "CH6",
                    "CH7",
                    "CH8",
                    "CH9",
                    "CH10",
                    "CH11",
                    "CH12",
                    "CH13",
                    "CH14",
                    "CH15",
                    "CH16"
                ]
            }
        },
        "channel_info": {
            "type": "object",
            "items": {
                "CH1": {
                    "type": "object",
                    "items": {"disarming_schedule": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 2,
                        "items": [{
                            "schedule_type": {
                                "type": "string",
                                "items": ["Disarming"]
                            },
                            "week": {
                                "type": "array",
                                "size": 7,
                                "items": [{
                                    "day": {
                                        "type": "string",
                                        "items": [
                                            "Sun",
                                            "Mon",
                                            "Tue",
                                            "Wed",
                                            "Thu",
                                            "Fri",
                                            "Sat"
                                        ]
                                    },
                                    "time": {
                                        "type": "array",
                                        "size": 48,
                                        "items": [{
                                            "type": "int32",
                                            "items": [
                                                0,
                                                1
                                            ]
                                        }]
                                    }
                                }]
                            }
                        }]
                    }}
                }
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.