generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
82 lines (81 loc) · 2.43 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
{
"pluginAlias": "SolaxHomebridgePlugin",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Solax Inverter"
},
"address": {
"title": "Inverter Address",
"type": "string",
"required": true,
"default": ""
},
"pollingFrequencySeconds": {
"title": "Polling frequency in seconds.",
"type": "integer",
"default": 60,
"maximum": 600,
"minimum": 10,
"required": false,
"description": "Will directly influence how often the alerts and readings will update in homekit"
},
"movingAverageHistoryLength": {
"title": "How many records to retain for moving average calculations",
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 2,
"required": false,
"description": "Defaults to 10"
},
"exportAlertThresholds": {
"title": "Export Alert Thresholds",
"type": "array",
"required": false,
"description": "",
"items": {
"title": "Threshold to trigger the alert",
"type": "integer"
}
},
"showStrings": {
"title": "Show Individual Inverter String metrics",
"type": "boolean",
"required": false,
"default": true
},
"hasBattery": {
"title": "Show Battery details (experimental)",
"type": "boolean",
"required": false,
"default": true
},
"exposeRawMetrics": {
"title": "Show Accessories for the RAW values",
"type": "boolean",
"required": false,
"default": true,
"desciption": "If set to true, 3 accessories will be exposed to provide the raw value feed (no averaging based filtering)."
},
"valueStrategy": {
"title": "The value strategy to apply",
"type": "string",
"required": false,
"default": "SimpleMovingAverage",
"description": "The filtering strategy to apply to the input readings.",
"oneOf": [
{ "title": "Latest Reading", "enum": ["LatestReading"] },
{ "title": "Simple Moving Average", "enum": ["SimpleMovingAverage"] },
{ "title": "Exponential Moving Average", "enum": ["ExponentialMovingAverage"] }
]
}
}
}
}