Build a network of ("edge") humidity sensors using Raspberry Pis with SenseHats and additional cheaper sensors

For our house, I want to make sure I can track the effectiveness of regularly ventilating the rooms by adding humidity sensors and tracking the measurements over time.

We've already started with this little project:

https://github.com/benediktwerner/humidity-logger

Goal for this Hackweek

The setup we built over the holidays works just fine, but there are a few practical issues and a few stretch goals I'd have:

  • With a Raspberry Pi plus the Sense Hat, a single sensor is pretty expensive and over-specced. Using a Raspberry Pi as the master is ok (especially as I already have two with two Sense Hats), but I'd like to add extra sensors that can be connected wirelessly directly to one of the Raspberry Pis using Bluetooth or WiFi. Those could either be ready to go or a combination of "bare" sensor and a cheap board like the Raspberry Pico W or a similar board (e.g., based on the ESP32).

  • Currently, there's only a Grafana dashboard with a "forever" history. Would love to add extra reporting, e.g., sending alerts when certain humidity thresholds are exceeded, archiving older data.

  • None of the setup is "SUSEfied" (using SUSE Linux images, k3s, Rancher, ...). I'd love to change that, so that the setup can be used as a showcase for SUSE Edge. The stretch goal would be to make the SUSE version at least as easy to use as the current Raspberry Pi OS setup.

I'm looking for contributors who want to hack on either the hardware part (building an affordable Bluetooth or WiFi humidity/temperature sensor from components) or the SUSEfied software stack or both.

The software stack has many areas to work on, from building out-of-the box containers that can be deployed from Rancher to improving the Grafana dashboards.

Resources

This project is part of:

Hack Week 22

