-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
80 lines (80 loc) · 3.52 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
{
"pluginAlias": "octoprint",
"pluginType": "platform",
"singular": true,
"headerDisplay": "[OctoPrint](https://octoprint.org) Plugin for [Homebridge](https://github.com/nfarina/homebridge).",
"footerDisplay": "Raise [Issues](https://github.com/Sunoo/homebridge-octoprint-motion/issues) or submit [Pull Requests](https://github.com/Sunoo/homebridge-octoprint-motion/pulls) on [Project Page](https://github.com/Sunoo/homebridge-octoprint-motion).",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Octoprint Motion",
"description": "A unique name for the accessory. It will be used as the accessory name in HomeKit."
},
"instances": {
"title": "Instances",
"type": "array",
"required": true,
"minLength": 1,
"items": {
"title": "Octoprint Instance",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"placeholder": "Monoprice",
"description": "Name of your device."
},
"manufacturer": {
"title": "Manufacturer",
"type": "string",
"description": "Manufacturer of your device."
},
"model": {
"title": "Model",
"type": "string",
"description": "Model of your device."
},
"serial": {
"title": "Serial",
"type": "string",
"description": "Serial of your device."
},
"url": {
"title": "URL",
"type": "string",
"required": true,
"format": "uri",
"placeholder": "http://monoprice.local",
"description": "URL of your OctoPrint instance."
},
"api_key": {
"title": "API Key",
"type": "string",
"required": true,
"minLength": 32,
"maxLength": 32,
"placeholder": "o03vc2y4tpj76iy814u1vklz0gidiqut",
"description": "API Key for your OctoPrint instance."
},
"case_light": {
"title": "Case Light",
"type": "boolean",
"description": "Enables control of the printer's case light."
},
"occupancy_sensor": {
"title": "Occupancy Sensor",
"type": "boolean",
"description": "Exposes an occupancy sensor instead of a motion sensor."
}
}
}
}
}
}
}