feat: add ESPHome

This commit is contained in:
JJGadgets
2025-07-19 22:12:28 +08:00
parent 907fd39629
commit 255fc506da
2 changed files with 12 additions and 11 deletions

View File

@@ -33,14 +33,14 @@ api:
on_client_connected:
- esp32_ble_tracker.start_scan:
continuous: true
# Disable BLE tracking when there are no api connections live
on_client_disconnected:
if:
condition:
not:
api.connected:
then:
- esp32_ble_tracker.stop_scan:
# # Disable BLE tracking when there are no api connections live
# on_client_disconnected:
# if:
# condition:
# not:
# api.connected:
# then:
# - esp32_ble_tracker.stop_scan:
# Optimizations
logger:

View File

@@ -5,9 +5,10 @@ substitutions:
wifi:
domain: .esp.dhcp.internal
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
ssid: !secret wifi_ssid
password: !secret wifi_password
enable_btm: true
enable_rrm: true
sensor:
- platform: wifi_signal # Reports the WiFi signal strength in dB