forked from trympet/homebridge-volvo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
165 lines (164 loc) · 4.51 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"pluginAlias": "Volvo",
"pluginType": "accessory",
"singular": false,
"schema": {
"name": {
"title": "Name",
"type": "string",
"default": "Volvo",
"required": true,
"description": "Name of the accessory. Siri uses this parameter for identifying your car."
},
"email": {
"title": "Email",
"type": "string",
"pattern": "^\\S+@\\S+$",
"required": true,
"description": "Volvo On Call account email."
},
"password": {
"title": "Password",
"type": "string",
"required": true,
"description": "Volvo On Call account password."
},
"region": {
"title": "Region",
"type": "string",
"required": true,
"oneOf": [
{ "title": "Europe", "enum": ["eu"] },
{ "title": "North-America", "enum": ["na"] },
{ "title": "China", "enum": ["cn"] }
],
"description": "Volvo On Call region."
},
"VIN": {
"title": "Vehicle Identification Number (VIN)",
"type": "string",
"placeholder": "YV1AX8850J3766769",
"description": "VIN of your Volvo vehicle. Only required if you have multiple vehicles associated with your account."
},
"updateInterval": {
"title": "Update interval to VOC API",
"type": "integer",
"placeholder": 5,
"minimum": 3,
"required": false,
"description": "Interval (in seconds) between GET status updates to the Volvo On Call API. Setting this number too low will result in DOS."
},
"engineStartDuration": {
"title": "Engine start duration",
"type": "integer",
"placeholder": 5,
"minimum": 1,
"maximum": 15,
"description": "Duration of engine remote start. Only applicable if feature is supported by your car."
},
"batteryLowThreshold": {
"title": "EV Battery/fuel threshold",
"type": "integer",
"placeholder": 20,
"minimum": 1,
"maximum": 99,
"description": "Threshold (percentage) for battery low status in HomeKit. If your vehicle is not an EV, this will reflect the fuel level for your car."
},
"enabledFeatures": {
"type": "object",
"properties": {
"carLocatorSupported": {
"type": "boolean",
"default": true
},
"honkAndOrBlink": {
"type": "boolean",
"default": true
},
"honkAndBlink": {
"type": "boolean",
"default": true
},
"remoteHeaterSupported": {
"type": "boolean",
"default": true
},
"unlockSupported": {
"type": "boolean",
"default": true
},
"lockSupported": {
"type": "boolean",
"default": true
},
"preclimatizationSupported": {
"type": "boolean",
"default": true
},
"engineStartSupported": {
"type": "boolean",
"default": true
},
"highVoltageBatterySupported": {
"type": "boolean",
"default": true
}
}
}
},
"layout": [
"name",
{
"key": "email",
"type": "email",
"validationMessages": {
"pattern": "Not a valid email address."
}
},
{
"key": "password",
"type": "password"
},
"region",
"VIN",
{
"type": "section",
"title": "Features",
"expanded": false,
"expandable": true,
"key": "enabledFeatures",
"description": "Manually enable or disable features. Homebridge-volvo will automatically detect the features available on your car. This is only useful for disableling features for security reasons, such as lock/unlock. Properties:",
"required": false,
"items": [
"enabledFeatures.carLocatorSupported",
"enabledFeatures.honkAndOrBlink",
"enabledFeatures.honkAndBlink",
"enabledFeatures.remoteHeaterSupported",
"enabledFeatures.unlockSupported",
"enabledFeatures.lockSupported",
"enabledFeatures.preclimatizationSupported",
"enabledFeatures.engineStartSupported",
"enabledFeatures.highVoltageBatterySupported"
]
},
{
"type": "section",
"title": "Advanced features",
"expanded": false,
"expandable": true,
"items": [
"updateInterval",
{
"key": "engineStartDuration",
"type": "number"
},
{
"key": "batteryLowThreshold",
"type": "number"
}
]
}
],
"form": null,
"display": null
}