forked from loftux/homebridge-teslafi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
143 lines (143 loc) · 5.11 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
{
"pluginAlias": "TeslafiPlugin",
"pluginType": "platform",
"headerDisplay": "Register your TeslaFi [account <i class='fas fa-external-link-alt'></i>](https://www.teslafi.com/signup.php?referred=loftux) or [login <i class='fas fa-external-link-alt'></i>](https://teslafi.com/userlogin.php) to get your API token.",
"footerDisplay": "You can add more Teslas using the **Add Platform** button.<br>*This is only supported with Homebridge 1.3.0 or above.* See Readme.",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Tesla Car Name",
"type": "string",
"required": true,
"default": "",
"description": "The name used as prefix in Homekit controls."
},
"token": {
"title": "Teslafi API Token",
"type": "string",
"required": true,
"default": "",
"description": "Your Teslafi token. Create one in your Teslafi accounts page. Remember to activate API Services you intend to use."
},
"useNamePrefix": {
"title": "Use Name as prefix",
"type": "boolean",
"required": true,
"default": true,
"description": "If the cars name should be prefix the Accessory name. Recommended if you will setup for multiple cars."
},
"lowBatterylevel": {
"title": "Low Battery Warning below percent",
"type": "integer",
"required": true,
"default": 20,
"minimum": 1,
"maximum": 99,
"description": "At what level would you like Homekit warn you of low battery. Independent of Car low batterey level."
},
"chargeLevelIncrement": {
"title": "Charge level increment",
"type": "integer",
"required": true,
"default": 5,
"minimum": 1,
"maximum": 5,
"description": "Steps for each change in slider. Default is 5, easier to set desired level. 1 would give you fine tuning, but harder to pinpoint. Displayed max charge level will be rounded to this increment, so actual max charge level can differ from displayed. If this matters, use 1."
},
"teslafiRefreshTimeout": {
"title": "Refresh Teslafi data every n sceonds",
"type": "integer",
"required": true,
"default": 60,
"minimum": 30,
"maximum": 3000,
"description": "How often should car data be fetched from Teslafi. 60s (default) is a resonable setting."
},
"wakeupTimeout": {
"title": "Wait n sceonds for care to wake up",
"type": "integer",
"required": true,
"default": 15,
"minimum": 0,
"maximum": 60,
"description": "If the car is sleeping when a command is sent, try to wake the car first and wait for n secons. Set to 0 if you don't want to wake the car. Lower value than 15 can be set, but not recommended."
},
"tempUnit": {
"title": "Temperature Display Units",
"type": "string",
"required": true,
"default": "C",
"description": "Not in use: Turns out Homekit deals with all values in C, and if you have set iOS to prefer F it will handle that.",
"oneOf": [
{
"title": "Celsius",
"enum": ["C"]
},
{
"title": "Fahrenheit",
"enum": ["F"]
}
]
},
"rangeUnit": {
"title": "Range Display Units",
"type": "string",
"required": true,
"default": "km",
"description": "For future use when range display is implemented",
"oneOf": [
{
"title": "Kilometer",
"enum": ["km"]
},
{
"title": "Miles",
"enum": ["miles"]
}
]
},
"taggedLocations": {
"title": "Tagged Locations",
"description": "Each named location will trigger an occupancy sensor when matched with tagged locations in TeslaFi.",
"type": "array",
"items": {
"title": "Location",
"type": "string"
}
},
"dashboardImageFilePath": {
"title": "Dashboard Image File PAth",
"type": "string",
"required": false,
"default": "",
"description": "Path to a writable directory where to create the Dashboard image [Tesla Car Name]_dashboard.png. Use same path in homebridge ffmpeg to show in Camera. Leave blank if you do not want dashboard image."
},
"disableTeslaOnlineAccessory": {
"title": "Disable Online",
"type": "boolean"
},
"disableTeslaSentryAccessory": {
"title": "Disable Sentry",
"type": "boolean"
},
"disableTeslaBatteryAccessory": {
"title": "Disable Charger/Battery",
"type": "boolean"
},
"disableTeslaThermostatAccessory": {
"title": "Disable Climate Control",
"type": "boolean"
},
"disableTeslaChargePortAccessory": {
"title": "Disable Charge Port lock",
"type": "boolean"
},
"disableTeslaDoorLockAccessory": {
"title": "Disable Door lock",
"type": "boolean"
}
}
}
}