generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.schema.json
131 lines (127 loc) · 3.69 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
125
126
127
128
129
130
131
{
"pluginAlias": "wled-ws",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin for LED strips controlled by WLED",
"footerDisplay": "For a detailed description, see the [README](https://github.com/smhex/homebridge-wled-ws#readme) file.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Plugin Platform Name",
"type": "string",
"required": true,
"default": "wled-ws platform",
"description": "This name is only visible in the Homebridge logs."
},
"controllers": {
"title": "Controller",
"type": "array",
"items": {
"title": "Controller",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"description": "This name is used as accessory name in Homekit"
},
"address": {
"title": "IP Address / Hostname",
"type": "string",
"required": true,
"format": "hostname",
"description": "Enter IP address or hostname"
},
"presets": {
"title": "List of presets",
"type": "string",
"required": false,
"pattern": "^([^,]+(?:,[^,]+)*)?$",
"description": "Enter a list of comma separated presets"
},
"showRealTimeModeButton": {
"title": "Realtime Mode Button",
"type": "boolean",
"default": false,
"description": "If enabled, an additional button will be added in homebridge."
},
"resetRealTimeModeAfterStream": {
"title": "Reset Realtime Mode After Stream",
"type": "boolean",
"default": true,
"description": "If enabled, realtime mode will be enabled again, after the current session is closed."
}
}
}
},
"logging": {
"title": "Logging",
"type": "boolean",
"default": false,
"description": "If enabled, the raw JSON API data is written to the log"
}
}
},
"form": [
{
"type": "fieldset",
"expandable": true,
"title": "Required Plugin Settings",
"description": "Configure neccessary plugin settings",
"items": [
"name"
]
},
{
"type": "fieldset",
"title": "Controllers",
"description": "Configure devices running WLED",
"expandable": true,
"expanded": false,
"items": [
{
"notitle": true,
"key": "controllers",
"type": "array",
"items": [
{
"items": [
{
"key": "controllers[].name",
"notitle": true
},
{
"key": "controllers[].address",
"notitle": true
},
{
"key": "controllers[].presets",
"notitle": true
},
{
"key": "controllers[].showRealTimeModeButton",
"notitle": false
},
{
"key": "controllers[].resetRealTimeModeAfterStream",
"notitle": false
}
]
}
]
}
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"description": "Don't change these, unless you understand what you're doing.",
"items": [
"logging"
]
}
]
}