-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
264 lines (264 loc) · 6.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
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
{
"pluginAlias": "easee",
"headerDisplay": "Homebridge plugin for Easee Charger",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Accessory Name",
"description": "Name for this accessory",
"type": "string",
"required": true,
"placeholder": "Easee",
"default": "Easee"
},
"username": {
"title": "Username",
"description": "Account email address or phone number",
"type": "string",
"placeholder": "username",
"required": true
},
"password": {
"title": "Password",
"description": "Account password",
"type": "string",
"placeholder": "password",
"required": true
},
"cars": {
"title": "Cars",
"type": "array",
"required": true,
"items": {
"title": "Car Info",
"type": "object",
"properties": {
"carName": {
"title": "Name of your Car",
"type": "string",
"minLength": 3,
"required": false,
"placeholder": "My EV"
},
"chargerName": {
"title": "Name of your Charger used for this car, reference the logging for exact names",
"type": "string",
"minLength": 3,
"required": false,
"placeholder": "Easee"
},
"kwH": {
"title": "Battery Size in kwH for this car",
"type": "integer",
"required": false,
"placeholder": 78
}
}
}
},
"locationAddress": {
"title": "Street Address",
"type": "string",
"required": false,
"placeholder": "Leave blank for all locations"
},
"showControls": {
"title": "Show Charger Controls",
"type": "integer",
"required": true,
"default": 0,
"description": "Select the control type to display in Homkit.",
"oneOf": [
{
"title": "None",
"enum": [0]
},
{
"title": "Toggle Charging State",
"enum": [1]
},
{
"title": "Start Stop Charging Reguires Authorzation to be enabled",
"enum": [2]
},
{
"title": "Pause Resume Charging",
"enum": [3]
},
{
"title": "Full Control in the form of a Fahrenheit Thermostat",
"enum": [4]
},
{
"title": "Full Control in the form of a Celsius Thermostat",
"enum": [5]
}
]
},
"showLight": {
"title": "Expose Switch for adjusting LED Brightness",
"type": "boolean",
"required": true,
"default": false
},
"useOutlet": {
"title": "Display option in Homekit as outlet, instead of switch",
"type": "boolean",
"required": false,
"default": false
},
"showReboot": {
"title": "Expose Switch to reboot charger",
"type": "boolean",
"required": true,
"default": false
},
"showOverride": {
"title": "Expose Switch to override any exsiting charging schedule and start immediately",
"type": "boolean",
"required": true,
"default": false
},
"socSensor": {
"title": "State of Charge Sensor",
"type": "boolean",
"required": false,
"default": false,
"description": "Do you want to create a Humidity Sensor for automations based on battery level?"
},
"showEqualizer": {
"title": "Show Equalizer",
"type": "boolean",
"required": false,
"default": false,
"description": "Do you want to expose a Easee Equalizer if one is installed?"
},
"showSignalRMessages": {
"title": "Show all observation messages",
"type": "boolean",
"required": false,
"default": false,
"description": "Do you want to log SignalR observations?"
},
"showAPIMessages": {
"title": "Show API responses",
"type": "boolean",
"required": false,
"default": false,
"description": "Do you want to log API response messages?"
},
"experimental": {
"title": "Experimental Mode",
"type": "boolean",
"required": false,
"default": false,
"description": "Use max continuous current mode for Equalizer ? (experimental)"
},
"eqMin": {
"title": "Equalizer Min percent",
"type": "integer",
"minimum": 15,
"maximum": 100,
"required": false,
"default": 15
},
"eqMax": {
"title": "Equalizer Max percent",
"type": "integer",
"minimum": 15,
"maximum": 100,
"required": false,
"default": 100
}
}
},
"layout": [
{
"type": "help",
"helpvalue": "<h4><b>Required settings<b/></h4>"
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"name"
]
},
{
"type": "help",
"helpvalue": "<p class='help-block'> <h6><b>Easee account info login<b></h6></p>"
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"username",
"password"
]
},
{
"type": "help",
"helpvalue": "<h6><b>Location Support</b></h6><p class='help-block'> If you have more than one location and want to display them in separate Homebridge/HomeKit homes you can retrive only the devices at this street address otherwise leave blank.<br/>The address must match the address configured in the Easee app, review the log file to see the adresses as configured in the Easee app.</p>"
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"locationAddress"
]
},
{
"type": "help",
"helpvalue": "<h6><b>Charging Estimate</b></h6><p class='help-block'> The plugin will attempt to calulate in real time the percent charge added based on these values for each car. If no car is added then the display of a battery service will be supressed.<br/></p>"
},
{
"key": "cars",
"type": "tabarray",
"title": "{{ value.carName || 'new Car' }}",
"items": [
"cars[].carName",
"cars[].chargerName",
"cars[].kwH"
]
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"showControls",
"useOutlet"
]
},
{
"type": "fieldset",
"title": "Options",
"description": "Expand to select addition options",
"expandable": true,
"flex-flow": "row wrap",
"items": [
"showLight",
"showReboot",
"showOverride",
"socSensor",
"showEqualizer",
"experimental",
"eqMin",
"eqMax"
]
},
{
"type": "fieldset",
"title": "Debug logging",
"description": "Expand to enable additional debug logging",
"expandable": true,
"flex-flow": "row wrap",
"items": [
"showAPIMessages",
"showSignalRMessages"
]
}
]
}