BTHome sensor template

Browse source code on GitHub

Overview

This code sample provides a template for implementing a BTHome sensor.

Requirements

  • A board with Bluetooth LE support

  • A BTHome compatible listener, for example Home Assistant with the BTHome integration running.

Building and Running

Build and flash the sample as follows, replacing <board> with your target board:

west build -b <board> samples/bluetooth/bthome_sensor_template
west flash

When the sample is running, navigate to Devices & Services under settings in Home Assistant. There you will be asked to configure the BTHome sensor if everything went well.

See also

Bluetooth APIs