-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathconfig.schema.json
140 lines (140 loc) · 4.26 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
{
"pluginAlias": "BraviaPlatform",
"pluginType": "platform",
"headerDisplay": "Go to [http://${{HOSTNAME}}:8999](http://${{HOSTNAME}}:8999) to enter the PIN when your TV displays it",
"footerDisplay": "For documentation please see https://github.com/normen/homebridge-bravia",
"schema": {
"tvs": {
"title": "Registered TVs",
"required": false,
"type": "array",
"items": {
"name": "TV Config",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "The name of your TV in HomeKit",
"type": "string",
"required": true
},
"ip": {
"title": "IP / Hostname",
"description": "The IP address or host name of your TV, find or set in your router",
"type": "string",
"required": true
},
"port": {
"title": "Port",
"description": "HTTP port of the TV",
"placeholder": "80",
"type": "number",
"required": false
},
"serverPort": {
"title": "PIN entry server port",
"placeholder": "8999",
"type": "number",
"required": false
},
"mac": {
"title": "MAC address",
"description": "DO NOT set unless you need to use WOL",
"type": "string",
"required": false
},
"externalaccessory": {
"title": "External Accessory",
"description": "Workaround for multiple TVs and remote app, registers this TV as an external accessory",
"type": "boolean",
"required": false
},
"debug": {
"title": "Debug Log Output",
"description": "Gives additional debug output in the log",
"type": "boolean",
"required": false
},
"soundoutput": {
"title": "Sound Output",
"description": "Required for volume control",
"type": "string",
"default": "speaker",
"oneOf": [
{ "title": "Speaker", "enum": ["speaker"] },
{ "title": "Headphone", "enum": ["headphone"] }
],
"required": false
},
"tvsource": {
"title": "TV Source",
"description": "Select TV input to display TV channels in the input list",
"type":"string",
"oneOf": [
{ "title": "Satellite", "enum": ["tv:dvbs"] },
{ "title": "Antenna", "enum": ["tv:dvbt"] },
{ "title": "Cable", "enum": ["tv:dvbc"] }
],
"required": false
},
"applications": {
"title": "App",
"description": "Leave empty to not list TV apps in the input list, add app names to show those apps. A part of the name should suffice.",
"type": "array",
"items":{
"type": "object",
"properties": {
"title": {
"title": "App Name",
"type": "string"
}
}
},
"required": false
},
"sources": {
"title": "Source",
"description":"Defaults to: [extInput:hdmi, extInput:component, extInput:scart, extInput:cec, extInput:widi]. Adding entries to the list below will only show those inputs.",
"type": "array",
"required": false,
"items":{
"title": "Source Name",
"type": "string"
}
}
}
}
}
},
"form": [
{
"key":"tvs",
"items":[
"tvs[].name",
"tvs[].ip",
"tvs[].tvsource",
"tvs[].soundoutput",
"tvs[].port",
"tvs[].mac",
"tvs[].serverPort",
"tvs[].externalaccessory",
"tvs[].debug",
{
"key":"tvs[].applications",
"items":[
{
"key":"tvs[].applications[]",
"items":[
"tvs[].applications[].title"
]
}
]
},
{
"key":"tvs[].sources",
"items":["tvs[].sources[]"]
}
]
}
]
}