forked from jmkk/homebridge-purpleair-sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
44 lines (44 loc) · 1.64 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
{
"pluginAlias": "PurpleAirSensor",
"pluginType": "accessory",
"singular": false,
"headerDisplay": "Find the sensor number by going to <a href='https://www.purpleair.com/map'>PurpleAir's map</a> -> click on a sensor -> 'Get This Widget' -> 'JSON' and look at the URL. It's the number right after 'show'.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true
},
"sensor": {
"title": "Sensor ID",
"type": "number",
"required": true
},
"key": {
"title": "Private Sensor Key",
"type": "string",
"required": false
},
"averages": {
"title": "Reading Averages (default = realtime)",
"type": "string",
"oneOf": [
{ "title": "Show Realtime", "enum": ["realtime"] },
{ "title": "10 Minute Average", "enum": ["10m"] },
{ "title": "30 Minute Average", "enum": ["30m"] },
{ "title": "One Hour Average", "enum": ["60m"] }
]
},
"aqiInsteadOfDensity": {
"title": "Report AQI number instead of density (ug/m^3). HomeKit only allows reporting PM2.5 density instead of AQI value, but some people (e.g. author of the plugin) likes to see AQI value instead. If checked, the plugin will use the density field to report the AQI value.",
"type": "boolean"
},
"verboseLogging": {
"title": "Verbose logging. If checked, log more information at info level, so you can see what's happening in homebridge log without running homebridge in debug mode.",
"type": "boolean"
}
}
}
}