mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
Vehicle beacons: LED dark except a boot blink and while the gate's home beacon is seen, Wi-Fi + OTA on a 3 s button hold, 9 dBm, esp32_ble without the empty advertisement; gate: own home beacon, scan window 160/320 ms
This commit is contained in:
1 parent
6591b47c01
commit
0da0cd1544
7 files changed
+114
-101
No files matched your search
@@ -34,6 +34,11 @@ esp32:
|
||||
flash_chip: gd
|
||||
type: esp-idf
|
||||
|
||||
# iBeacon on air from boot without the empty standard advertisement every 10 s
|
||||
external_components:
|
||||
- source: github://randybb/esphome-components
|
||||
components: [esp32_ble]
|
||||
|
||||
packages:
|
||||
common: !include common/common.yaml
|
||||
ipv6_only: !include common/ipv6_only.yaml
|
||||
@@ -107,8 +112,20 @@ globals:
|
||||
|
||||
esp32_ble_tracker:
|
||||
id: ${device}_ble_tracker
|
||||
# window 160/320 ms (default 30): hears the vehicle beacons sooner, half the airtime stays for Wi-Fi
|
||||
scan_parameters:
|
||||
duration: 1min
|
||||
interval: 320ms
|
||||
window: 160ms
|
||||
active: false
|
||||
|
||||
# home beacon: the vehicles light their LED while they see it
|
||||
esp32_ble_beacon:
|
||||
type: iBeacon
|
||||
uuid: !secret ble_beacon_gate_uuid
|
||||
min_interval: 1s
|
||||
max_interval: 1s
|
||||
tx_power: 9dBm
|
||||
|
||||
binary_sensor:
|
||||
- platform: ble_presence
|
||||
|
||||
Reference in new issue
Block a user