forked from rithvikvibhu/GHLocalApi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
device-settings.apib
60 lines (47 loc) · 1.5 KB
/
device-settings.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Group Device Settings
Change various device settings
## Set device options [/setup/set_eureka_info]
**Note:** Any combination of fields can be used.
### Set device options [POST]
+ Request (application/json)
{
"name": "Living Room",
"settings": {
"control_notifications": 2
},
"opt_in": {
"opencast": false,
"preview_channel": false,
"remote_ducking": false,
"stats": false
}
}
+ Response 200
## Set night mode settings [/setup/assistant/set_night_mode_params]
Set night mode settings.
**Note:** Any combination of fields can be used.
**Control normal volume with night mode**
Since normal volume can be controlled for night mode, if night mode is active throughout the day, it might be possible to use it as a workaround for controlling normal volume. [_Testing needed_]
### Set night mode settings [POST]
+ Request (application/json)
{
"enabled": false,
"do_not_disturb": true,
"led_brightness": 0.44999998807907104,
"volume":0.46000000834465027,
"demo_to_user": true,
"windows": [
{
"length_hours": 8,
"days": [0,1,2,3,4,5,6],
"start_hour": 22
}
]
}
+ Response 200
## Reboot device [/setup/reboot]
Reboot the device.
### Reboot the device [POST]
+ Request (application/json)
{ "params": "now" }
+ Response 200