Skip to content

Latest commit

 

History

94 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PRs are welcome but I'm no longer maintaining this example

💙 Enjoying this hobby project? Send a voluntary thank-you via Ko-fi.

BTHomeV2 ESP32 Example

V2 of the example, simplified for least input

An BTHome v2 example. Make your DIY sensor, BTHome compatible.

Thanks @countrysideboy for his contributions on Encryption and cleanup code, the most of the code is from his side!

This is an example for a DIY BTHome v2 sensor.

The original code is from: https://github.com/TheDigital1/ESP32_BTHome

The header file contains human readable variables for the hex Object ids.

Sending entities to Home Assistant is simplified.

  1. Download the files from Arduino Code folder.

  2. Edit the BTHome.ino in your favourite Arduino IDE

  3. Change the DEVICE_NAME to the one that should be recognised in BTHome integration

  4. Change the BIND_KEY with your preference or remove it along with the #define ENABLE_ENCRYPT for no encryption

  5. Add the object id of the individual entities and the state of it as in the examples

  6. Compile and upload to ESP32

DONE!

Read the comments in the code for more info. For the object ids consider using the variables from BTHome.h instead.

❤️ Voluntary support

This is a private hobby project maintained in my free time and provided independently of contributions.

If you enjoy the project and would like to send me a voluntary personal thank-you, you can use Ko-fi.

Contributions are completely optional and do not buy or guarantee features, support, development work, early access, priority, or any other service. This is not a charitable donation and no donation receipt is issued.

About

An BTHome v2 example with encryption for ESP32

Resources

Stars

78 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages