generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.schema.json
70 lines (70 loc) · 2.68 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
{
"pluginAlias": "HttpJsonThermometer",
"pluginType": "platform",
"singular": false,
"headerDisplay": "Thermometers are exposed to HomeKit as separate accessories.",
"schema": {
"type": "object",
"properties": {
"thermometers": {
"title": "Thermometers",
"type": "array",
"items": {
"type": "object",
"properties": {
"thermometerName": {
"title": "Name of your thermometer",
"type": "string",
"default": "Terrarium thermometer",
"description": "This will be the name of your thermometer. This must be unique."
},
"httpRoute": {
"title": "HTTP route",
"type": "string",
"format": "uri",
"default": "http://ipaddress/status/",
"description": "This must be a path to a JSON format that looks like this, for example:<br />{<br />  "temp": "24.88",<br /> "temp2": "24.06",<br /> "temp3": "23.75"<br />}"
},
"updateInterval": {
"title": "Update interval (seconds)",
"type": "integer",
"default": "60",
"description": "Interval after which the values are updated."
},
"jsonName": {
"title": "Name of your thermometer in JSON",
"type": "string",
"default": "temp",
"description": "This must be the name of the thermometer in JSON format.<br />In the case above it could be temp or temp2 or temp3."
},
"calibration": {
"title": "Calibration (°C)",
"type": "number",
"placeholder": "0.00",
"description": "Only if you need to calibrate your thermometer. It will increase or decrease the value."
},
"manufacturer": {
"title": "Manufacturer",
"type": "string",
"placeholder": "Manufacturer",
"description": "Manufacturer of your thermometer."
},
"model": {
"title": "Model",
"type": "string",
"placeholder": "Model",
"description": "Thermometer model."
},
"serial": {
"title": "Serial number",
"type": "string",
"placeholder": "serial number",
"description": "Serial number of your thermometer."
}
},
"required": [ "thermometerName", "httpRoute", "updateInterval", "jsonName" ]
}
}
}
}
}