generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
114 lines (111 loc) · 3.15 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
{
"pluginAlias": "BatteryTender",
"pluginType": "platform",
"singular": true,
"footerDisplay": "Battery Tender Configuration",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "BatteryTender",
"placeholder": "e.g. Battery Tender"
},
"auth": {
"title": "Authorization",
"type": "object",
"properties": {
"email": {
"title": "BatteryTender Email",
"type": "string",
"required": true
},
"password": {
"title": "BatteryTender Password",
"type": "string",
"required": true
}
}
},
"deviceRefresh": {
"title": "Device Refresh Interval",
"type": "integer",
"default": 1,
"description": "Poll interval to obtain device updates status in hours (<b>Note</b>: BatteryTender devices are updated between 4-6 hour daily).",
"minimum": 1,
"maximum": 24
},
"batteryWarning": {
"title": "Battery Indicator Warning Level",
"type": "integer",
"default": 30,
"description": "Battery Tender level to indicated when battery warning icon level is display in HomeKit.",
"minimum": 20,
"maximum": 90
},
"switchAutoOn": {
"title": "Automatically Turn-On Outlet for Voltage Level",
"type": "string",
"default": 11.99,
"description": "Plug will switch to On state when battery voltage falls to this level."
},
"switchStateReverse": {
"title": "Set Outlet to Turn-Off for Voltage Level",
"type": "boolean",
"default": false,
"description": "Set outlet off when voltage level is reached, rather than default to On."
},
"excludedDevices": {
"type": "array",
"items": {
"type": "string",
"description": "Device IDs"
}
}
}
},
"layout": [{
"type": "fieldset",
"items": [
"name",
"auth.email",
"auth.password",
"deviceRefresh"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Threshold Options",
"items": [
"batteryWarning",
"switchAutoOn",
"switchStateReverse"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Options",
"items": [
{
"key": "excludedDevices",
"title": "Excluded Devices",
"description": "A list of devices to exclude from HomeKit. Obtain deviceID from Homebridge startup log.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"excludedDevices[]"
]
}
]
}
]
}
]
}