Add signing instructions to Tesla Fleet (#35162)

This commit is contained in:
Brett Adams 2024-11-10 20:32:27 +10:00 committed by GitHub
parent f52b613deb
commit b9a9713791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,16 @@ Tesla restricts open-source integrations to the ["Discovery" plan](https://devel
## Command signing
Certain vehicles, including all vehicles manufactured since late 2023, require vehicle commands to be encrypted end-to-end and signed with a private key. The Tesla Fleet integration is unable to perform this encryption at this time, so certain features may be disabled or throw an exception when used.
Certain vehicles, including all vehicles manufactured since late 2023, require vehicle commands to be signed with a private key. All actions on vehicle entities will fail with an error if this is required and the key has not been added to the vehicle.
You will need to use Tesla's [command line tools](https://github.com/teslamotors/vehicle-command/blob/main/README.md#installation-and-configuration) to generate a key pair and install the public key on your vehicle using Bluetooth.
```shell
tesla-keygen -key-file tesla_fleet.key create > tesla_fleet.pem
tesla-control -ble -key-file tesla_fleet.key -vin VINVINVINVIN add-key-request tesla_fleet.pem owner cloud_key
```
Finally, copy `tesla_fleet.key` to your Home Assistant config directory and then reload the Tesla Fleet {% term integration %}.
## Entities