Open perjmolsen opened 3 months ago
This is how I built it for the first time (using Windows 10 and I had to install ESPHome). After that, you should find it's auto-detected by your HA and you can adopt it there and build it from there whenever you like as with other ESP 32 devices.
cd
to that folder from which I ran the commands below.wifi_hotspot_password: ""
and ota_password: ""
.esphome discover tesla-ble-esp32-generic.yml
just to prove everything was ok (it was).esphome compile tesla-ble-esp32-generic.yml
esphome upload tesla-ble-esp32-generic.yml
The device should then be found by HA and you should be able to adopt it in ESPHome in HA (but please see #44 as currently it's no longer working for me).
I then moved the device to be closer to the car so I could validate the key with it. That was a bit hit and miss but it did eventually work.
Good luck.
THANKS! I have now flashed my esp mini board It's working great 😊 I am only missing one sensor, the one who displays the state of charge - it would had been great also to have 😊
Btw, have you got it adopted into HA ESPHome? I still can't view logs, update it etc.
Yes no problem - HA found the device and asked for the secret key, I typed the one in from the secrets.yaml file - then it worked in HA.
Hmmm.... what's your ESPHome yaml file? This is mine:
substitutions:
name: tesla-ble
friendly_name: ESP32 Tesla BLE
packages:
yoziru.esphome-tesla-ble: github://yoziru/esphome-tesla-ble/tesla-ble-esp32-generic.yml
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
api:
encryption:
key: W3+VZ49/lF9d7F...
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
It looks like yours
substitutions: name: tesla-ble-a04334 friendly_name: ESP32 Tesla BLE a04334 packages: yoziru.esphome-tesla-ble: github://yoziru/esphome-tesla-ble/tesla-ble-esp32-generic.yml esphome: name: ${name} name_add_mac_suffix: false friendly_name: ${friendly_name} api: encryption: key: 2cjftDBGqAuNd............
wifi: ssid: !secret wifi_ssid password: !secret wifi_password
Hi I guess I need a bit more help :)
I have a esp mini board that I want to flash with your firmware - how do I do that? I have followed your guide "Building and flashing ESP32 firmware" and have done step 1 connecting the board to my laptop
I am stuck at step 2 - where do I place the "secrets.yaml"?
I have also done step 3 installing esphome manually....
I am running ESPhome in home assistant - it it possible to use that to build firmware file, and flash it with that?