-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.schema.json
71 lines (71 loc) · 1.86 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
{
"pluginAlias": "P1",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin for DSMR end-consumer (P1) interface",
"footerDisplay": "",
"schema": {
"type": "object",
"properties": {
"dsmr22": {
"title": "DSMR v2.2",
"description": "Connect to DSMR v2.2 smart meter. Default: false.",
"type": "boolean"
},
"host": {
"title": "Host",
"description": "Hostname and port of relay server to use instead of serial port connection. Default: none.",
"type": "string"
},
"name": {
"description": "Plugin name as displayed in the Homebridge log.",
"type": "string",
"required": true,
"default": "P1"
},
"serialPort": {
"title": "Serial Port",
"description": "Serial port connected to the P1 interface. E.g. '/dev/ttyUSB0'.",
"type": "string"
},
"timeout": {
"title": "Timeout",
"description": "Timeout in seconds. Default: 5.",
"type": "integer",
"minimum": 5,
"maximum": 120
},
"wsPort": {
"title": "Web Socket Server Port",
"description": "Port for the web socket server to relay P1 telegrams. Default: none.",
"type": "integer",
"maximum": 65535
}
}
},
"form": [
"name",
"outlet",
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"description": "Don't change these, unless you understand what you're doing.",
"items": [
"serialPort",
"dsmr22",
"timeout"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Relay Settings",
"description": "Don't change these, unless you understand what you're doing.",
"items": [
"wsPort",
"host"
]
}
]
}