Libs utility framework to build your Homie nodes
YAHNC libs is born (and maybe will dead) as University project. It can be used as development base (ie utility/framework) on which build new sensors and/or actuator following the amazing Homie for ESP8266/ESP32 philosophy.
YAHNC can be used with PlatformIO.
- Add this repository to your
lib_deps
inplatformio.ini
:
lib_deps = https://github.com/elbowz/yahnc.git#master, ...
- include the libraries you need in your code:
#include <BME280Node.hpp>
#include <SwitchNode.hpp>
#include <BinarySensorNode.hpp>
#include <ButtonNode.hpp>
There is no documentation at this time. So you can view:
- the commented examples
- the class diagram
- and of course the
src
folder.
Some didactic examples to better understand how to use it:
- THUMBL-P - Temperature HUmidity Motion Buzzer Light - Pressure (full device)
- SWECS - Switch External Control & State (full device)
- BME280Node - Sensor node class for the BME280. Describe 3 different ways to aggregate multiple sensors in a node. (used in THUMBL-P)
Distributed under the MIT License. See LICENSE for more information.
- Homie for ESP8266 / ESP32
- Homie Node Collection
- Adafruit BME280 Library
- BME280 - Heat index calculation