Get device relays settings
Returns general settings for all device relays.
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
items object[]
List of relay settings
number integerPossible values:
>= 1and<= 8Unique relay number. Can be in range 1-8, it depends on number of peripheral devices connected on external ports(RS485...).
normally_closed booleanDescribes relay initial state
open_settings object
Relay open parameters
duration integerPossible values:
>= 1000and<= 300000Relay open duration in milliseconds
delay integerPossible values:
<= 300000Delay before relay opened in milliseconds
type_settings object
Type specific relay settings
oneOf- MOD1
- MOD2
type stringPossible values: [
electromagnetic]Type of the lock
type stringPossible values: [
electromechanical]Type of the lock
pulse_on integerPossible values:
>= 1000and<= 2000Power on duration in seconds for electromechanical lock in milliseconds
pulse_off integerPossible values:
>= 500and<= 2000Time between switching on the electromechanical lock in milliseconds
{
"items": [
{
"number": 2,
"normally_closed": false,
"open_settings": {
"duration": 1000,
"delay": 0
},
"type_settings": {
"type": "electromagnetic"
}
}
]
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Invalid authentication"
}
}