generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.schema.json
40 lines (40 loc) · 1.34 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
{
"pluginAlias": "Siri Shortcuts",
"pluginType": "accessory",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"description": "The name of the switch to expose in HomeKit."
},
"stateful": {
"title": "Stateful",
"required": true,
"type": "boolean",
"default": false,
"description": "If checked, the switch will stay on instead of automaticall switching off."
},
"time": {
"title": "Time",
"type": "number",
"default": 1000,
"description": "The switch will turn off after this number of milliseconds. Not used if the switch is stateful."
},
"on": {
"required": true,
"title": "On",
"type": "string",
"description": "The name of the shortcut to run when the switch turns on."
},
"off": {
"title": "Off",
"type": "string",
"description": "The name of the shortcut to run when the switch turns off."
}
}
}
}