Code Monkey home page Code Monkey logo

homie-node-collection's Introduction

Homie Node Collection

License: MIT

Collection of nodes and examples for Homie. The nodes are designed as independent classes, so they can work standalone. For instance you can easily wire up a firmware for a Sonoff Relay by combining a ButtonNode with a RelayNode.

The software is based on Homie (v2.0) and is developed using PlatformIO

ButtonNode

A pushbutton that just detects a single button press. An optional callback can be triggered by the button press event. The button press is not reported back via MQTT. ToDo: detect multiple button presses and report them back.

ContactNode

A contact that reports its open state (true|false) via MQTT. An optional callback can be triggered by the state change event.

RelayNode

A relay that can be set on (true|false) via MQTT message. An optional LED GPIO pin can be passed in the constructor. This pin will be set high/low synchronous to the relay.

BME280Node

A node for a Bosch BME280 I2C temperature/humidity/pressure sensor. Reports the three values back via MQTT. Advertises the values as:

  • homie/<device-id>/<sensor-name>/temperature
  • homie/<device-id>/<sensor-name>/humidity
  • homie/<device-id>/<sensor-name>/pressure

The units are advertised as subtopics:

  • homie/<device-id>/<sensor-name>/temperature/unit
  • homie/<device-id>/<sensor-name>/humidity/unit
  • homie/<device-id>/<sensor-name>/pressure/unit

DHT22Node

A node for a DHT22 temperature/humidity sensor. Reports the two values back via MQTT. Advertises the values as:

  • homie/<device-id>/<sensor-name>/temperature
  • homie/<device-id>/<sensor-name>/humidity

The units are advertised as subtopics:

  • homie/<device-id>/<sensor-name>/temperature/unit
  • homie/<device-id>/<sensor-name>/humidity/unit

homie-node-collection's People

Contributors

luebbe avatar

Watchers

 avatar  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.