events

Api reference content
post/api/events

Creates a new event.

Request body

Content typeSchema
application/json
{
  "name": "string",
  "file_id": "string",
  "source_type": "emitter | file | none",
  "trigger": {
    "mac": "string",
    "sensor": "integer",
    "type": "level | pulse_audio | pulse_time",
    "duration": "double"
  },
  "action": [
    {
      "mac": "string",
      "audio": "boolean",
      "relays": "[double]"
    }
  ],
  "special_volume": "double"
}

Sensors IO

In the case of the Aip-IO, the sensors range from 0 to 15, following the next relationship:


Physical sensorApi number
0/00
0/11
0/22
0/33
1/04
1/15
1/26
1/37
2/08
2/19
2/210
2/311
3/012
3/113
3/214
3/315

Responses

StatusDescription
201
Response in headers
["x-aip-id"]
400
application/json
{
  "errors": "[string]"
}