generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.schema.json
77 lines (77 loc) · 2.01 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
{
"pluginAlias": "Homeworks",
"pluginType": "platform",
"headerDisplay": "Processor and Lights",
"footerDisplay": "Please verify your integrationIDs from your database XML file",
"singular": false,
"schema": {
"type": "object",
"properties": {
"host": {
"title": "Homeworks Telnet IP Address",
"type": "string",
"format": "ipv4"
},
"apiPort": {
"type": "integer",
"title": "Port",
"maxLength": 5,
"pattern": "^[0-9]*$",
"placeholder": "23",
"description": "Processor Port No."
},
"username": {
"title": "Username",
"type": "string"
},
"password": {
"title": "Password",
"type": "string"
},
"devices": {
"type": "array",
"title": "Devices",
"description": "Light Directory",
"items": {
"type": "object",
"properties": {
"deviceType": {
"type": "string",
"title": "Device Type",
"oneOf":
[
{ "title": "Light", "enum": ["light"] },
{ "title": "Shade", "enum": ["shade"] }
],
"required": true,
"placeholder": "light"
},
"name": {
"type": "string",
"title": "Light Name",
"required": true,
"placeholder": "Livingroom"
},
"integrationID": {
"type": "string",
"title": "Integration ID",
"required": true,
"placeholder": "70"
},
"isDimmable": {
"type": "boolean",
"title": "Is dimmable",
"default": true
},
"description": {
"type": "string",
"title": "Description",
"required": false,
"placeholder": "second room on right"
}
}
}
}
}
}
}