-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.schema.json
182 lines (180 loc) · 5.63 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
176
177
178
179
180
181
182
{
"pluginAlias": "HomebridgeIthoDaalderop",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Please [read the README](https://github.com/jvandenaardweg/homebridge-itho-daalderop#readme) of the plugin for more information and instructions on how to configure it.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Bridge name",
"type": "string",
"required": true,
"placeholder": "Itho Daalderop",
"description": "You'll see this name when you add the bridge in your Home app and also in the logs within Homebridge.",
"default": "Itho Daalderop"
},
"verboseLogging": {
"title": "Verbose Logging",
"type": "boolean",
"required": false,
"default": false,
"description": "If enabled, the plugin will log all debug messages. If everything works as expected, there's no need to enable this."
},
"device": {
"type": "object",
"title": "Device properties",
"properties": {
"co2Sensor": {
"title": "Using built-in CO2 Sensor",
"type": "boolean",
"required": false,
"default": false
},
"nonCve": {
"title": "Is a HRU-350, DemandFlow, QualityFlow or HRU Eco Fan",
"type": "boolean",
"required": false,
"default": false
}
}
},
"api": {
"type": "object",
"title": "MQTT Broker settings",
"description": "",
"properties": {
"protocol": {
"title": "API Protocol",
"type": "string",
"required": true,
"default": "mqtt",
"oneOf": [
{
"title": "HTTP",
"enum": ["http"]
},
{
"title": "MQTT",
"enum": ["mqtt"]
}
]
},
"ip": {
"type": "string",
"title": "IP Address",
"placeholder": "192.168.0.10",
"format": "ipv4",
"required": true
},
"port": {
"type": "number",
"title": "Port",
"placeholder": "1883 (mqtt) or 80 (http)",
"required": true
},
"username": {
"type": "string",
"title": "Username",
"placeholder": "Optional",
"required": false
},
"password": {
"type": "string",
"title": "Password",
"placeholder": "Optional",
"required": false
}
}
}
}
},
"layout": [
{
"type": "flex",
"flex-flow": "row wrap",
"orderable": false,
"items": [
{
"key": "name",
"type": "name"
}
]
},
{
"type": "fieldset",
"title": "Device properties",
"expandable": false,
"orderable": false,
"items": [
{
"items": [
{
"key": "device.co2Sensor",
"description": "Indicate wether your fan is using the built-in CO2 sensor. If so, the plugin will automatically switch to using virtual remote commands like low, medium or high instead of rotation speed 0 - 100 to set the fan speed. <a href='https://github.com/jvandenaardweg/homebridge-itho-daalderop#about-manual-speed-control'>More about this in the README</a>."
},
{
"key": "device.nonCve",
"description": "Indicate if your device is a non-CVE device like HRU-350, DemandFlow, QualityFlow or HRU Eco Fan. If so, the plugin will automatically switch to using virtual remote commands like low, medium or high instead of rotation speed 0 - 100 to set the fan speed. <a href='https://github.com/jvandenaardweg/homebridge-itho-daalderop#about-manual-speed-control'>More about this in the README</a>."
}
]
}
]
},
{
"type": "fieldset",
"title": "API Settings",
"description": "Select which API protocol you want to use for this plugin. The HTTP API requires no additional setup. In order to use MQTT you must have set up a MQTT broker on your network. <a href='https://github.com/jvandenaardweg/homebridge-itho-daalderop#mqtt'>More about this in the README</a>.",
"expandable": false,
"orderable": false,
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
{
"key": "api.protocol"
},
{
"key": "api.ip"
},
{
"key": "api.port"
}
]
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
{
"key": "api.username"
},
{
"key": "api.password"
},
{
"key": "",
"description": "The Itho WiFi module allows setting a username and password for using the HTTP API or MQTT. If you have set this, enter the username and password here."
}
]
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
{
"key": "verboseLogging"
}
]
}
]
}
]
}
]
}