Skip to content

Commit a7f7444

Browse files
Update config.schema.json
1 parent 087cde1 commit a7f7444

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

config.schema.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
{
22
"pluginAlias": "Tiro",
3-
"pluginType": "accessory",
4-
"singular": false,
3+
"pluginType": "platform",
4+
"singular": true,
55

66
"headerDisplay": "Homebridge plugin to open electric rim locks via Raspberry Pi GPIO pins.",
77
"footerDisplay": "For documentation, see the [plugin homepage](https://github.com/roberto-montanari/homebridge-gpio-electric-rim-lock) on GitHub.",
88

99
"schema": {
1010
"type": "object",
11-
"description": "⚠ This plugin works only on Raspberry Pi.",
12-
"required": [
13-
"name",
14-
"pin",
15-
"duration"
16-
],
1711
"properties": {
18-
19-
"name": {
20-
"title": "Door name",
21-
"type": "string",
22-
"description": "Door name visible in HomeKit",
23-
"minLength": 1
24-
},
25-
26-
"pin": {
27-
"title": "GPIO pin number",
28-
"type": "integer",
29-
"description": "The physical GPIO pin number that controls the relay",
30-
"enum": [
31-
11, 12, 13, 15
32-
]
33-
},
34-
35-
"duration": {
36-
"title": "Pulse duration (ms)",
37-
"type": "integer",
38-
"description": "Number of milliseconds to trigger the relay",
39-
"default": 500,
40-
"minimum": 500,
41-
"maximum": 2000
12+
"locks": {
13+
"title": "Locks configuration",
14+
"type": "array",
15+
"minItems": 1,
16+
"items": {
17+
"type": "object",
18+
"required": ["name", "pin", "duration"],
19+
"properties": {
20+
21+
"name": {
22+
"title": "Door name",
23+
"type": "string",
24+
"minLength": 1
25+
},
26+
27+
"pin": {
28+
"title": "GPIO pin number",
29+
"type": "integer",
30+
"enum": [11, 12, 13, 15]
31+
},
32+
33+
"duration": {
34+
"title": "Pulse duration (ms)",
35+
"type": "integer",
36+
"default": 500,
37+
"minimum": 500,
38+
"maximum": 2000
39+
}
40+
}
41+
}
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)