-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
107 lines (106 loc) · 4.05 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"pluginAlias": "NestAccfactory",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"nest": {
"title": "Nest Account",
"type": "object",
"expandable": true,
"properties": {
"access_token": {
"title": "Access Token",
"type": "string",
"placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#nest-account"
},
"fieldTest" : {
"title": "Field Test",
"type": "boolean",
"description": "Use field test API endpoints",
"default": false,
"condition": {
"functionBody": "return model.nest.access_token"
}
}
}
},
"google": {
"title": "Google Account",
"type": "object",
"expandable": true,
"properties": {
"issuetoken": {
"title": "Issue Token",
"type": "string",
"placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#google-account"
},
"cookie": {
"title": "Cookie",
"type": "string",
"placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#google-account"
},
"fieldTest" : {
"title": "Field Test",
"type": "boolean",
"description": "Use field test API endpoints",
"default": false,
"condition": {
"functionBody": "return model.google.issuetoken && model.google.cookie"
}
}
}
},
"options": {
"title": "Options",
"type": "object",
"expandable": true,
"properties": {
"eveHistory": {
"title": "EveHome History",
"description": "Provide history in EveHome application where applicable",
"type": "boolean",
"default": true
},
"weather": {
"title": "Virtual Weather",
"description": "Virtual weather station",
"type": "boolean",
"default": false
},
"elevation": {
"title": "Elevation",
"description": "Height above sea level for the weather station",
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 8848,
"condition": {
"functionBody": "return model.options.weather"
}
},
"hksv": {
"title": "HomeKit Secure Video",
"description": "Enable HomeKit Secure Video for supported camera(s) and doorbell(s)",
"type": "boolean",
"default": false
},
"ffmpegPath": {
"title": "Path to ffmpeg binary",
"type": "string",
"placeholder": "Path to an ffmpeg binary. By default, we look in HomeBridge user path"
}
}
}
}
},
"oneOf": [
{
"required": ["nest"]
},
{
"required": ["google"]
}
]
}