forked from ToddGreenfield/homebridge-nut
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.schema.json
67 lines (67 loc) · 1.95 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
{
"pluginAlias": "Nut",
"pluginType": "platform",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name used for Homebridge logging.",
"default": "Nut"
},
"host": {
"type": "string",
"description": "IP or hostname for the Nut Client.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "The port for the Nut Client.",
"default": 3493
},
"username": {
"type": "string",
"description": "Username to use for Nut Client authentication."
},
"password": {
"type": "string",
"description": "Password to use for Nut Client authentication."
},
"low_batt_threshold": {
"type": "number",
"description": "The battery level percentage at which to set the Low Battery Status to true.",
"default": 40
},
"poll_interval": {
"type": "number",
"description": "The UPS polling interval in seconds.",
"default": 60
},
"connect_interval": {
"type": "number",
"description": "The NUT client connection attempt interval in seconds.",
"default": 5
},
"command_interval": {
"type": "number",
"description": "The NUT client delay interval between success requests in seconds.",
"default": 1
},
"ups_key_excludes": {
"type": "array",
"description": "A list of Nut configured UPS keys which should be ignored.",
"items": {
"title": "UPS Key",
"type": "string"
}
},
"disable_battery_service": {
"type": "boolean",
"description": "Whether to disable battery service on accessories. In normal circumstances, you can ignore this or leave the default value of false.",
"default": false,
"required": false
}
}
}
}