This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathconfig.schema.json
175 lines (175 loc) · 4.84 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"pluginAlias": "Wink",
"pluginType": "platform",
"singular": true,
"headerDisplay": " For Detailed instructions go [here](https://sibartlett.github.io/homebridge-wink3/)",
"footerDisplay": "This plugin is no longer being maintained but should work.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Wink",
"required": true
},
"client_id": {
"title": "Client ID",
"type": "string",
"required": true
},
"client_secret": {
"title": "Client Secret",
"type": "string",
"required": true
},
"hide_groups": {
"type": "array",
"required": false,
"expandable": true,
"expanded": false,
"uniqueItems": true,
"items": {
"title": "Type",
"type": "string",
"enum": [
"air_conditioner",
"binary_switch",
"camera",
"door_bell",
"fan",
"garage_door",
"light_bulb",
"lock",
"propane_tank",
"sensor_pod",
"shade",
"siren",
"smoke_detector",
"thermostat"
]
}
},
"hide_ids": {
"title": "Hide IDs",
"type": "array",
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"fan_ids": {
"title": "Fan IDs",
"type": "array",
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"outlet_ids": {
"title": "Outlet IDs",
"type": "array",
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"switch_ids": {
"title": "Switch IDs",
"type": "array",
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"direct_access": {
"title": " Enable/disable local control.",
"type": "boolean",
"default": true
}
}
},
"layout": [
"name",
{
"type": "help",
"helpvalue": "<em class='primary-text'>Enter the Client ID and Client Secret obtained from <a target='_blank' href='https://developer.wink.com/'>developer.wink.com</a></em>:"
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
{
"type": "flex",
"flex-flow": "column",
"items": [
"client_id"
]
},
{
"type": "flex",
"flex-flow": "column",
"items": [
"client_secret"
]
}
]
},
{
"type": "fieldset",
"title": "Optional Settings",
"expandable": true,
"expanded": false,
"items": [
{
"key": "hide_groups",
"title": "Hidden Groups <p class='help-block'>Allows you to hide groups of devices.</p>",
"items": {
"type": "string"
}
},
{
"notitle": true,
"description": "Hidden Devices <p class='help-block'>Allows you to hide devices by their ID.</p>",
"key": "hide_ids",
"title": "Hidden ID",
"items": {
"type": "number",
"placeholder": "Enter device id..."
}
},
{
"notitle": true,
"description": "Fan Devices <p class='help-block'>Allows you to expose devices (binary_switch/light_bulb) as fans, instead of light bulbs.</p>",
"key": "fan_ids",
"title": "Fan ID",
"items": {
"type": "number",
"placeholder": "Enter device id..."
}
},
{
"notitle": true,
"description": "Outlet Devices <p class='help-block'>Allows you to expose devices (binary_switch/light_bulb) as outlets, instead of light bulbs.</p>",
"key": "outlet_ids",
"title": "Outlet ID",
"items": {
"type": "number",
"placeholder": "Enter device id..."
}
},
{
"notitle": true,
"description": "Switch Devices <p class='help-block'>Allows you to expose devices (binary_switch/light_bulb) as switches, instead of light bulbs.</p>",
"key": "switch_ids",
"title": "Switch ID",
"items": {
"type": "number",
"placeholder": "Enter device id..."
}
},
"direct_access"
]
}
]
}