-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
124 lines (124 loc) · 4.32 KB
/
config.schema.json
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"pluginAlias": "Homebridge AEG Robot Vacuum",
"pluginType": "platform",
"singular": true,
"headerDisplay": "For help please refer to the [README](https://github.com/thoukydides/homebridge-aeg-robot/blob/master/README.md).",
"footerDisplay": "© 2022-2024 [Alexander Thoukydides](https://www.thouky.co.uk/)",
"schema": {
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"required": true
},
"accessToken": {
"type": "string",
"required": true
},
"refreshToken": {
"type": "string",
"required": true
},
"pollIntervals": {
"type": "object",
"properties": {
"statusSeconds": {
"type": "integer",
"placeholder": 30,
"minimum": 20,
"maximum": 600
}
}
},
"hideServices": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"Battery",
"Contact Sensor",
"Fan",
"Filter Maintenance",
"Occupancy Sensor",
"Switch Clean",
"Switch Home"
]
}
},
"debug": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"Run API Tests",
"Run Unsafe API Tests",
"Log API Headers",
"Log API Bodies",
"Log Appliance IDs",
"Log Debug as Info"
]
}
}
}
},
"form": [{
"type": "fieldset",
"title": "Electrolux Group API Credentials",
"expandable": false,
"items": [{
"type": "help",
"helpvalue": "<div class='help-block'>Create an API Key and Authorization tokens via the <a href='https://developer.electrolux.one/dashboard'>Electrolux Group Developer Portal Dashboard</a>.</div>"
},{
"key": "apiKey",
"title": "API Key",
"placeholder": "API Key"
},{
"key": "accessToken",
"title": "Authorization Access Token",
"placeholder": "Access Token"
},{
"key": "refreshToken",
"title": "Authorization Refresh Token",
"placeholder": "Refresh Token"
}]
},{
"type": "fieldset",
"title": "Disable Unwanted Features",
"expandable": false,
"expanded": true,
"items": [{
"key": "hideServices",
"notitle": true,
"description": "Checking an option <b>disables</b> the corresponding HomeKit Service"
}]
},{
"type": "fieldset",
"title": "Advanced Settings",
"expandable": true,
"expanded": false,
"items": [{
"key": "pollIntervals.statusSeconds",
"title": "Interval between polling each appliance for status updates",
"type": "number",
"minimum": 20,
"maximum": 600,
"fieldAddonRight": " seconds"
},{
"type": "help",
"helpvalue": "<div class='help-block'>If you have multiple robot vacuum cleaner appliances in your account (or use the same API Key for other purposes) increase the poll interval to avoid exceeding the API <a href='https://developer.electrolux.one/documentation/quotasAndRateLimits'>rate limits</a>, e.g. 30 seconds for one, 60 seconds for two, or 90 seconds for three.</div>"
}]
},{
"type": "fieldset",
"title": "Debug Options",
"expandable": true,
"expanded": false,
"items": [{
"key": "debug",
"notitle": true,
"description": "Leave all options unchecked unless debugging a problem"
}]
}],
"display": null
}