Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can`t install #75

Open
Jacke87 opened this issue Sep 9, 2024 · 1 comment
Open

Can`t install #75

Jacke87 opened this issue Sep 9, 2024 · 1 comment

Comments

@Jacke87
Copy link

Jacke87 commented Sep 9, 2024

Hello i tried to install the code via esphome dashboard. But every time i try it i get errors.

My first try was

`substitutions:

all substitutions for this project

espidf_version: 5.3.0
platformio_version: 6.8.1
friendly_name: Tesla BLE
device_name: tesla-ble
device_description: Tesla BLE
board: esp32dev
variant: esp32
flash_size: 4MB
ble_mac_address: "A0:B1:C2:D3:E4:F5" # vehicle BLE MAC address
tesla_vin: "xxxxxxxxxxxxxxx" # vehicle VIN
charging_amps_max: "32"

external_components: !include packages/external_components.dashboard.yml

packages:
base: !include packages/base.yml
client: !include packages/client.yml
common: !include packages/common.yml

listener: !include packages/listener.yml # Uncomment this to scan find your VIN BLE MAC address

for ESPHome Dashboard, use this instead of external_components

dashboard_import:
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble.example.yml`

which results in

`INFO ESPHome 2024.8.3
INFO Reading configuration /config/esphome/esphome-web-e4b048.yaml...
ERROR Error while reading config: Invalid YAML syntax:

Error reading file /config/esphome/packages/external_components.dashboard.yml: [Errno 2] No such file or directory: '/config/esphome/packages/external_components.dashboard.yml'`

the next try was

`substitutions:

all substitutions for this project

espidf_version: 5.3.0
platformio_version: 6.8.1
friendly_name: Tesla BLE
device_name: tesla-ble
device_description: Tesla BLE
board: esp32dev
variant: esp32
flash_size: 4MB
ble_mac_address: "A0:B1:C2:D3:E4:F5" # vehicle BLE MAC address
tesla_vin: "xxxxxxxxxxxxxx" # vehicle VIN
charging_amps_max: "32"

#external_components: !include packages/external_components.dashboard.yml

packages:
base: github://yoziru/esphome-tesla-ble/packages/base.yml@main #!include packages/base.yml
client: github://yoziru/esphome-tesla-ble/packages/client.yml@main #client: !include packages/client.yml
common: github://yoziru/esphome-tesla-ble/packages/common.yml@main #!include packages/common.yml
listener: github://yoziru/esphome-tesla-ble/packages/listener.yml@main # Uncomment this to scan find your VIN BLE MAC address

for ESPHome Dashboard, use this instead of external_components

dashboard_import:
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble.example.yml`

i get these errors

`INFO ESPHome 2024.8.3
INFO Reading configuration /config/esphome/esphome-web-e4b048.yaml...
WARNING The selected ESP-IDF framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Unable to import component tesla_ble_vehicle: No module named 'esphome.components.tesla_ble_vehicle'
Failed config

tesla_ble_vehicle: [source /data/packages/a277ac64/packages/client.yml:11]

Component not found: tesla_ble_vehicle.
ble_client_id: ble_tesla_id
id: tesla_ble_vehicle_id
vin: XXXXXXXXXXXXXX
update_interval: 1min
is_asleep:
name: Asleep
is_user_present:
name: User presence
is_unlocked:
name: Doors
is_charge_flap_open:
name: Charge flap`

my last try was

`esp32:
board: esp32-c3-devkitm-1
framework:
type: esp-idf
version: 5.2.2
platform_version: 6.7.0

substitutions:
friendly_name: ESPHome Tesla BLE
device_name: tesla-ble
device_description: Tesla BLE

esphome:
name: ${device_name}
name_add_mac_suffix: true
friendly_name: ${friendly_name}
comment: ${device_description}
project:
name: yoziru.esphome-tesla-ble
version: "2024.7.24"
libraries:
- https://github.com/yoziru/tesla-ble.git#v2.1.0

packages:
common: github://yoziru/esphome-tesla-ble/packages/common.yml@main
client: github://yoziru/esphome-tesla-ble/packages/client.yml@main

listener: github://yoziru/esphome-tesla-ble/packages/listener.yml@main # Uncomment this to scan find your VIN BLE MAC address

logger:
level: INFO

api:
encryption:
key: !secret api_encryption_key

sync time with home assistant

time:

  • platform: homeassistant
    id: homeassistant_time

ota:
platform: esphome
password: !secret ota_password

esp32_ble_tracker:
scan_parameters:
# Activate scan only after wifi connect, see esphome/issues#2941 (comment)
continuous: false

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
password: !secret wifi_hotspot_password

Activate scan only after wifi connect, see esphome/issues#2941 (comment)

on_connect:
- esp32_ble_tracker.start_scan:
continuous: true
on_disconnect:
- esp32_ble_tracker.stop_scan:

captive_portal:`

which results in

`INFO ESPHome 2024.8.3
INFO Reading configuration /config/esphome/esphome-web-e4b048.yaml...
WARNING The selected ESP-IDF framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Unable to import component tesla_ble_vehicle: No module named 'esphome.components.tesla_ble_vehicle'
Failed config

tesla_ble_vehicle: [source /data/packages/a277ac64/packages/client.yml:11]

Component not found: tesla_ble_vehicle.
ble_client_id: ble_tesla_id
id: tesla_ble_vehicle_id
vin: xxxxxxxxxxxxxx
update_interval: 1min
is_asleep:
name: Asleep
is_user_present:
name: User presence
is_unlocked:
name: Doors
is_charge_flap_open:
name: Charge flap`

@pvmil
Copy link

pvmil commented Sep 11, 2024

@Jacke87 Possibly there is help in #70
In this I share my configuration and approach to get this in ESPHome

If this works for you it would be nice to add this to the documentation, can you do that (after getting it running ofcourse)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants