Sensibo
Sensibo
Sensibo
swagger: '2.0'
info:
version: "2.0.0"
title: Sensibo
host: home.sensibo.com
basePath: /api/v2
schemes:
- https
consumes:
- application/json
produces:
- application/json
security:
- apiKey: []
securityDefinitions:
apiKey:
type: apiKey
in: query
name: apiKey
paths:
/users/me/pods:
get:
description: |
security:
- apiKey: []
responses:
200:
schema:
title: ArrayOfPods
type: array
items:
title: Pod
type: object
properties:
name:
type: string
/pods/{podUid}:
get:
description:
parameters:
name: podUid
in: path
required: true
type: string
security:
- apiKey: []
responses:
200:
schema:
title: Pod
type: object
items:
properties:
name:
type: string
/pods/{podUid}/acStates:
get:
description:
parameters:
name: podUid
in: path
description: Pod unique id
required: true
type: string
security:
- apiKey: []
responses:
200:
post:
description:
parameters:
name: podUid
in: path
required: true
type: string
name: acState
in: body
schema:
$ref: '#/definitions/acStateObject'
security:
- apiKey: []
responses:
200:
/pods/{podUid}/acStates/{property}:
get:
description:
parameters:
name: podUid
in: path
required: true
type: string
name: property
in: path
required: true
type: string
security:
- apiKey: []
responses:
200:
patch:
description:
parameters:
name: podUid
in: path
required: true
type: string
name: property
in: path
required: true
type: string
name: newValue
in: body
required: true
schema:
$ref: "#/definitions/newValueObject"
security:
- apiKey: []
responses:
200:
/pods/{podUid}/measurements:
get:
description:
parameters:
name: podUid
in: path
required: true
type: string
security:
- apiKey: []
responses:
200:
description: Success. Returns an array of 1 measurement object with time temperature and humidity
definitions:
acStateObject:
required:
- acState
properties:
acState:
$ref: '#/definitions/acState'
acState:
type: object
required:
- on
- mode
- fanLevel
- targetTemperature
properties:
on:
type: boolean
description: on/off
mode:
type: string
fanLevel:
type: string
targetTemperature:
type: integer
newValueObject:
type: object
required:
- newValue
- currentAcState
properties:
newValue:
type: string
currentAcState:
$ref: "#/definitions/acStateObject"