Code Monkey home page Code Monkey logo

bthomev2-esp32-example's Introduction

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.

bthomev2-esp32-example's People

Contributors

chreece avatar countrysideboy avatar bvweerd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.