forked from mfkrause/homebridge-sunsensors
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.schema.json
66 lines (66 loc) · 3.08 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
{
"pluginAlias": "Sunlight",
"pluginType": "platform",
"singular": true,
"headerDisplay": "This plugin provides contact sensors to automate sun protection. Sensors are opened (breached) when the sun is in a given section of the sky (azimuth) and optionally if an [OpenWeather API key](https://openweathermap.org/api) is provided when the sun is above the horizon and the sky is not overcast.",
"footerDisplay": "For help or in case of issues please visit the [GitHub repository](https://github.com/Krillle/homebridge-sunlight/issues). Based on [homebridge-sunsensors](https://github.com/mfkrause/homebridge-sunsensors).",
"schema": {
"type": "object",
"properties": {
"lat": {
"type": "number",
"title": "Latitude",
"required": true
},
"long": {
"type": "number",
"title": "Longitude",
"required": true
},
"apikey": {
"type": "string",
"title": "OpenWeather API Key",
"description": "If API key is provided, sunhsine is reported only during daylight times when sky is not overcast",
"required": false
},
"sensors": {
"type": "array",
"title": "Sensors",
"required": true,
"description": "Define contact sensors for one or more sections of the sky, e.g. for windows looking to different directions. Direction is specified in degrees of compass: 0° North, 90° East, 180° South, 270° West. To define overlaps you can use values between -360° and 0° as well as 360° and 720°.",
"default": [],
"items": {
"type": "object",
"title": "Sun Position",
"required": true,
"properties": {
"name": {
"type": "string",
"title": "Sensor Name",
"description": "Homekit display name of the sensor",
"required": true
},
"lowerThreshold": {
"type": "number",
"title": "Lower Threshold",
"description": "Left side of sky section within which the sensor should activate",
"required": true
},
"upperThreshold": {
"type": "number",
"title": "Upper Threshold",
"description": "Right side of sky section within which the sensor should activate",
"required": true
}
}
}
},
"debugLog": {
"type": "boolean",
"title": "Debug logging enabled",
"required": false,
"default": false
}
}
}
}