Giter VIP home page Giter VIP logo

homie-dht's Introduction

homie-dht

MQTT Humidity, Temperature and Air Preasure Sensor Node based on HOMIE. Support DHT11, DHT22, BME280, SHT30 and SHT31. Optional use esp's deep sleep mode

Features

  • Configurable Sensor Type
  • Configurable MQTT Publish Interval
  • Configurable Deep Sleep
  • Configurable threashold to force acyclic sensor reading / publishing (publishKey and publishValue)
  • React on $broadcast/wakeup -> seconds, to prevent from going to deep sleep till seconds are gone
  • OTA Support (tested with jpmens/homie-ota)
  • Generic Sensor Interface to ease implementation of further sensor types

You can update the configuration on-the-fly by publishing incremental JSON updates to $implementation/config/set e.g. homie-dht/xxxxxxxx/$implementation/config/set -> {"settings":{"type":"sht31"}} You can force a factory reset by publishing homie-dht/xxxxxxxx/$implementation/reset -> true Keep the home-dht awake till seconds are gone, e.g. homie-dht/$broadcast/wakeup -> 5

MQTT Topics

  • temperature °C
  • heat index °C
  • dew point °C
  • relative humidtiy
  • absolute humidity
  • air preasure (if provided by the sensor)
  • health state (sensor reading errors)
  • homie internals

Supported Sensors

  • DHT11
  • DHT22
  • BME280
  • SHT30
  • SHT31

Dependencies

Aplications

homie-dht volkszaehler integration (Node-RED)

https://gist.github.com/beckenc/108d9656ee4375fc95cfc0e9cd1eab0b

homie-dht's People

Contributors

beckenc avatar mtjoker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

magicgis mtjoker

homie-dht's Issues

If sensor fails in running system, endless loop occurs

If the sensor fails during normal system operation (tested with BME280), an endless loop occurs during BME280_Impl::readSensor(). Here, bme.takeForcedMeasurement() is called, which loops forever until a successful readout.
This kills the system, as it seems like no watchdog is triggered (maybe disabled in Homie?).

No data published with deepSleep = false?

My homie-dht is behaving somewhat oddly.

With this config:
"settings":{"type":"sht30","publishInterval":60,"publishForceKey":"temperature","publishForceVal":0.0,"deepSleep":false}

I seem to get no sensor data published, although I do get some heartbeat stuff from the device:

homie/homie-dht4/$stats/signal 72
homie/homie-dht4/$stats/uptime 5819

As a further twist, if I publish a config update:

mosquitto_pub -r -t 'homie/homie-dht4/$implementation/config/set' -f ./homie-dht4

I get temps published again, but if I delete the topic:

mosquitto_pub -r -t homie/homie-dht4/$implementation/config/set -n

the updates stop. (I hope the retained config message doesn't cause constant SPIFFs rewrites of the config?)

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.