-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
executable file
·85 lines (85 loc) · 2.87 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
{
"pluginAlias": "davis",
"pluginType": "accessory",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Device Name",
"type": "string",
"required": true,
"description": "What do you want your weatherstation to be called by homekit?",
"default": "Davis"
},
"manufacturer": {
"title": "Manufacturer Name",
"type": "string",
"required": true,
"description": "What manufacturer do you want Homekit to see?"
},
"model": {
"title": "Model Name",
"type": "string",
"required": true,
"description": "What model do you want Homekit to see?"
},
"serial": {
"title": "Serial Number",
"type": "string",
"required": true,
"description": "Provide a unique serial number"
},
"url": {
"title": "Access URL",
"type": "string",
"required": true,
"description": "What is the complete URL DIRECTLY to your Davis unit?",
"default": "http://<ip address>/v1/current_conditions"
},
"sensorType": {
"title": "Type of Sensor?",
"type": "number",
"required": true,
"default": 1,
"description": "What sensor are you using?",
"oneOf": [
{"title": "External: Normal", "enum": [1] },
{"title": "Internal: Normal", "enum": [2] },
{"title": "External: Airlink", "enum": [3] }
]
},
"txid": {
"title": "Transmitter ID #",
"type": "number",
"required": true,
"description": "The Transmitter ID # if you have multiple units, leave at 1 if you don't know",
"default": 1
},
"pollingIntervalSeconds": {
"title": "Interval",
"type": "number",
"default": 60,
"description": "How many seconds between requests?",
"required": false
},
"temperatureUnitOfMeasure": {
"title": "Units",
"type": "string",
"required": true,
"default": "F",
"description": "What units does your Davis unit provide?",
"oneOf": [
{"title": "Fahrenheit", "enum": ["F"] },
{"title": "Celsius", "enum": ["C"] }
]
},
"useInternal": {
"title": "legacy switch, uncheck if checked, and use internal above",
"type": "boolean",
"default": false,
"required": true
}
}
}
}