2022-05-11 16:41:13 +10:00
|
|
|
external_components:
|
|
|
|
# - source: github://myhomeiot/esphome-components # ble_gateway
|
|
|
|
- source: github://ilarrain/esphome-components # ble_gateway fork with discovery option
|
|
|
|
|
|
|
|
esp32_ble_tracker:
|
|
|
|
scan_parameters:
|
|
|
|
active: false
|
|
|
|
|
2023-04-25 07:36:58 +10:00
|
|
|
bluetooth_proxy:
|
|
|
|
|
2022-05-11 16:41:13 +10:00
|
|
|
ble_gateway:
|
|
|
|
id: blegateway
|
|
|
|
discovery: true
|
|
|
|
on_ble_advertise:
|
|
|
|
then:
|
|
|
|
homeassistant.event:
|
|
|
|
event: esphome.on_ble_advertise
|
|
|
|
data:
|
|
|
|
packet: !lambda return packet;
|
|
|
|
|
|
|
|
text_sensor:
|
|
|
|
- platform: homeassistant
|
|
|
|
id: ble_gateway_devices
|
|
|
|
entity_id: binary_sensor.ble_gateway
|
|
|
|
attribute: devices
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
lambda: id(blegateway).set_devices(x);
|