-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.schema.json
84 lines (84 loc) · 3.79 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
{
"pluginAlias": "ProgrammableHTTPSwitch",
"pluginType": "platform",
"singular": true,
"headerDisplay": "A Homebridge plugin that allows users to create Stateless Programmable Switches which can be controlled using a HTTP API.",
"schema": {
"type": "object",
"properties": {
"accessories": {
"title": "Accessories",
"description": "List of accessory configurations.",
"type": "array",
"required": true,
"items": {
"title": "Accessory",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "The name of the accessory.",
"type": "string",
"required": true
},
"identifier": {
"title": "Identifier",
"description": "The identifier used in the API.",
"type": "string",
"required": true
},
"buttons": {
"title": "Buttons",
"description": "List of button configurations.",
"type": "array",
"required": true,
"items": {
"title": "Button",
"type": "object",
"required": true,
"properties": {
"name": {
"title": "Name",
"description": "The name of the button.<br/> Note: Not shown in Apple's Home app.",
"type": "string",
"required": true
},
"identifier": {
"title": "Identifier",
"description": "The identifier used in the API.",
"type": "string",
"required": true
},
"supportedActions": {
"title": "Supported actions",
"description": "List of actions that this button supports.",
"type": "array",
"minItems": 1,
"required": true,
"default": ["singlePress", "doublePress", "longPress"],
"uniqueItems": true,
"items": {
"title": "Action",
"type": "string",
"enum": [
"singlePress",
"doublePress",
"longPress"
]
}
}
}
}
}
}
}
},
"port": {
"title": "Port",
"type": "number",
"required": false,
"placeholder": 3000
}
}
}
}