-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.schema.json
204 lines (204 loc) · 6.86 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
{
"pluginAlias": "google-smarthome",
"pluginType": "platform",
"singular": true,
"customUi": true,
"customUiPath": "./dist/homebridge-ui",
"customUiDevServer": "http://localhost:4500",
"headerDisplay": "## Homebridge Config UI X Upgrade Required\nhomebridge-config-ui-x v4.6.0 or later is required to configure this plugin correctly. If you are seeing this message you need to upgrade (or reload the UI).\n",
"footerDisplay": "Search for [Homebridge in the Google Home app](https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en) and link the action to complete setup.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Google Smart Home",
"minLength": 1,
"required": true
},
"token": {
"title": "Token",
"type": "string",
"required": true
},
"notice": {
"title": "Notice",
"type": "string",
"required": true,
"default": "Keep your token a secret!"
},
"twoFactorAuthPin": {
"placeholder": "Pin Code",
"type": "string",
"pattern": "^[0-9]*$"
},
"disablePinCodeRequirement": {
"title": "Disable Pin Code Requirement",
"type": "boolean"
},
"debug": {
"title": "Enable Debug Logging",
"type": "boolean"
},
"instanceDenylist": {
"title": "Instance",
"type": "array",
"items": {
"title": "Instance Username",
"type": "string",
"pattern": "^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"
}
},
"accessoryFilter": {
"title": "Accessory",
"type": "array",
"items": {
"title": "Accessory Name",
"type": "string"
}
},
"accessoryFilterInverse": {
"title": "Invert Accessory Filter ( Change Accessory filter to only allow the names accessories, rather than deny them )",
"type": "boolean"
},
"accessorySerialFilter": {
"title": "Accessory",
"type": "array",
"items": {
"title": "Accessory Serial",
"type": "string"
}
},
"forceFahrenheit": {
"title": "Force Degrees Fahrenheit",
"type": "boolean"
},
"betaServer": {
"title": "Use beta cloud server",
"type": "boolean",
"default": false
}
}
},
"layout": [
{
"type": "fieldset",
"title": "Advanced Settings",
"expandable": true,
"expanded": false,
"items": [
{
"type": "help",
"helpvalue": "<h5><B>Debug Mode</b></h5><em class='primary-text'>Enabling debug mode can help troubleshoot problems. If you are experiencing problems with this plugin you should enable debug logging and include the results in your support request.</em>"
},
"debug",
{
"type": "help",
"helpvalue": "<h5><B>Pin Code</b></h5><em class='primary-text'>If you provide a pin code, the Google Assistant will prompt you for your code before performing certain actions. e.g. unlocking a Lock Mechanism.</em>"
},
{
"notitle": true,
"key": "twoFactorAuthPin"
},
{
"type": "help",
"helpvalue": "<em class='primary-text'>Certain devices require a pin code to be set before they will be registered with Google Home. To overide this behaviour, check the box below. Use at your own risk.</em>"
},
{
"key": "disablePinCodeRequirement"
},
{
"type": "help",
"helpvalue": "<h5><B>Instance deny list</b></h5><em class='primary-text'>Enter the usernames of any Homebridge instances or child bridges on your network that you don't want to be able to control from the Google Assistant.</em>"
},
{
"nodescription": true,
"notitle": true,
"key": "instanceBlacklist",
"type": "array",
"items": [
{
"type": "div",
"displayFlex": true,
"flex-direction": "row",
"items": [
{
"key": "instanceBlacklist[]",
"flex": "1 1 50px",
"notitle": true,
"placeholder": "Enter homebridge username..."
}
]
}
]
},
{
"type": "help",
"helpvalue": "<h5><B>Accessory Filter - by name</b></h5><em class='primary-text'>Enter the names (as displayed in the Google Home app) of the accessories you don't want to control from the Google Assistant.</em>"
},
{
"nodescription": true,
"notitle": true,
"key": "accessoryFilter",
"type": "array",
"items": [
{
"type": "div",
"displayFlex": true,
"flex-direction": "row",
"items": [
{
"key": "accessoryFilter[]",
"flex": "1 1 50px",
"notitle": true,
"placeholder": "Enter accessory name..."
}
]
}
]
},
{
"type": "help",
"helpvalue": "<h5><B>Invert Accessory list</b></h5><em class='primary-text'>Rather than deny access to Accessory Filter names, allow only them.</em>"
},
"accessoryFilterInverse",
{
"type": "help",
"helpvalue": "<h5><B>Accessory Filter - by serial number</b></h5><em class='primary-text'>Enter the serial of the accessories you don't want to control from the Google Assistant.</em>"
},
{
"nodescription": true,
"notitle": true,
"key": "accessorySerialFilter",
"type": "array",
"items": [
{
"type": "div",
"displayFlex": true,
"flex-direction": "row",
"items": [
{
"key": "accessorySerialFilter[]",
"flex": "1 1 50px",
"notitle": true,
"placeholder": "Enter accessory serial..."
}
]
}
]
},
{
"type": "help",
"helpvalue": "<h5><B>Force Fahrenheit</b></h5><em class='primary-text'>Some Homebridge thermostat plugins do not correctly report they are using Fahrenheit temperature units. Enabling this option will force all thermostats accessories to display temperature units in Fahrenheit.</em>"
},
"forceFahrenheit",
{
"type": "help",
"helpvalue": "<h5><B>Beta Cloud</b></h5><em class='primary-text'>Used for cloud server testing only. Change plugin cloud endpoint to beta test server.</em>"
},
"betaServer"
]
}
]
}