generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.schema.json
233 lines (233 loc) · 7.68 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
"pluginAlias": "Tasmota",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Automatic discovery and creation of Tasmota devices in your Homebridge environment. To enable discovery please ensure that your Tasmota device has HASS Auto Discovey enabled ( setOption19 1 ).",
"footerDisplay": "For further details please see the [README](https://github.com/NorthernMan54/homebridge-tasmota/blob/master/README.md). To manage your Tasmota devices [click here](http://tasui.shantur.com/#/findDevices)",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Tasmota",
"description": "Plugin name as displayed in the Homebridge log"
},
"mqttHost": {
"title": "Mqtt Host Address",
"type": "string",
"required": true,
"default": "mqtt.local",
"description": "This is the name / ip address for your MQTT Server."
},
"mqttUsername": {
"title": "Username",
"type": "string",
"required": false,
"placeholder": "",
"description": "This is the Username for your MQTT Broker."
},
"mqttPassword": {
"title": "Password",
"type": "string",
"required": false,
"placeholder": "",
"description": "This is the Password for your MQTT Broker."
},
"cleanup": {
"title": "Disconnected Device Cleanup Timing",
"type": "number",
"required": false,
"default": 24,
"description": "Cleanup of devices no longer connected too or responding on the network. Time is in hours, defaults to 1 Day. Maximum value is 596 hours ( 24 days ). IF set to 0, cleanup is disabled."
},
"debug": {
"title": "Debug Logging",
"type": "boolean",
"required": false,
"placeholder": false,
"description": "Enable verbose DEBUG logging."
},
"history": {
"title": "Enable support for sensor data history logging",
"type": "boolean",
"required": false,
"placeholder": false,
"description": "Enable logging and graphing of historical sensor information. Must use a HomeKit app that supports data graphing to see charts."
},
"historyInterval": {
"title": "Update interval for historical data.",
"type": "number",
"required": false,
"placeholder": 10,
"description": "Update interval for the logging of history data. Time is in minutes, defaults to 10 minutes. ( Development testing only. )",
"condition": {
"functionBody": "return false;"
}
},
"filter": {
"title": "Filter device discovery topic ( Deprecated, please use filter allow )",
"type": "string",
"required": false,
"placeholder": "",
"description": "Regular expression to filter discovery topic messages against. ie \"F52066|00F861\" limit discovery to these two devices.",
"condition": {
"functionBody": "return model.filter != null;"
}
},
"filterAllow": {
"title": "List discovery message topics allowed from discovery",
"type": "array",
"required": false,
"placeholder": "",
"description": "A list of regex's specifying allowed disocvery topics. If this is non-empty all non-specified topics will be blocked.",
"items": {
"type": "string"
}
},
"filterDeny": {
"title": "List discovery message topics removed from discovery",
"type": "array",
"required": false,
"default": "",
"description": "A list of regex's specifying topics to skip. Any matching mqtt topic will always be skipped, even if it matches a filterAllow rule.",
"items": {
"type": "string"
}
},
"effects": {
"title": "RGB Light Effects",
"type": "boolean",
"required": false,
"default": false,
"description": "Enable ability to select RGB light effects. Requires adding an additional accessory/UI widget for each RGB light."
},
"injections": {
"required": false,
"type": "array",
"title": " ",
"buttonText": "Add additional topic to inject or overide.",
"items": {
"type": "object",
"properties": {
"topic": {
"title": "Message Topic to apply override to.",
"type": "string",
"description": "Unique portion of the discovery topic. ie from this topic `homeassistant/binary_sensor/00FF8D_BTN_1/config` `00FF8D_BTN_1` is unique"
},
"injection": {
"type": "array",
"default": [],
"buttonText": "Add additional keys and values.",
"title": "Key and Value to inject/over write in original discovery message",
"items": {
"type": "object",
"properties": {
"key": {
"title": "Key to apply override to",
"type": "string",
"required": true
},
"value": {
"title": "Replacement value",
"type": "string",
"required": true
}
}
}
}
}
}
}
}
},
"form": [
{
"type": "fieldset",
"title": "Required Settings",
"items": [
"mqttHost"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Optional Settings",
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"mqttUsername",
"mqttPassword"
]
},
"cleanup",
"debug",
"history",
"historyInterval",
"effects"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Device Discovery Filtering",
"description": "Control which devices are discovered and included with Homebridge.",
"items": [
{
"key": "filterAllow",
"type": "array",
"required": false,
"items": {
"title": "Topic regex to allow",
"description": "A list of regex's specifying allowed disocvery topics. If this is non-empty all non-specified topics will be blocked.",
"type": "string"
}
},
{
"key": "filterDeny",
"type": "array",
"required": false,
"items": {
"title": "Topic regex to filter/deny",
"description": "A list of regex's specifying topics to skip. Any matching mqtt topic will always be skipped, even if it matches a filterAllow rule.",
"type": "string"
}
},
"filter"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "MQTT Discovery Message Injection",
"description": "Ability to inject/over write portions of a MQTT Discovery message.",
"items": [
{
"key": "injections",
"type": "array",
"items": [
"injections[].topic",
{
"key": "injections[].injection",
"type": "array",
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"injections[].injection[].key",
"injections[].injection[].value"
]
}
]
}
]
},
"filter"
]
}
]
}