-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
136 lines (136 loc) · 4.29 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"pluginAlias": "BondBridge",
"pluginType": "platform",
"singular": true,
"customUi": true,
"headerDisplay": "Homebridge plugin for BondBridge devices",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "BondBridge",
"required": true
},
"devices": {
"type": "array",
"items": {
"title": "Bond Bridge device",
"type": "object",
"properties": {
"ipAddress": {
"title": "IP Address",
"description": "The device's IP address. It is recommended to set a static IP for this device.",
"type": "string",
"format": "ipv4",
"required": true,
"placeholder": "192.168.0.1"
},
"token": {
"title": "Local Token",
"description": "The token of the device. This can be found in the Bond app in your Bond Settings.",
"type": "string",
"required": true,
"placeholder": ""
},
"debug": {
"title": "Enable detailed debug log",
"description": "Enables a detailed debug log. Useful when trying to figure out issues with the plugin.",
"type": "boolean",
"required": false,
"default": false
},
"CFsettings": {
"title": "Ceiling Fan settings",
"type": "object",
"properties": {
"setupOption": {
"title": "Ceiling Fan Setup Option",
"description": "Choose an option from this drop down menu.",
"type": "string",
"required": true,
"oneOf": [
{
"title": "Configure only a Ceiling Fan with SpeedControl",
"enum": [
"fan"
]
},
{
"title": "Configure a Ceiling fan with SpeedControl and a Light Switch",
"enum": [
"fanLight"
]
},
{
"title": "Configure a Ceiling Fan with SpeedControl and a Light with Dimmer",
"enum": [
"fanLightDimmer"
]
},
{
"title": "Configure only a Light Dimmer",
"enum": [
"lightDimmer"
]
},
{
"title": "Do not configure this Ceiling Fan",
"enum": [
"doNotConfigure"
]
}
],
"default": "doNotConfigure"
},
"timerSetup": {
"title": "Include Timers",
"description": "Configure a Fan timer and a Light timer, otherwise no timers.",
"type": "boolean",
"required": true,
"default": false
}
}
}
}
}
}
}
},
"layout": [
{
"type": "fieldset",
"title": "Bond Bridge Device Settings",
"description": "NOTE: define not more than 3 Bond Bridge devices because only a maximum of 3 Bond Bridge devices can be processed",
"items": []
},
{
"key": "devices",
"type": "tabarray",
"title": "{{ value.ipAddress || 'new device' }}",
"items": [
"devices[].ipAddress",
"devices[].token",
"devices[].debug",
{
"key": "devices[]",
"type": "fieldset`",
"title": "{{ value.title }}",
"items": [
{
"type": "fieldset",
"title": "Celing Fan and its associated Light specific settings",
"expandable": true,
"expanded": true,
"items": [
"devices[].CFsettings.setupOption",
"devices[].CFsettings.timerSetup"
]
}
]
}
]
}
]
}