yoziru / esphome-tesla-ble

Interact with Tesla vehicles over BLE using ESPHome and Home Assistant
GNU Affero General Public License v3.0
85 stars 17 forks source link

Unable to listnen to find the mac address #81

Closed oheguy closed 1 month ago

oheguy commented 1 month ago

Hello,

Thank you for sharing this project.

I have a NanoC6 that I flashed with ESPHome in Python. I uncommented line 6 of tesla-ble-m5stack-nanoc6.yml to activate the listener. I created the secret.yml file from a copy of secrets.yaml.example. I filled in wifi_ssid, wifi_password, tesla_vin, and provided a new key for api_encryption_key. I compiled and uploaded it to the NanoC6.

When I go to Home Assistant, I can see a new integration appear, which shows that the Wi-Fi is working well. When I go to the ESPHome dashboard in Home Assistant, I can connect to the NanoC6 via USB, but the logs remain empty. If I "reset device," I get the following logs:

[16:30:28]I (471) esp_image: segment 3: paddr=001b555c vaddr=4080efESP-ROM:esp32c6-20220919
[16:30:28]Build:Sep 19 2022
[16:30:28]rst:0x15 (USB_UART_HPSYS),boot:0xc (SPI_FAST_FLASH_BOOT)
[16:30:28]Saved PC:0x4080a714
[16:30:28]SPIWP:0xee
[16:30:28]mode:DIO, clock div:2
[16:30:28]load:0x4086c110,len:0xe2c
[16:30:28]load:0x4086e610,len:0x2e6c
[16:30:28]load:0x40875720,len:0x1804
[16:30:28]entry 0x4086c110
[16:30:28]I (23) boot: ESP-IDF 5.3.0 2nd stage bootloader
[16:30:28]I (23) boot: compile time Oct  2 2024 20:22:34
[16:30:28]I (24) boot: chip revision: v0.1
[16:30:28]I (26) boot.esp32c6: SPI Speed      : 80MHz
[16:30:28]I (30) boot.esp32c6: SPI Mode       : DIO
[16:30:28]I (35) boot.esp32c6: SPI Flash Size : 4MB
[16:30:28]I (40) boot: Enabling RNG early entropy source...
[16:30:28]I (45) boot: Partition Table:
[16:30:28]I (49) boot: ## Label            Usage          Type ST Offset   Length
[16:30:28]I (56) boot:  0 otadata          OTA data         01 00 00009000 00002000
[16:30:28]I (64) boot:  1 phy_init         RF data          01 01 0000b000 00001000
[16:30:28]I (71) boot:  2 app0             OTA app          00 10 00010000 001c0000
[16:30:29]I (78) boot:  3 app1             OTA app          00 11 001d0000 001c0000
[16:30:29]I (86) boot:  4 nvs              WiFi data        01 02 00390000 0006d000
[16:30:29]I (94) boot: End of partition table
[16:30:29]I (98) esp_image: segment 0: paddr=00010020 vaddr=42150020 size=5109ch (331932) map
[16:30:29]I (175) esp_image: segment 1: paddr=000610c4 vaddr=40800000 size=0ef54h ( 61268) load
[16:30:29]I (190) esp_image: segment 2: paddr=00070020 vaddr=42000020 size=145534h (1332532) map
[16:30:29]I (465) esp_image: segment 3: paddr=001b555c vaddr=4080ef54 size=0e420h ( 58400) load
[16:30:29]I (480) esp_image: segment 4: paddr=001c3984 vaddr=4081d380 size=03ce4h ( 15588) load
[16:30:29]I (491) boot: Loaded app from partition at offset 0x10000
[16:30:29]I (492) boot: Disabling RNG early entropy source...
[16:30:29]I (503) cpu_start: Unicore app
[16:30:29]I (512) cpu_start: Pro cpu start user code
[16:30:29]I (512) cpu_start: cpu freq: 160000000 Hz
[16:30:29]I (513) app_init: Application information:
[16:30:29]I (515) app_init: Project name:     tesla-ble
[16:30:29]I (520) app_init: App version:      2024.9.2
[16:30:29]I (525) app_init: Compile time:     Oct  2 2024 20:21:42
[16:30:29]I (531) app_init: ELF file SHA256:  962211c6b...
[16:30:29]I (536) app_init: ESP-IDF:          5.3.0
[16:30:29]I (541) efuse_init: Min chip rev:     v0.0
[16:30:29]I (546) efuse_init: Max chip rev:     v0.99 
[16:30:29]I (551) efuse_init: Chip rev:         v0.1
[16:30:29]I (556) heap_init: Initializing. RAM available for dynamic allocation:
[16:30:29]I (563) heap_init: At 4082A010 len 00052600 (329 KiB): RAM
[16:30:29]I (569) heap_init: At 4087C610 len 00002F54 (11 KiB): RAM
[16:30:29]I (575) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
[16:30:29]I (582) spi_flash: detected chip: generic
[16:30:29]I (586) spi_flash: flash io: dio
[16:30:29]W (590) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
[16:30:29]I (601) sleep: Configure to isolate all GPIO pins in sleep state
[16:30:29]I (607) sleep: Enable automatic switching of GPIO sleep configuration
[16:30:29]I (615) coexist: coex firmware version: dab85ae96
[16:30:29]I (620) coexist: coexist rom version 5b8dcfa
[16:30:29]I (625) main_task: Started on CPU0
[16:30:29]I (628) main_task: Calling app_main()

If I try to connect via Wi-Fi, I get:

INFO ESPHome 2024.9.2
INFO Reading configuration /config/esphome/tesla-ble-1dd34c.yaml...
Failed config

packages: [source /config/esphome/tesla-ble-1dd34c.yaml:5]

  Failed to load packages. tesla-ble-m5stack-nanoc6.dashboard.yml is not a valid YAML file. Please check the file contents.
  Secret 'ota_password' not defined
    in "/data/packages/c20f6059/packages/base.yml", line 31, column 13.
  yoziru.esphome-tesla-ble: github://yoziru/esphome-tesla-ble/tesla-ble-m5stack-nanoc6.dashboard.yml

Thank you for your help.

oheguy commented 1 month ago

i have updated secrets in Home Assistant and i was able to see the logs in the addon.