-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.schema.json
167 lines (167 loc) · 5.25 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
{
"pluginAlias": "LC7001",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin to communicate with Legrand LC7001. (RFLC, Adorne, and On-Q)",
"footerDisplay": "Configure your LC7001 using the Legrand Lighting Control app. The names you give your light switches and dimmers are treated as unique indentifiers. If you rename any object in the Legrand Lighting Control app, the accessory will be removed from HomeKit and re-added under the new name. You can rename the lights as much as you want within HomeKit, just not within the Legrand Lighting Control app.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "LC7001",
"description": "Plugin name as it will appear in logs.",
"minlength": 1,
"required": true
},
"lc7001-password": {
"title": "Password",
"type": "string",
"default": "",
"description": "Password assigned to LC7001 via the Legrand Lighting Control app. (Pre-2020 configurations may not have a password.)",
"required": false
},
"lc7001-hostname": {
"title": "Hostname",
"type": "string",
"placeholder": "LCM1.local",
"description": "Hostname/IP address of LC7001 device. The default (\"LCM1.local\") is an mDNS hostname the LC7001 device will answer.",
"format": "hostname",
"required": false
},
"lc7001-port": {
"title": "Port",
"type": "integer",
"placeholder": 2112,
"description": "TCP port of LC7001 device. Default is 2112.",
"minimum": 1,
"maximum": 65535,
"slider": false,
"required": false
},
"lc7001-localaddress": {
"title": "Source IP Address",
"type": "string",
"description": "Source IP address from which to contact LC7001.",
"required": false
},
"lc7001-localport": {
"title": "Source TCP Port",
"type": "integer",
"description": "Source TCP port from which to contact LC7001.",
"minimum": 1,
"maximum": 65535,
"required": false
},
"lc7001-family": {
"title": "IP Version",
"type": "integer",
"description": "IP version with which to contact LC7001.",
"oneOf": [
{
"title": "IPv4 or IPv6",
"enum": [0]
},
{
"title": "IPv4",
"enum": [4]
},
{
"title": "IPv6",
"enum": [6]
}
]
},
"lc7001-delimiter": {
"title": "JSON Delimiter",
"type": "string",
"placeholder": "\\0",
"description": "Delimiter LC7001 uses to separate JSON objects. Default is null character. (Escape strings will need to be manually configured.)",
"required": false
},
"lc7001-tcptimeout": {
"title": "TCP Inactivity Timeout",
"type": "integer",
"placeholder": 30,
"description": "Seconds of inactivity before TCP connection is reset. 0 disables timeout.",
"minimum": 0,
"slider": false,
"required": false
},
"lc7001-tcpretrywait": {
"title": "TCP Retry Wait Time",
"type": "integer",
"placeholder": 30,
"description": "Seconds to wait before attempting to reconnect to LC7001.",
"minimum": 0,
"slider": false,
"required": false
},
"logBroadcastDiagnostics": {
"title": "Log LC7001 BroadcastDiagnostics messages?",
"type": "boolean",
"placeholder": false,
"description": "Enable to log LC7001 debug messages.",
"required": false
},
"logBroadcastMemory": {
"title": "Log LC7001 BroadcastMemory messages?",
"type": "boolean",
"placeholder": false,
"description": "Enable to log LC7001 debug messages.",
"required": false
},
"logDebugMessages": {
"title": "Log LC7001 debug messages?",
"type": "boolean",
"placeholder": false,
"description": "Enable to log LC7001 debug messages.",
"required": false
},
"logEliotErrors": {
"title": "Log LC7001 \"EliotErrors\" messages?",
"type": "boolean",
"placeholder": false,
"description": "Enable to log LC7001 \"EliotErrors\" messages.",
"required": false
},
"useOldUUID": {
"title": "Use old UUID generation key?",
"type": "boolean",
"placeholder": false,
"description": "Enable to generate UUIDs using method prior to version 1.0.",
"required": false
}
}
},
"form": [
"name",
"lc7001-password",
"lc7001-hostname",
{
"key": "lc7001-port",
"type": "text"
},
{
"type": "advancedfieldset",
"items": [
"lc7001-localaddress",
{
"key": "lc7001-localport",
"type": "text"
},
"lc7001-family",
"lc7001-delimiter",
"lc7001-tcptimeout",
"lc7001-tcpretrywait",
"logBroadcastDiagnostics",
"logBroadcastMemory",
"logDebugMessages",
"logEliotErrors",
"useOldUUID"
]
}
],
"display": null
}