forked from merdok/homebridge-webos-tv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
309 lines (309 loc) · 10.2 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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
{
"pluginAlias": "webostv",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin for LG webOS TVs",
"footerDisplay": "For a detailed description, see the [README](https://github.com/merdok/homebridge-webos-tv#configuration-1)",
"schema": {
"devices": {
"title": "Devices",
"type": "array",
"required": true,
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "The name of your TV.",
"type": "string",
"default": "My LG TV",
"minLength": 1,
"required": true
},
"ip": {
"title": "TV ip address",
"description": "The ip address of your TV.",
"type": "string",
"format": "ipv4",
"required": true
},
"mac": {
"title": "TV mac address",
"description": "The mac address of your TV.",
"type": "string",
"required": true
},
"broadcastAdr": {
"title": "Broadcast address",
"description": "If homebridge runs on a host with more than one network interface use this to specify the broadcast address.",
"type": "string",
"format": "ipv4"
},
"keyFile": {
"title": "Key file location",
"description": "The location where to store the tv key file. Default is: ~/.homebridge/.webosTv/keyFile_xxx",
"type": "string"
},
"prefsDir": {
"title": "Prefs directory",
"description": "The location where to store tv information. Default is: ~/.homebridge/.webosTv",
"type": "string"
},
"pollingInterval": {
"title": "Background polling interval",
"description": "How often to check the status of the tv in seconds.",
"type": "number",
"default": 5
},
"deepDebugLog": {
"title": "Enable deep debug log",
"description": "Enables additional more detailed debug log. Useful when trying to figure out issues with the plugin.",
"type": "boolean"
},
"hideTvService": {
"title": "Hide the TV service",
"description": "Recommended when the TV already supports native HomeKit integration to prevent double TV accessories.",
"type": "boolean"
},
"volumeLimit": {
"title": "Volume limit for the volume service",
"description": "Allows to limit the volume which can be set using the volume service.",
"type": "integer",
"default": 100,
"maximum": 100,
"minimum": 1
},
"volumeControl": {
"title": "Volume control service",
"description": "Whether to enable additional volume control. Button - adds volume up/down buttons, Slider - adds a light bulb which acts as a volume controller.",
"type": [
"string"
],
"oneOf": [
{
"title": "None",
"const": "none"
},
{
"title": "Both - slider and buttons",
"const": "both"
},
{
"title": "Slider",
"const": "slider"
},
{
"title": "Buttons",
"const": "buttons"
}
],
"default": "both",
"required": true
},
"channelControl": {
"title": "Channel control service",
"description": "Whether to show channel up/down buttons.",
"type": "boolean",
"default": true
},
"mediaControl": {
"title": "Media control service",
"description": "Whether to show media control buttons.",
"type": "boolean"
},
"screenControl": {
"title": "Screen control service",
"description": "Whether to show the screen control button. Allows to turn on/off the tv screen.",
"type": "boolean"
},
"screenSaverControl": {
"title": "Screen saver control service",
"description": "Whether to show the screen saver control button. Allows to instantly activate the screen saver on the TV. Can be used only when no content is playing on the tv.",
"type": "boolean"
},
"ccRemoteRemap": {
"title": "Remap control center remote buttons",
"description": "Allows to remap the control center remote buttons. For possible values check the README.",
"type": "object",
"properties": {
"arrowup": {
"title": "Arrow up button",
"type": "string"
},
"arrowdown": {
"title": "Arrow down button",
"type": "string"
},
"arrowleft": {
"title": "Arrow left button",
"type": "string"
},
"arrowright": {
"title": "Arrow right button",
"type": "string"
},
"select": {
"title": "Select button",
"type": "string"
},
"back": {
"title": "Back button",
"type": "string"
},
"playpause": {
"title": "PlayPause button",
"type": "string"
},
"information": {
"title": "Information button",
"type": "string"
}
}
},
"appButtons": {
"title": "App buttons",
"description": "Dedicated app buttons which will appear for the TV. Params needs to be added manually in the config.json",
"type": "array",
"items": {
"type": "object",
"properties": {
"appId": {
"title": "appId",
"type": "string",
"required": true
},
"name": {
"title": "name",
"type": "string"
}
}
}
},
"channelButtons": {
"title": "Channel buttons",
"description": "Allows to create buttons for specific channels.",
"type": "array",
"items": {
"type": "object",
"properties": {
"channelNumber": {
"title": "Channel number",
"type": "number",
"required": true
},
"channelId": {
"title": "Channel id",
"type": "string"
},
"name": {
"title": "Channel name",
"type": "string"
}
}
}
},
"notificationButtons": {
"title": "Notification buttons",
"description": "Allows to create buttons that show notifications on your TV.",
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"title": "message",
"type": "string",
"required": true
},
"name": {
"title": "name",
"type": "string"
},
"appId": {
"title": "appId",
"type": "string"
}
}
}
},
"remoteControlButtons": {
"title": "Remote control buttons",
"description": "Allows to create buttons that emulate remote control presses.",
"type": "array",
"items": {
"type": "object",
"properties": {
"action": {
"title": "Action",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
}
}
}
},
"remoteSequenceButtons": {
"title": "Remote sequence buttons",
"description": "Allows to create buttons that run a specified remote control sequence.",
"type": "array",
"items": {
"type": "object",
"properties": {
"sequence": {
"title": "sequence",
"type": "array",
"items": {
"type": "string",
"required": true
}
},
"name": {
"title": "name",
"type": "string"
},
"interval": {
"title": "interval",
"type": "array",
"items": {
"type": "number"
},
"default": 500
}
}
}
},
"soundOutputButtons": {
"title": "Sound output buttons",
"description": "Allows to create buttons that can switch between sound outputs.",
"type": "array",
"items": {
"type": "object",
"properties": {
"soundOutput": {
"title": "Sound output",
"type": "string",
"enum": [
"tv_speaker",
"external_optical",
"external_arc",
"external_speaker",
"lineout",
"headphone",
"tv_external_speaker",
"tv_speaker_headphone",
"bt_soundbar"
]
},
"name": {
"title": "name",
"type": "string"
}
}
}
}
}
}
}
}
}