Set Security sensors settings
Configures Security sensors settings.
No - number of the sensor
Type - type o the sensor
Sensor types:
- Normal mode - the sensor is activated only when the system is armed and if this sensor is selected in the paragraph above. Usually, this type is used for door and window sensors.
- Emergency and 24 hours - is active constantly. These types can be selected when flood sensors, gas, volume, smoke, and heating are connected to the loops.
Mode - mode of the sensor (NO, NC, trigger, bell)
Delay - delay in seconds before activating a specific sensor
Sensor - selects the display type of the sensor for additional informativity when triggered
Delay might be changed only if type of zone is normal, else delay = 0
- application/json
Request Body
zones object[] required
List of zone settings
zone_id integerPossible values:
<= 15
Zone number
type stringSensor type
mode stringSensor mode
delay integerSensor activation delay in seconds
sensor stringSensor name
Responses
- 200
- 400
- 401
OK
Validation error. Required fields are not provided.
- Wrong type value
- Wrong mode value
- Wrong delay value
- Wrong sensor value
- Wrong zone_id
- Missed json body or wrong param. Response sample:
"error": "Wrong JSON body"
- Required field is not provided. Response sample:
"error": "Wrong JSON body: no value for `param`"
where param
- is a required field that was not provided
- Field was of the wrong type. Response sample:
"error": "Wrong JSON body: value `param` was of the wrong type"
where param
- is a field of the wrong type
- application/json
- Schema
- Example (from schema)
- Wrong type value
- Base
- No value
- Wrong param type
Schema
- error string
Error information
{
"error": true
}
{
"error": "Wrong type value"
}
{
"error": "Wrong JSON body"
}
{
"error": "Wrong JSON body: no value for `param`"
}
{
"error": "Wrong JSON body: value `param` was of the wrong type"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
Error information
{
"error": "Log In"
}
{
"error": "Log In"
}
Loading...