Activity

  • 11 days ago: maritawerner liked this project.
  • 14 days ago: dancermak liked this project.
  • 18 days ago: gpathak liked this project.
  • 18 days ago: gpathak started this project.
  • 19 days ago: mbrugger liked this project.
  • 26 days ago: aschnell liked this project.
  • 27 days ago: joachimwerner added keyword "containers" to this project.
  • 27 days ago: joachimwerner added keyword "helm" to this project.
  • 27 days ago: joachimwerner added keyword "microcontroller" to this project.
  • 27 days ago: joachimwerner added keyword "edge" to this project.
  • 27 days ago: joachimwerner added keyword "elemental" to this project.
  • 27 days ago: joachimwerner added keyword "sensors" to this project.
  • 27 days ago: joachimwerner added keyword "grafana" to this project.
  • 27 days ago: joachimwerner added keyword "influxdb" to this project.
  • 27 days ago: joachimwerner added keyword "raspberrypi" to this project.
  • 27 days ago: joachimwerner added keyword "esp32" to this project.
  • 27 days ago: joachimwerner added keyword "microos" to this project.
  • 27 days ago: joachimwerner added keyword "k3s" to this project.
  • 27 days ago: joachimwerner added keyword "rancher" to this project.
  • 28 days ago: joachimwerner liked this project.
  • 28 days ago: joachimwerner originated this project.

  • Comments

    • idefx
      24 days ago by idefx | Reply

      Hello! Have you check on the Home Assistant and ESPHome projects?

      I run Home Assistant on a k3s cluster, with 2 raspberry pi 4 and 2 intel low-power (a VM inside a NAS and a NUC). Everything is on SLE Micro, and I use Rancher for the management of the cluster, and longhorn for persistent data. For the sensor part, I have a couple of Arduino m5 atoms lite. They support a variety of sensors, and with ESPHome, it is super easy to connect them to Home Assistant. Then you can design automations, mobile notification, etc. from Home Assistant, and even plug it to other services so you get a phone call if something goes wrong, for example.

      Don't hesitate to reach out to me if you want to discuss this!

    • joachimwerner
      21 days ago by joachimwerner | Reply

      Thanks for the great pointers! We started off with a much smaller scope (no home automation, really just data gathering and visualisation), but it makes perfect sense to think of it in the context of home assistant for the future (e.g., so that a smart thermostat automatically shuts down the heating in the room when it's being ventilated). Will certainly get back to you with some questions.

    • joachimwerner
      21 days ago by joachimwerner | Reply

      Found this on how to get the Sense Hat to work on openSUSE: https://community.ibm.com/community/user/cloud/blogs/alexei-karve/2022/05/08/microshift-15

    • gpathak
      18 days ago by gpathak | Reply

      Hi @joachimwerner For adding extra sensors, I found out that it can be done with DHT22 and ESP8266. Some information about interfacing DHT22 with ESP8266 can be found here: Getting Started With the ESP8266 and DHT22 Sensor

    • bigironman
      14 days ago by bigironman | Reply

      An alternative solution might be using a Raspberry Pi Pico W with MicroPython and BME280 sensor (temperature, humidity, pressure). It is easy to program and you can integrate it into nearly everything via Wifi. I'm using it in combination with Home Assistant and MQTT.

    Similar Projects

    Bring to life the Studio Kiosk in Frankenstrasse by digitaltomm

    [comment]: # (Please use the project descriptio...


    Open Source Firmware for EV chargers using the ESP32 Chip (Autoaid / EN-Plus / EVSEDO) by bschmidt

    [comment]: # (Please use the project descriptio...


    Replace Star Adventurer controller with ESP32 by nadvornik

    [comment]: # (Please use the project descriptio...


    openSUSE MicroOS based NAS by dmach

    [comment]: # (Please use the project descriptio...


    Learn about kubernetes by creating a k3s HA setup by rsimai

    This is mostly a learning activity for myself, ...


    Hack on project MONAI (Medical Open Network for Artificial Intelligence) by jordimassaguerpla

    Project Description

    MONAI is a set of o...


    Learn about kubernetes by creating a k3s HA setup by rsimai

    This is mostly a learning activity for myself, ...


    Real-time container runtime support by a_faerber

    [comment]: # (Please use the project descriptio...


    K3S Control Planes as a service by ademicev0

    [comment]: # (Please use the project descriptio...


    A CLI for Harvester by mohamed.belgaied

    [comment]: # Harvester does not officially come...


    K3S Control Planes as a service by ademicev0

    [comment]: # (Please use the project descriptio...


    Rancher QA Blog Space by jamcghee

    [comment]: # (Please use the project descriptio...


    image-tools: simple tool for mirror/save/load container images & KDM and chart image list generator. by StarryWang

    [comment]: # (Please use the project descriptio...


    Rancher Token Revoker by mbolot

    [comment]: # (Please use the project descriptio...


    Automated Lifecycle Management at the Edge by bkampen

    Project Description

    We have a lot of solu...


    Deploy Uyuni proxy using Elemental and Fleet by cbosdonnat

    Project Description

    Now that Uyuni proxy ...


    Encrypted volumes in elemental-toolkit by flonnegren

    [comment]: # (Please use the project descriptio...


    Visualization of historical sar(1) archives by ggherdovich

    Project Description

    The sar(1) tool, fr...


    OpenQA test list views improvement by mdati

    Project Description

    Create views of **Ope...


    Create tool to analyze supportconfig to spot common SUSE Manager issues by cbosdonnat

    [comment]: # (Please use the project descriptio...


    Image generation AI in container using Radeon GPU by tjyrinki_suse

    [comment]: # (Please use the project descriptio...


    Building a CNF solution for Edge environment by lizhang

    Project Description

    Network managemen...


    image-tools: simple tool for mirror/save/load container images & KDM and chart image list generator. by StarryWang

    [comment]: # (Please use the project descriptio...


    Samba in Kubernetes (for openSUSE) by dmulder

    [comment]: # (Please use the project descriptio...


    Containerized git server/client for playground and tutorials by mberti

    [comment]: # (Please use the project descriptio...


    Hack on project MONAI (Medical Open Network for Artificial Intelligence) by jordimassaguerpla

    Project Description

    MONAI is a set of o...


    Rancher Token Revoker by mbolot

    [comment]: # (Please use the project descriptio...


    Building a CNF solution for Edge environment by lizhang

    Project Description

    Network managemen...


    K3S Control Planes as a service by ademicev0

    [comment]: # (Please use the project descriptio...


    Automated Lifecycle Management at the Edge by bkampen

    Project Description

    We have a lot of solu...