From adac32e4e227c0040257bdf937afd092c802c20f Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Tue, 7 Jan 2025 19:33:16 +1000 Subject: [PATCH] Update command signing instructions in Tesla Fleet (#36775) * Update command signing instructions * Update tesla_fleet.markdown --- source/_integrations/tesla_fleet.markdown | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/source/_integrations/tesla_fleet.markdown b/source/_integrations/tesla_fleet.markdown index aaa3b3dbc82..01aaecc901f 100644 --- a/source/_integrations/tesla_fleet.markdown +++ b/source/_integrations/tesla_fleet.markdown @@ -177,26 +177,13 @@ Note that Tesla does not support billing in all countries yet. **Developers in c ## Command signing -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. +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 setup correctly. -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. +The integration expects your private key to be located at `config/tesla_fleet.key`. -```shell -tesla-keygen -key-file tesla_fleet.key create > tesla_fleet.pem -tesla-control -ble -key-file tesla_fleet.key -vin VINVINVINVIN -debug add-key-request tesla_fleet.pem owner cloud_key -``` +Your public key must be added to each of your vehicles by visiting https://tesla.com/_ak/YOUR.DOMAIN and following the instructions in the Tesla app. -Finally, copy `tesla_fleet.key` to your Home Assistant config directory and then reload the Tesla Fleet {% term integration %}. - -{% note %} -If you receive a "BLE connection attempt failed" error, follow these steps: - -1. Disable Bluetooth on your phone -2. Execute the `tesla-control` command -3. Re-enable Bluetooth after the command completes - -This is necessary because the tool cannot establish a connection while another Bluetooth device is connected to the car. -{% endnote %} +For more details see [Tesla Fleet API vehicle commands documentation](https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-commands#key-pairing). ## Entities @@ -360,4 +347,4 @@ which then can be used within the energy dashboard. - **Integration shows `a condition has not been met to process the request`** 1. Confirm that you've run all the steps from both the **Hosting a Public/Private Key Pair** and **Register your application as a Fleet API partner** sections above. - \ No newline at end of file +