This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
65 lines (65 loc) · 1.82 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
{
"pluginAlias": "delayed-occupancy-sensor",
"pluginType": "accessory",
"singular": false,
"headerDisplay": "Homebridge plugin to create occupancy sensors with connected activation switches and delayed timeouts.",
"footerDisplay": "Note: If you change the name of a switch, it will create a new accessory in HomeKit.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Occupancy sensor name",
"description": "This is used as the display name of the occupancy sensor in HomeKit.",
"type": "string",
"required": true,
"default": "Delayed Occupancy Sensor"
},
"delay": {
"title": "Delay Timeout",
"description": "In seconds, how long to wait after all activation switches are off before the sensor will stop detecting occupancy. Max 3600 seconds, or 1 hour.",
"type": "integer",
"maximum": 3600,
"default": 5
},
"switches": {
"title": "Activation switches",
"description": "Add one or more activation switches for this occupancy sensor.",
"type": "array",
"required": false,
"items": {
"title": "Friendly name",
"description": "This is used as the display name for the switch accessory in HomeKit.",
"type": "string"
}
}
}
},
"layout": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"name",
"delay"
]
},
{
"key": "switches",
"type": "array",
"items": [
{
"type": "div",
"displayFlex": true,
"flex-direction": "row",
"items": [
{
"key": "switches[]",
"required": false,
"flex": "1 1 50px"
}
]
}
]
}
]
}