-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
311 lines (296 loc) · 10.1 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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
{
"pluginAlias": "AlphaEssPlatform",
"pluginType": "platform",
"singular": true,
"name":"Configuration for Alpha Ess",
"headerDisplay": "Please [read the documentation](https://github.com/zerwuff/homebridge-alphaess) of the plugin for more informations and step by step instructions on how to configure it.",
"schema": {
"name": {
"type": "string",
"title": "Plugin Name",
"default": "Alpha ESS Homebridge Plugin"
},
"properties": {
"name": {
"type": "string",
"title": "Plugin Name",
"default": "Alpha ESS Homebridge Plugin"
},
"alphaUrl": {
"title": "Alpha ESS OpenAPI Url",
"type": "string",
"default":"https://openapi.alphaess.com/api",
"required": true,
"description" : "The Alpha ESS OPEN API URL"
},
"appid": {
"title": "App Id",
"type": "string",
"required": true,
"description" : "The Alpha ESS OPEN API appId"
},
"appsecret": {
"title": "App Secret",
"type": "string",
"required": true,
"description" : "The alpha ESS OPEN API appSecret"
},
"serialnumber": {
"title": "serialnumber",
"type": "string",
"required": true,
"description" : "The Alpha ESS Serial number, eg. AE...."
},
"powerLoadingThreshold": {
"title": "power threshold",
"type": "integer",
"required": true,
"default":1500,
"description" : "The pv power threshold to enable the trigger"
},
"powerLoadingThresholdSecondsLower": {
"title": "time threshold down -> up",
"type": "integer",
"required": true,
"default":30,
"description" : "The number of seconds of the power threshold required to trigger from down -> up"
},
"powerLoadingThresholdSecondsUpper": {
"title": "time threshold up -> down ",
"type": "integer",
"required": true,
"default":45,
"description" : "The number of seconds of the power threshold required to trigger from up -> down"
},
"socLoadingThreshold": {
"title": "socLoadingThreshold",
"type": "integer",
"required": false,
"default": 50,
"description" : "The battery SOC threshold to enable the trigger"
},
"refreshTimerInterval": {
"title": "refreshTimerInterval",
"type": "integer",
"required": false,
"default":60000,
"description" : "The refresh timer interval in ms to update system values"
},
"mqtt_url": {
"title": "mqtt_url",
"type": "string",
"required": false,
"description" : "the mqtt url, e.g mqt://bla.fasel"
},
"mqtt_trigger_topic_true": {
"title": "mqtt_trigger_topic_true",
"type": "string",
"required": false,
"description" : "the mqtt topic to use when trigger is true"
},
"mqtt_trigger_topic_false": {
"title": "mqtt_trigger_topic_false",
"type": "string",
"required": false,
"description" : "the mqtt topic to use when trigger is false"
},
"mqtt_trigger_message_true": {
"title": "mqtt_trigger_message_true",
"type": "string",
"required": false,
"description" : "the mqtt message to use when trigger is true"
},
"mqtt_trigger_message_false": {
"title": "mqtt_trigger_message_false",
"type": "string",
"required": false,
"description" : "the mqtt message to use when trigger is false"
},
"mqtt_status_topic": {
"title": "mqtt_status_topic",
"type": "string",
"required": false,
"description" : "the mqtt status topic name to send alpha ess status data (soc, power) "
},
"power_image_filename": {
"title": "power_image_filename",
"type": "string",
"required": false,
"default":"/tmp/alpha_power_image.png",
"description" : "the filename where power image is rendered to "
},
"logrequestdata": {
"title": "logrequestdata",
"type": "boolean",
"required": false,
"default": false,
"description":"log request data yes / no"
},
"tibberEnabled": {
"title": "Enable Tibber Trigger",
"type": "boolean",
"required": false,
"default": false,
"description":"Enable Tibber Trigger yes / no"
},
"tibberUrl": {
"title": "Tibber API URL",
"type": "string",
"default":"",
"required": false,
"description" : "the tibber API Url" ,
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberAPIKey": {
"title": "Tibber API Key",
"type": "string",
"required": false,
"default":"",
"description" : "the the tibber api key ",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberLoadBatteryEnabled": {
"title": "Enable Battery loading w/ tibber ",
"type": "boolean",
"required": false,
"default": false,
"description":"Enable loading of the battery when lowest price or highest point is met yes / no",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberLoadingMinutes": {
"title": "Tibber Battery Loading Time (Minutes) ",
"type": "integer",
"default": 60,
"required": false,
"description" : "When in loading mode, number of minutes to load the battery",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberThresholdSOC": {
"title": "Tibber SOC Threshold",
"type": "integer",
"default": 60,
"required": false,
"description" : "the battery SOC threshold that is required to trigger tibber loading. if below with price, loading is triggerd.",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberThresholdEur": {
"title": "Tibber difference threshold in euro ",
"type": "number",
"default":"0.020",
"required": false,
"description" : "The diff to the lowest price that is acceptable to trigger tibber loading. eg. daily tibber minimum = 0.20 , this value = 0.02, trigger is fired at 0.22 ",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberThresholdTotalEur": {
"title": "Tibber absolute lower threshold in eur (lower price limit)",
"type": "number",
"default":"0.30",
"required": false,
"description" : "The absolute max price of tibber that is acceptable to trigger battery loading. This wins over tibber difference threshold. Example: daily tibber minimum = 0.20, this value 0.19, then loading is triggered. Idea: Pump into battery with low prices.",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberThresholdMaxEur": {
"title": "Tibber max price threshold in eur (upper price limit)",
"type": "number",
"default": "0.50",
"required": false,
"description" : "The absolute max price of tibber needs to be reached during the day to trigger battery loading at the lowest point within threshold. Example: daily price range is 0.20-0.60 , If this value = 0.50, trigger is fired at the lowest time before the high peak of this day. Idea: Protect from high energy prices",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"tibberDischargeDisabled": {
"title": "Disable Battery Discharge during tibber loading ",
"type": "boolean",
"required": true,
"default": true,
"description":"During tibber charge, prevent discharge of the battery, to save battery life and money ",
"condition": {
"functionBody": "return model.tibberEnabled === true;"
}
},
"triggerImageFilename": {
"title": "Trigger Image Filename",
"type": "string",
"required": false,
"default":"/tmp/tibber_image.png",
"description" : "The filename where the alpha and tibber trigger image is rendered to "
}
}
},
"layout": [
{
"type": "fieldset",
"expandable": true,
"title": "Alpha ESS Settings",
"expanded": true,
"items": [
"name",
"alphaUrl",
"appid",
"appsecret",
"serialnumber",
"refreshTimerInterval",
"triggerImageFilename",
"power_image_filename",
"logrequestdata"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Alpha Trigger Settings",
"description":"Reaching this settings will open the sensor, mostly to trigger automation",
"expanded": false,
"items": [
"powerLoadingThreshold",
"powerLoadingThresholdSecondsUpper",
"powerLoadingThresholdSecondsLower",
"socLoadingThreshold"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "MQTT Settings",
"items": [
"mqtt_url",
"mqtt_trigger_topic_true",
"mqtt_trigger_topic_false",
"mqtt_trigger_message_true",
"mqtt_trigger_message_false"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Tibber Settings",
"items": [
"tibberEnabled",
"tibberUrl",
"tibberAPIKey",
"tibberLoadBatteryEnabled",
"tibberLoadingMinutes",
"tibberThresholdSOC",
"tibberThresholdEur",
"tibberThresholdTotalEur",
"tibberThresholdMaxEur",
"tibberDischargeDisabled"
]
}
]
}