generated from homebridge/homebridge-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.schema.json
142 lines (142 loc) · 4.66 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
{
"pluginAlias": "blueair-purifier",
"pluginType": "platform",
"customUi": true,
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of the BlueAir Purifier platform in Homebridge.",
"type": "string"
},
"username": {
"title": "Username",
"description": "Username for BlueAir account. This should be filled in automatically in the discovery process.",
"type": "string"
},
"password": {
"title": "Password",
"description": "Password for BlueAir account. This should be filled in automatically in the discovery process.",
"type": "string"
},
"region": {
"title": "Region",
"description": "Region for BlueAir account. This should be filled in automatically in the discovery process.",
"type": "string",
"enum": ["Default (all other regions)", "Australia", "China", "Russia", "USA"],
"default": "Default (all other regions)",
"required": true
},
"accountUuid": {
"title": "Account UUID",
"description": "Account UUID for BlueAir account. This should be filled in automatically in the discovery process.",
"type": "string"
},
"verboseLogging": {
"title": "Verbose Logging",
"description": "Enable to receive detailed log messages. Useful for troubleshooting.",
"type": "boolean"
},
"uiDebug": {
"title": "UI Debug",
"description": "Enable to show debug information in the Homebridge UI.",
"type": "boolean"
},
"pollingInterval": {
"title": "Polling Interval",
"description": "Interval in miliseconds to poll the BlueAir API for updates. It's recommended to keep this at least 15 seconds (15000 miliseconds).",
"type": "number"
},
"devices": {
"title": "Devices",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"title": "ID",
"type": "string",
"required": true
},
"name": {
"title": "Name",
"type": "string",
"required": true
},
"model": {
"title": "Model",
"type": "string"
},
"serialNumber": {
"title": "Serial Number",
"type": "string"
},
"filterChangeLevel": {
"title": "Filter Change Level",
"description": "Percentage of filter life remaining to trigger a filter change alert.",
"type": "number"
},
"led": {
"title": "LED",
"description": "Toggles if the LED switch service is created with the accessory.",
"type": "boolean"
},
"airQualitySensor": {
"title": "Air Quality Sensor",
"description": "Toggles if the air quality sensor service is created with the accessory.",
"type": "boolean"
},
"temperatureSensor": {
"title": "Temperature Sensor",
"description": "Toggles if the temperature sensor service is created with the accessory.",
"type": "boolean"
},
"germShield": {
"title": "Germ Shield",
"description": "Toggles if the germ shield switch service is created with the accessory.",
"type": "boolean"
},
"nightMode": {
"title": "Night Mode",
"description": "Toggles if the night mode switch service is created with the accessory.",
"type": "boolean"
}
}
}
}
}
},
"layout": [
{
"items": [
{
"ref": "common",
"type": "fieldset",
"expandable": true,
"expanded": true,
"title": "Common Settings",
"items": ["name", "username", "password", "region", "accountUuid", "verboseLogging", "uiDebug", "pollingInterval"]
},
{
"key": "devices",
"type": "tabarray",
"title": "{{ value.name || 'new device' }}",
"items": [
"devices[].id",
"devices[].name",
"devices[].model",
"devices[].serialNumber",
"devices[].filterChangeLevel",
"devices[].led",
"devices[].airQualitySensor",
"devices[].temperatureSensor",
"devices[].germShield",
"devices[].nightMode"
]
}
]
}
]
}