Skip to content

osaether/bthome_temp_sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BTHome temperature sensor

This application implements a temperature sensor using the Texas Instruments TMP112 or the Maxim DS18B20 temperature sensors. It advertises in the BTHome format.

The sensor is configured to advertise every 1 seconds, and to send a notification with the current temperature. The default sensor is the TMP112, but it can be changed to the DS18B20 by selecting the CONFIG_SENSOR_DS18B20 Kconfig option.

Requirements

  • A board with one of these sensors built in to its devicetree, or a devicetree overlay with such a node added. An overlay file for the nRF52840DK is provided in the boards folder. For information on how to connect and use these sensors see the TMP112 and DS18B20 samples in the Zephyr Project
  • A BTHome compatible listener, for example Home Assistant with the BTHome integration running.

Building

You need the nRF Connect SDK to build this sample.

Clone this repo under the samples folder in the nRF Connect SDK. To build for the nRF52840 DK and the DS18B20 sensor run this west build command:

west build -b nrf52840dk_nrf52840 -- -DCONFIG_SENSOR_DS18B20=y

and to build for the nRF52840 DK and the TMP112 sensor run this west build command:

west build -b nrf52840dk_nrf52840 -- -DCONFIG_SENSOR_TMP112=y

About

BTHome temperature sensor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published