Meine Bluetooth Proxys auf ESP32 fallen immer wieder aus (Offline). Woran kann das liegen?
esphome:
name: bl-proxy-buero
friendly_name: BL Proxy Büro
esp32:
board: esp32dev
framework:
type: esp-idf
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
use_address: 192.168.178.65
ap:
ssid: "BL-Proxy-Buero Fallback"
captive_portal:
logger:
api:
ota:
- platform: esphome
bluetooth_proxy:
active: true
Hi,
evtl. zu viele BL Verbindungen?
Cheers Franky
Vielen Dank. Kann ich das irgendwo sehen bzw. etwas dagegen machen?
miami
4
Sehen geht über Einstellungen>Bluetooth:
1 „Gefällt mir“
Bei mir siehts so aus, nur die 3 Gardena Pumpen brauchen aktive Verbindungen, aber das immer nur für wenige Sekunden
Da ich einige davon habe, ist der Code bei mir in Modulen, hoffentlich verwirrt es nicht, vielleicht hilfts dir
substitutions:
name: p-bo-ble-shellyproxy
friendly_name: P-BO-BLE-ShellyProxy
packages:
hardware: !include "/config/_my/_esphome/packages/hardware/shellygen3mini.yaml"
diagnostic: !include "/config/_my/_esphome/packages/common/hadiagnostic.yaml"
bleproxy: !include "/config/_my/_esphome/packages/common/bluetoothproxy.yaml"
# Enable logging
logger:
baud_rate: 0
level: WARN
# Enable Home Assistant API
api:
encryption:
key: "**************************************************"
ota:
- platform: esphome
password: "**************************************************"
wifi:
min_auth_mode: WPA2
networks:
- ssid: !secret wifi_ssid_UGV2
password: !secret wifi_password_UGV2
hidden: True
shellygen3mini.yaml (ESP-IDF Options)
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
esp32:
variant: ESP32C3
flash_size: 8MB
partitions: "/config/_my/_esphome/partitions/shelly-bluetoothproxy.csv"
framework:
type: esp-idf
sdkconfig_options:
CONFIG_COMPILER_OPTIMIZATION_PERF: y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y
CONFIG_BT_GATTC_CACHE_NVS_FLASH: y
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"
CONFIG_WIFI_PROV_STA_FAST_SCAN: y
network:
enable_ipv6: false
bluetoothproxy.yaml
api:
on_client_connected:
- esp32_ble_tracker.start_scan:
continuous: true
on_client_disconnected:
- esp32_ble_tracker.stop_scan:
esp32_ble_tracker:
scan_parameters:
active: true
continuous: false
interval: 320ms
window: 120ms
duration: 60s
bluetooth_proxy:
active: true
cache_services: true
Funktioniert absolut schmerzfrei
1 „Gefällt mir“
das schaut gut aus, ich teste es mal. Danke Dir!