Отримайте розклад для кімнати
GET/schedules/rooms
Отримати розклади з конкретною цільовою кімнатою
Responses
- 200
- 401
Розклад існує
- application/json
- Schema
- Example (from schema)
Schema
Array [
- thermostat
- actionCall
- sceneInvoke
Array [
Array [
]
]
Array [
Array [
]
]
Array [
Array [
]
]
]
Прапорець, який показує, чи був запит успішним
schedules
object[]
Список розкладів
Is schedule active
type
string
required
Possible values: [thermostat
, actionCall
, sceneInvoke
]
Schedule type
schedule_periods
object[]
Array of schedule periods
День
Possible values: [monday
, tuesday
, wednesday
, thursday
, friday
, saturday
, sunday
]
timepoints
object[]
.schedules.period.thermostat.timepoints.description
.schedules.period.timepoints.time.description
12:00
.schedules.period.thermostat.timepoints.setpoint.description
20.5
.schedules.period.thermostat.timepoints.mode.description
Possible values: [Off
, Heat
, Cool
, Auto
]
Heat
name of action to call
schedule_periods
object[]
Array of schedule periods
День
Possible values: [monday
, tuesday
, wednesday
, thursday
, friday
, saturday
, sunday
]
timepoints
object[]
.schedules.period.timepoints.time.description
12:00
.schedules.period.timepoints.action_call.arguments.description
id of scene to call
schedule_periods
object[]
Array of schedule periods
День
Possible values: [monday
, tuesday
, wednesday
, thursday
, friday
, saturday
, sunday
]
timepoints
object[]
.schedules.period.timepoints.time.description
12:00
Possible values: [device
, room
]
IDs of targets
Schedule repeat period
Possible values: [yearly
, monthly
, weekly
, daily
, hourly
, interval
]
{
"success": true,
"schedules": [
{
"active": true,
"type": "thermostat",
"target_type": "device",
"target_ids": [
0
],
"period_type": "yearly"
}
]
}
Користувач не має дозволу.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Прапорець, який показує, чи був запит успішним
Ціле число помилки, див. Помилки
Опис помилки
Додаткові дані, що описують помилку
{
"success": true,
"errorCode": 0,
"errorMessage": "string"
}
{
"success": false,
"errorCode": 4131,
"errorMessage": "User not authorized",
"errorParameters": "Not authorized"
}