BLE Client Switch

The ble_client component is a switch platform that is used to enable and disable a ble_client. This has several uses, such as minimizing battery usage or for allowing other clients (Eg phone apps) to connect to the device.

For more information on BLE services and characteristics, see BLE Client.

Warning

The BLE software stack on the ESP32 consumes a significant amount of RAM on the device.

Crashes are likely to occur if you include too many additional components in your device’s configuration. Memory-intensive components such as Voice Assistant and other audio components are most likely to cause issues.

esp32_ble_tracker:

ble_client:
  - mac_address: FF:FF:20:00:0F:15
    id: itag_black

switch:
  - platform: ble_client
    ble_client_id: itag_black
    name: "Enable iTag"

Configuration variables:

  • ble_client_id (Required, ID): ID of the associated BLE client.

  • id (Optional, ID): The ID to use for code generation, and for reference by dependent components.

  • All other options from Switch.

See Also