mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
additional commands documentation, allow_list.json example
This commit is contained in:
committed by
Tobias Lindberg
parent
a060a19f6f
commit
fb2a465452
@@ -173,7 +173,11 @@ There are two options available for authentication to be done.
|
||||
|
||||
### Commands
|
||||
|
||||
Commands are not enabled by default. You need to enable it in your environment variables file and you need to specify which commands you want to use as well.
|
||||
Commands are not enabled by default. You need to enable them in your environment variables and you need to specify which commands you want to use as well.
|
||||
|
||||
The most coarse option `COMMANDS_ALL=true` will enable all commands. Specific groups of commands can be enabled for example `COMMANDS_ALERT=true` will enable the [alert](https://tesla-api.timdorr.com/vehicle/commands/alerts) commands group. If you need a granular set of commands enabled `COMMANDS_ALLOWLIST=/path/to/allow_list.json` can be used to specify a [JSON formatted list of commands](./example/allow_list.json) to enable.
|
||||
|
||||
*note: if `COMMANDS_ALL` or any specific group of commands has been enabled `COMMANDS_ALLOWLIST` is ignored.
|
||||
|
||||
A list of possible commands can be found under [environment variables](#environment-variables).
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
["/command/wake_up","/command/flash_lights"]
|
||||
Reference in New Issue
Block a user