Comfort manager API (0.1)
Download OpenAPI specification:Download
Comfort manager API written in golang.
Set alarm
Set alarm for unit by sending desired alarm state
Authorizations:
path Parameters
| unit required | string Unit selector (unique box identifier) |
Request Body schema: application/json
Body params for setting alarm
| alarmType | string Enum: "DISARM" "ARM_AWAY" "ARM_HOME" "ARM_NIGHT" "ARM_VACATION" Type of alarm for setting alarm - oneof enum values |
Responses
Request samples
- Payload
{- "alarmType": "DISARM"
}Response samples
- 202
- 400
- 404
- 500
{- "message": "string"
}Get outputs list
Get outputs list for certain unit
Authorizations:
path Parameters
| unit required | string Unit selector |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "outputs": [
- {
- "isActive": true,
- "name": "string",
- "number": 0,
- "pathSet": "string",
- "pathStatus": "string",
- "unitSelector": "string"
}
]
}Send output activation request
This endpoint should be used to send request for activating output by number (isActive state is required)
Authorizations:
path Parameters
| unit required | string Unit selector |
Request Body schema: application/json
query params
| isActive | boolean Output state (whether should be ON or OFF) |
| number | integer Output number |
Responses
Request samples
- Payload
{- "isActive": true,
- "number": 0
}Response samples
- 202
- 400
- 404
- 500
{- "message": "string"
}Get responses list
Get responses list with numbers and states for certain unit
Authorizations:
path Parameters
| unit required | string Unit selector (unique box identifier) |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "responses": [
- {
- "description": "string",
- "fixed": "string",
- "name": "string",
- "number": 0,
- "pathSet": "string",
- "unitSelector": "string"
}
]
}Send response activation request
This endpoint should be used to send request for activating response - response activates predefined number of outputs
Authorizations:
path Parameters
| unit required | string Unit selector |
Request Body schema: application/json
query params
| number | integer Response number for sending request |
Responses
Request samples
- Payload
{- "number": 1
}Response samples
- 202
- 400
- 404
- 500
{- "message": "string"
}Send custom command
Send custom command for unit with topic and payload (not really used)
Authorizations:
path Parameters
| unit required | string Unit selector (unique box identifier) |
Request Body schema: application/json
Body params for custom command
| payload | string Payload - state for setting command, usually 1 or 0 |
| topic | string Topic - path for sending custom command |
Responses
Request samples
- Payload
{- "payload": "1",
- "topic": "output1/set"
}Response samples
- 202
- 400
- 404
- 500
{- "message": "string"
}Change user code
Change user code for specified user and unit
Authorizations:
path Parameters
| unit required | string Unit selector (unique box identifier) |
Request Body schema: application/json
Body for user code change request
| accessCode | string Pin/Access code value |
| number | integer User number for access code |
Responses
Request samples
- Payload
{- "accessCode": "string",
- "number": 0
}Response samples
- 202
- 400
- 404
- 500
{- "message": "string"
}Get zones list
Get zones list for certain unit Zones indicate whether some things are on or off. E.g. if light is on, if doors are open
Authorizations:
path Parameters
| unit required | string Unit selector (unique box identifier) |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "zones": [
- {
- "isActive": true,
- "name": "Zone 1",
- "number": 1,
- "unitSelector": "ta01"
}
]
}Get all units zones
Get all units zones Zones indicate whether some things are on or off. E.g. if light is on, if doors are open
Authorizations:
Responses
Response samples
- 200
- 400
- 404
- 500
{- "zones": [
- {
- "isActive": true,
- "name": "Zone 1",
- "number": 1,
- "unitSelector": "ta01"
}
]
}