This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.schema.json
87 lines (87 loc) · 2.23 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
{
"pluginAlias": "SOMA",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin for SOMA devices.",
"footerDisplay": "",
"schema": {
"type": "object",
"properties": {
"name": {
"description": "Plugin name as displayed in the Homebridge log.",
"type": "string",
"required": true,
"default": "SOMA"
},
"restartInterval": {
"description": "Interval in hours to restart Homebridge SOMA. Default: don't restart.",
"type": "integer",
"minimum": 1,
"maximum": 12
},
"rssi": {
"description": "Minimum RSSI value to expose SOMA device. Default: -100.",
"type": "integer",
"minimum": -100,
"maximum": -50
},
"shades": {
"title": "Device",
"type": "array",
"items": {
"title": "Device",
"description": "Name or MAC address of SOMA device to expose.",
"type": "string"
}
},
"timeout": {
"description": "The timeout in seconds to wait for a response from a SOMA device. Default: 15.",
"type": "integer",
"minimum": 1,
"maximum": 60
}
}
},
"form": [
"name",
{
"type": "fieldset",
"expandable": true,
"title": "Whitelist Devices",
"description": "By default, Homebridge SOMA exposes all discovered SOMA devices. Use this whitelist to expose listed devices only.",
"items": [
{
"nodescription": true,
"notitle": true,
"key": "shades",
"type": "array",
"items": [
{
"type": "div",
"displayFlex": true,
"flex-direction": "row",
"items": [
{
"key": "shades[]",
"required": true,
"flex": "1 1 50px"
}
]
}
]
}
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"description": "Don't change these, unless you understand what you're doing.",
"items": [
"restartInterval",
"rssi",
"timeout"
]
}
]
}