Skip to main content

Comfort manager API (0.1)

Download OpenAPI specification:Download

Comfort manager API written in golang.

Alarm

Get all alarm states

Get all units alarm states

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
{
  • "alarms": [
    ]
}

Get alarm state

Get alarm state for certain unit

Authorizations:
Bearer
path Parameters
unit
required
string

Unit selector (unique box identifier)

Responses

Response samples

Content type
application/json
{
  • "alarmState": "disarmed",
  • "isConnected": true,
  • "timer": 0
}

Set alarm

Set alarm for unit by sending desired alarm state

Authorizations:
Bearer
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

Content type
application/json
{
  • "alarmType": "DISARM"
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Outputs

Get all units outputs list

Get all units outputs list

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
{
  • "outputs": [
    ]
}

Get outputs list

Get outputs list for certain unit

Authorizations:
Bearer
path Parameters
unit
required
string

Unit selector

Responses

Response samples

Content type
application/json
{
  • "outputs": [
    ]
}

Send output activation request

This endpoint should be used to send request for activating output by number (isActive state is required)

Authorizations:
Bearer
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

Content type
application/json
{
  • "isActive": true,
  • "number": 0
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Responses

Get all units responses list

Get responses list for all units

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
{
  • "responses": [
    ]
}

Get responses list

Get responses list with numbers and states for certain unit

Authorizations:
Bearer
path Parameters
unit
required
string

Unit selector (unique box identifier)

Responses

Response samples

Content type
application/json
{
  • "responses": [
    ]
}

Send response activation request

This endpoint should be used to send request for activating response - response activates predefined number of outputs

Authorizations:
Bearer
path Parameters
unit
required
string

Unit selector

Request Body schema: application/json

query params

number
integer

Response number for sending request

Responses

Request samples

Content type
application/json
{
  • "number": 1
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Sensors

Get all sensor values

Get all values for all units sensors

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
{
  • "sensorValues": [
    ]
}

Get sensor values

Get sensor values for unit

Authorizations:
Bearer
path Parameters
unit
required
string

Unit selector (unique box identifier)

Responses

Response samples

Content type
application/json
{
  • "sensorValues": [
    ]
}

Units

Get units

Get units with selectors and names

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
{
  • "units": [
    ]
}

Commands

Send custom command

Send custom command for unit with topic and payload (not really used)

Authorizations:
Bearer
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

Content type
application/json
{
  • "payload": "1",
  • "topic": "output1/set"
}

Response samples

Content type
application/json
{
  • "message": "string"
}

User codes

Get user codes

Get user codes for unit

Authorizations:
Bearer
path Parameters
unit
required
string

Unit selector (unique box identifier)

Responses

Response samples

Content type
application/json
{
  • "userCodes": [
    ]
}

Change user code

Change user code for specified user and unit

Authorizations:
Bearer
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

Content type
application/json
{
  • "accessCode": "string",
  • "number": 0
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Zones

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:
Bearer
path Parameters
unit
required
string

Unit selector (unique box identifier)

Responses

Response samples

Content type
application/json
{
  • "zones": [
    ]
}

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:
Bearer

Responses

Response samples

Content type
application/json
{
  • "zones": [
    ]
}