forked from NorthernMan54/homebridge-alexa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
199 lines (198 loc) · 5.28 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
{
"pluginAlias": "Alexa",
"pluginType": "platform",
"singular": true,
"headerDisplay": "An account to link your Amazon Alexa to Homebridge needs to created on https://www.homebridge.ca/. This account will be used when you enable the skill in the Alexa App, and in the configuration below.",
"footerDisplay": "For help, please visit https://ibeyondsmart.com",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Alexa",
"description": "Plugin name as displayed in the Homebridge log"
},
"username": {
"title": "Username",
"type": "string",
"required": true,
"description": "Username you register at https://www.homebridge.ca/"
},
"password": {
"title": "Password",
"type": "string",
"required": true,
"description": "Password you register at https://www.homebridge.ca/"
},
"pin": {
"title": "Homekit Pin",
"type": "string",
"placeholder": "031-45-154",
"required": true,
"description": "Fill in the Homekit Pin at the 'Status' page."
},
"routines": {
"title": " Routines - enables passing to Alexa events from Motion and Contact sensors. For use in the Alexa app to create Routines triggered by these sensors.",
"type": "boolean"
},
"debug": {
"title": " Enable Debug Mode",
"type": "boolean"
},
"refresh": {
"title": "Refresh Interval",
"type": "integer",
"placeholder": "900",
"description": "Frequency of refreshes of the homebridge accessory cache, in seconds. Defaults to 15 minutes."
},
"filter": {
"title": "Instance Filter",
"type": "string",
"placeholder": "eg. 192.168.1.122:51826",
"description": "Limits accessories shared with Alexa to a single homebridge instance.",
"pattern": "^[^{}/ :\\\\]+(?::\\d+)?$"
},
"oldParser": {
"type": "boolean"
},
"combine": {
"type": "array",
"items": {
"title": "Combine",
"type": "object",
"properties": {
"into": {
"title": "Into",
"type": "string"
},
"from": {
"title": "From",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"speakers": {
"title": "Speakers",
"type": "array",
"items": {
"title": "Speaker",
"type": "object",
"properties": {
"manufacturer": {
"title": "Manufacturer",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
}
}
}
}
}
},
"layout": [
"name",
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"username",
{
"key": "password",
"type": "password"
}
]
},
"pin",
{
"type": "fieldset",
"title": "Optional Settings",
"expandable": true,
"expanded": false,
"items": [
"routines",
"refresh",
"filter"
]
},
{
"type": "fieldset",
"title": "Speakers",
"description": "Devices to configure as speakers as HomeKit currently does not have a Speaker service.",
"expandable": true,
"expanded": false,
"items": [
{
"notitle": true,
"key": "speakers",
"type": "array",
"items": [
{
"type": "div",
"displayFlex": true,
"flex-direction": "row",
"items": [
{
"key": "speakers[].manufacturer",
"flex": "1 1 50px",
"notitle": true,
"placeholder": "Manufacturer"
},
{
"key": "speakers[].name",
"flex": "4 4 200px",
"notitle": true,
"placeholder": "Name"
}
]
}
]
}
]
},
{
"type": "fieldset",
"title": "Combine Accessories",
"description": "Combine disparate accessories into one common device.",
"expandable": true,
"expanded": false,
"items": [
{
"notitle": true,
"key": "combine",
"type": "array",
"items": [
{
"type": "div",
"items": [
{
"key": "combine[].into",
"title": "Into",
"placeholder": "Target Accessory Name"
},
{
"key": "combine[].from",
"notitle": true,
"items": [
{
"title": "From",
"key": "combine[].from[]",
"placeholder": "Source Accessory Name"
}
]
}
]
}
]
}
]
}
]
}