tesla-local-control / tesla-local-control-addon

Control your Tesla locally from HomeAssistant
Apache License 2.0
10 stars 2 forks source link

BLE Private Key Deployment / How? #3

Closed baylanger closed 2 weeks ago

baylanger commented 2 weeks ago

Trying to figure out the requirements for this addon to deploy the private key.

Is pairing between HAOS and the car needed before deploying the key? If so... how? 🤔

In the addon when pressing the button "Deploy Key", is this all automatic or does the end user need to be in the car's Bluetooth many?

My current BLE dongle (ASUS USB-BT500) is assigned to the HAOS VM. Currently have the following in HA config file device_tracker.yaml :

- platform: bluetooth_le_tracker
  new_device_defaults:
    track_new_devices: true
  interval_seconds: 10
  consider_home: 180

Perhaps the above is interfering with this add-on? I'm not sure yet.

I noticed code changes around BLE, once 0.0.4 shows up I'll upgrade and try again.

baylanger commented 2 weeks ago

Once I have successfully deployed the key, I can create a PR to have some instructions.

baylanger commented 2 weeks ago

I just noticed in the logging of the add-on https://shankarkumarasamy.blog/2024/01/28/tesla-developer-api-guide-ble-key-pair-auth-and-vehicle-commands-part-3

Working on a PR , will read this after.

raphmur commented 2 weeks ago

Thanks @baylanger. PR #4 merged