update
This commit is contained in:
20
esphome/templates/bt_proxy.yaml
Normal file
20
esphome/templates/bt_proxy.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
esp32_ble_tracker:
|
||||
id: ble_tracker
|
||||
scan_parameters:
|
||||
continuous: false
|
||||
|
||||
bluetooth_proxy:
|
||||
active: true
|
||||
|
||||
|
||||
esphome:
|
||||
on_boot: #this is to avoid slow startup time because of BT and WiFi "interactions?" , check https://github.com/esphome/issues/issues/2941#issuecomment-1331851692
|
||||
priority: 250
|
||||
then:
|
||||
- wait_until:
|
||||
condition:
|
||||
wifi.connected:
|
||||
- lambda: >
|
||||
id(ble_tracker).set_scan_continuous(true);
|
||||
id(ble_tracker).start_scan();
|
||||
Reference in New Issue
Block a user