Skip to content

Commit

Permalink
fix esphome dashboard import
Browse files Browse the repository at this point in the history
  • Loading branch information
yoziru committed Aug 1, 2024
1 parent 1dd349a commit e956422
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 32 deletions.
13 changes: 0 additions & 13 deletions boards/m5stack-nanoc6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,3 @@ binary_sensor:
pullup: true
filters:
- delayed_off: 10ms

# custom logger for debugging
logger:
level: DEBUG
logs:
wifi: INFO
uptime: INFO
esp32_ble_client: INFO
esp32_ble_tracker: INFO
esp32_ble: INFO
status_led: INFO
light: INFO
api: INFO
6 changes: 1 addition & 5 deletions packages/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ esphome:
libraries:
- https://github.com/yoziru/tesla-ble.git#v2.2.1

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

logger:
level: INFO

Expand Down Expand Up @@ -52,3 +47,4 @@ wifi:
- esp32_ble_tracker.stop_scan:

captive_portal:

4 changes: 0 additions & 4 deletions packages/client.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
external_components:
- components: [ tesla_ble_vehicle ]
source: components

ble_client:
- mac_address: !secret ble_mac_address
id: ble_tesla_id
Expand Down
3 changes: 3 additions & 0 deletions packages/external_components.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
external_components:
- components: [tesla_ble_vehicle, tesla_ble_listener]
source: components
3 changes: 3 additions & 0 deletions packages/external_components_dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
external_components:
- components: [tesla_ble_vehicle, tesla_ble_listener]
source: github://yoziru/esphome-tesla-ble/components@main
4 changes: 0 additions & 4 deletions packages/listener.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
external_components:
- components: [ tesla_ble_listener ]
source: components

# Enable this to scan for BLE devices
tesla_ble_listener:
vin: !secret tesla_vin
10 changes: 10 additions & 0 deletions tesla-ble-dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
packages:
device_base: !include boards/esp32-generic.yml # modify this to match your board
base: !include packages/base.yml
common: !include packages/common.yml
client: !include packages/client.yml
# listener: !include packages/listener.yml # Uncomment this to scan find your VIN BLE MAC address
external_components: !include packages/external_components_dashboard.yml

dashboard_import:
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble-dashboard.yml
8 changes: 6 additions & 2 deletions tesla-ble-esp32-generic.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
packages:
base: !include packages/base.yml
device_base: !include boards/esp32-generic.yml
base: !include packages/base.yml
common: !include packages/common.yml
client: !include packages/client.yml
# listener: !include packages/listener.yml # Uncomment this to scan find your VIN BLE MAC address
external_components: !include packages/external_components.yml

dashboard_import:
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble-esp32-generic.yml
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble-dashboard.yml
8 changes: 6 additions & 2 deletions tesla-ble-m5stack-atoms3.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
packages:
base: !include packages/base.yml
device_base: !include boards/m5stack-atoms3.yml
base: !include packages/base.yml
common: !include packages/common.yml
client: !include packages/client.yml
# listener: !include packages/listener.yml # Uncomment this to scan find your VIN BLE MAC address
external_components: !include packages/external_components.yml

dashboard_import:
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble-m5stack-atoms3.yml
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble-dashboard.yml
8 changes: 6 additions & 2 deletions tesla-ble-m5stack-nanoc6.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
packages:
base: !include packages/base.yml
device_base: !include boards/m5stack-nanoc6.yml
base: !include packages/base.yml
common: !include packages/common.yml
client: !include packages/client.yml
# listener: !include packages/listener.yml # Uncomment this to scan find your VIN BLE MAC address
external_components: !include packages/external_components.yml

dashboard_import:
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble-m5stack-nanoc6.yml
package_import_url: github://yoziru/esphome-tesla-ble/tesla-ble-dashboard.yml

0 comments on commit e956422

Please sign in to comment.