-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.schema.json
207 lines (207 loc) · 6.42 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
{
"pluginAlias": "WyzeSmartHome",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Wyze plug-in for Homebridge. This is a custom component to allow control of various Wyze devices using the unofficial API. Please note this mimics the Wyze app and therefore access may be cut off at anytime. If you feel like my work has been valuable to you I welcome your support through Paypal. All funding goes back into product purchases. [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square&maxAge=2592000)](https://www.paypal.com/paypalme/AllenFarmer)",
"footerDisplay": "For documentation please see GitHub repository",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Plugin Name",
"description": "This name will appear in your Homebridge log",
"type": "string",
"default": "Wyze",
"required": true
},
"username": {
"title": "Username (E-Mail Address)",
"description": "The e-mail address used for your Wyze account",
"type": "string",
"default": "",
"required": true
},
"password": {
"title": "Password",
"description": "The password used for your Wyze account",
"type": "string",
"default": "",
"required": true
},
"keyId": {
"title": "Key ID",
"description": "API Key/ID available from the official Wyze Portal https://developer-api-console.wyze.com",
"type": "string",
"required": true
},
"apiKey": {
"title": "API Key",
"description": "API Key/ID available from the official Wyze Portal https://developer-api-console.wyze.com/)",
"type": "string",
"required": true
},
"refreshInterval": {
"title": "Refresh Interval",
"description": "Specify the number of milliseconds to wait between updates, default is 60000 ms (60 seconds)",
"type": "integer",
"default": 60000,
"minimum": 60000,
"maximum": 180000,
"multipleOf": 10000,
"required": false
},
"hms": {
"title": "HMS Subscription",
"description": "Enable if HMS Subscription is current",
"type": "boolean",
"default": false
},
"showAdvancedOptions": {
"title": "Advance Options",
"default": false,
"type": "boolean"
},
"apiLogEnabled": {
"title": "Enable API logging",
"description": "",
"type": "boolean",
"default": false,
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"pluginLoggingEnabled": {
"title": "Enable Plugin logging",
"description": "",
"type": "boolean",
"default": false,
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"lowBatteryPercentage": {
"title": "Low Battery Percentage",
"description": "Specify the Percentage of battery when consider low, default is 30%",
"type": "integer",
"default": 30,
"minimum": 10,
"maximum": 100,
"multipleOf": 1,
"required": false,
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"garageDoorAccessory": {
"type": "array",
"title": "Wyze Garage Door Controller",
"items": {
"title": "Device MAC Address with accessory attached",
"type": "string"
},
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"spotLightAccessory": {
"type": "array",
"title": "Wyze Camera Spotlight",
"items": {
"title": "Device MAC Address with accessory attached",
"type": "string"
},
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"floodLightAccessory": {
"type": "array",
"title": "Wyze Camera Floodlight",
"items": {
"title": "Device MAC Address with accessory attached",
"type": "string"
},
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"sirenAccessory": {
"type": "array",
"title": "Wyze Camera Siren",
"items": {
"title": "Device MAC Address with accessory attached",
"type": "string"
},
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"notificationAccessory": {
"type": "array",
"title": "Wyze Notification Switch",
"items": {
"title": "Device MAC Address of camera you want to control the Notification Switch",
"type": "string"
},
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"excludeMacAddress": {
"title": "Exclude by MAC Address",
"default": false,
"type": "boolean",
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"filterByMacAddressList": {
"type": "array",
"title": "",
"items": {
"title": "Device MAC Address",
"type": "string"
},
"condition": {
"functionBody": "return model.excludeMacAddress === true;"
}
},
"excludedeviceType": {
"title": "Exclude Device by Type",
"default": false,
"type": "boolean",
"condition": {
"functionBody": "return model.showAdvancedOptions === true;"
}
},
"filterDeviceTypeList": {
"title": "Exclude Device by Type",
"type": "array",
"uniqueItems": true,
"items": {
"title": "Device Type",
"type": "string",
"enum": [
"OutdoorPlug",
"Plug",
"Light",
"MeshLight",
"LightStrip",
"ContactSensor",
"MotionSensor",
"Lock",
"TemperatureHumidity",
"LeakSensor",
"Camera",
"Common"
]
},
"condition": {
"functionBody": "return model.excludedeviceType === true;"
}
}
}
},
"form": null,
"display": null
}