generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.schema.json
66 lines (66 loc) · 2.05 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
{
"pluginAlias": "Casambi",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"required": true,
"description": "Contact Casambi Support ([email protected]) to obtain an API key."
},
"loginMode": {
"type": "string",
"required": true,
"description": "Choose whether you're providing network or user credentials. A user account allows access to devices from multiple networks (using Casambi App's \"Sites\" functionality).",
"default": "network",
"oneOf": [
{ "title": "Network", "enum": ["network"] },
{ "title": "User (site account)", "enum": ["user"] }
]
},
"email": {
"type": "string",
"required": true
},
"password": {
"type": "string",
"required": true
},
"ignoreFixtureIds": {
"type": "string",
"description": "List of comma-separated Fixture IDs of devices that should not be added to HomeKit. Refer to the Casambi App or Homebridge log file to obtain Fixture IDs."
},
"verticalControl": {
"type": "string",
"description": "Select how to present the up/down control feature of Luminaires that support it.",
"oneOf": [
{ "title": "As a separate brightness characteristic", "enum": ["separate"] }
]
}
}
},
"layout": [
{ "key": "apiKey", "title": "API Key" },
{ "key": "loginMode" },
{ "key": "email", "title": "Credentials", "placeholder": "e-mail" },
{ "key": "password", "notitle": true, "placeholder": "password" },
{ "type": "section",
"title": "Ignore Fixture IDs",
"expandable": true,
"expanded": false,
"items": [
{ "key": "ignoreFixtureIds", "notitle": true }
]
},
{ "type": "section",
"title": "Up/down luminaire control",
"expandable": true,
"expanded": false,
"items": [
{ "key": "verticalControl", "notitle": true }
]
}
]
}