zephyr/samples/bluetooth/bthome_sensor_template
Keith Packard 1d5e644d12 samples, tests: Switch main return type from void to int
This applies the coccinelle script to another set of files:

   samples/bluetooth/bthome_sensor_template/src/main.c
   samples/boards/stm32/power_mgmt/standby_shutdown/src/main.c
   samples/drivers/smbus/src/main.c
   samples/drivers/virtualization/ivshmem/doorbell/src/ivshmem.c
   samples/fuel_gauge/max17048/src/main.c
   samples/hello_world/src/main.c
   samples/sensor/proximity_polling/src/main.c
   samples/subsys/logging/ble_backend/src/main.c
   tests/drivers/build_all/mfd/src/main.c

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-14 07:49:41 +09:00
..
src samples, tests: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
CMakeLists.txt samples: bluetooth: BTHome sensor template 2023-03-14 10:50:00 +01:00
prj.conf samples: bluetooth: BTHome sensor template 2023-03-14 10:50:00 +01:00
README.rst samples: bluetooth: BTHome sensor template 2023-03-14 10:50:00 +01:00

.. _bluetooth-bthome-sensor-template-sample:

Bluetooth: BTHome sensor template
#################################

Template for a `BTHome <https://bthome.io/>`_ sensor.

Requirements
************

* A board with BLE support
* A BTHome compatible listener, for example `Home Assistant <https://www.home-assistant.io/>`_ with the BTHome integration running.

Building and Running
********************

This sample can be found under :zephyr_file:`samples/bluetooth/bthome_sensor_template` in the Zephyr tree.

See :ref:`bluetooth samples section <bluetooth-samples>` for details.

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.