esphome-docs/esphomeyaml/components/esp32_ble_tracker.rst

60 lines
2.1 KiB
ReStructuredText
Raw Normal View History

2018-06-13 22:38:49 +02:00
ESP32 Bluetooth Low Energy Tracker Hub
======================================
2018-05-14 21:15:49 +02:00
2018-06-13 22:38:49 +02:00
The ``esp32_ble_tracker`` component creates a global hub so that you can track bluetooth low
2018-05-14 21:15:49 +02:00
energy devices using your ESP32 node.
See `Setting up devices </esphomeyaml/components/binary_sensor/esp32_ble.html#setting-up-devices>`__
for information on how you can find out the MAC address of a device and track it using esphomelib.
.. code:: yaml
# Example configuration entry
2018-06-13 22:38:49 +02:00
esp32_ble_tracker:
2018-05-14 21:15:49 +02:00
scan_interval: 300s
binary_sensor:
2018-06-13 22:38:49 +02:00
- platform: esp32_ble_tracker
2018-05-14 21:15:49 +02:00
mac_address: AC:37:43:77:5F:4C
name: "ESP32 BLE Tracker Google Home Mini"
sensor:
- platform: ble_rssi
mac_address: AC:37:43:77:5F:4C
name: "BLE Google Home Mini RSSI value"
- platform: xiaomi_miflora
mac_address: 94:2B:FF:5C:91:61
temperature:
name: "Xiaomi MiFlora Temperature"
moisture:
name: "Xiaomi MiFlora Moisture"
illuminance:
name: "Xiaomi MiFlora Illuminance"
conductivity:
name: "Xiaomi MiFlora Soil Conductivity"
battery_level:
name: "Xiaomi MiFlora Battery Level"
- platform: xiaomi_mijia
mac_address: 7A:80:8E:19:36:BA
temperature:
name: "Xiaomi MiJia Temperature"
humidity:
name: "Xiaomi MiJia Humidity"
battery_level:
name: "Xiaomi MiJia Battery Level"
2018-05-14 21:15:49 +02:00
Configuration variables:
2018-08-24 22:44:01 +02:00
------------------------
2018-05-14 21:15:49 +02:00
2018-06-01 18:10:00 +02:00
- **scan_interval** (*Optional*, :ref:`config-time`): The length of each scan.
If a device is not found within this time window, it will be marked as not present. Defaults to 300s.
2018-06-06 09:22:35 +02:00
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID for this ESP32 BLE Hub.
2018-05-14 21:15:49 +02:00
2018-06-01 18:10:00 +02:00
See Also
2018-08-24 22:44:01 +02:00
--------
2018-05-14 21:15:49 +02:00
2018-06-13 22:38:49 +02:00
- :doc:`binary_sensor/esp32_ble_tracker`
2018-06-01 18:10:00 +02:00
- :doc:`API Reference </api/misc/esp32_ble_tracker>`
2018-08-24 22:44:01 +02:00
- `ESP32 BLE for Arduino <https://github.com/nkolban/ESP32_BLE_Arduino>`__ by `Neil Kolban <https://github.com/nkolban>`__.
2018-06-13 22:38:49 +02:00
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/esp32_ble_tracker.rst>`__