-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.schema.json
More file actions
58 lines (51 loc) · 1.61 KB
/
config.schema.json
File metadata and controls
58 lines (51 loc) · 1.61 KB
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
{
"pluginAlias": "Tiro",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin to open electric rim locks via Raspberry Pi GPIO pins.",
"footerDisplay": "For documentation, see the [plugin homepage](https://github.com/roberto-montanari/homebridge-gpio-electric-rim-lock) on GitHub.",
"schema": {
"type": "object",
"required": ["name", "locks"],
"properties": {
"name": {
"title": "Name",
"type": "string",
"description": "Name of this platform in Homebridge",
"minLength": 1,
"default": "Tiro"
},
"locks": {
"title": "Locks configuration",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["name", "pin"],
"properties": {
"name": {
"title": "Door name",
"type": "string",
"minLength": 1,
"description": "Name of the door lock shown in HomeKit"
},
"pin": {
"title": "GPIO pin number",
"type": "integer",
"enum": [11, 12, 13, 15],
"description": "Physical GPIO pin connected to the relay"
},
"duration": {
"title": "Pulse duration (ms)",
"type": "integer",
"default": 500,
"minimum": 100,
"maximum": 2000,
"description": "How long the relay stays active to simulate button press (typically 500 ms)"
}
}
}
}
}
}
}