-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.schema.json
37 lines (37 loc) · 990 Bytes
/
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
{
"pluginAlias": "PrometheusSensorPlugin",
"pluginType": "accessory",
"singular": false,
"headerDisplay": "A Homebridge plugin for displaying data provided by Prometheus as sensor.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name of the sensor",
"type": "string",
"required": true
},
"url": {
"title": "Url of the prometheus server",
"type": "string",
"required": true,
"placeholder": "https://prometheus.example.com"
},
"query": {
"title": "Prometheus query to fetch value",
"type": "string",
"required": true
},
"type": {
"title": "Sensor type",
"type": "string",
"required": true,
"default": "temperature",
"oneOf": [
{ "title": "Temperature sensor", "enum": ["temperature"] },
{ "title": "Occupancy sensor", "enum": ["occupancy"] }
]
}
}
}
}