homesensor
==========

[![Software Build](https://github.com/langchr86/homesensor/workflows/software_build/badge.svg)](https://github.com/langchr86/homesensor/actions?query=workflow%3Asoftware_build)

Air quality sensor designed for battery operation and central data collection in HomeAssistant.



Introduction
------------

This project contains all things needed to setup e.g. a sensor grid for monitoring
temperature, humidity and CO2-levels in several rooms in your home and maybe outside.

The sensors are built from scratch with an `ESP32` as compute unit
and a sensirion `SHTC3` for temperature and humidity monitoring.
For additional CO2-level measurement a sensirion `SCD30` can be used.
The software is based on `platform-io` and is therefore easy to build and deploy.

The sensor data is sent via W-LAN and MQTT protocol to `home assistant` on the backend server.
Home assistant is at first place a home automation system.
But one part of automation is to collect data from sensors.
We therefore use this mechanisms and the corresponding Web-UI
to have a flexible way to store and visualize the collected data.

A very similar but more generic project is [ESPHome](https://esphome.io/)



Getting started
---------------

The whole project consists of the following parts:

* [Backend Software](backend/)
* [Hardware](hardware/)
* [Device Software](software/)

See the linked sub-pages for further instructions.



Usage
-----

<p float="left">
<img src="images/screenshot_01.png" width="30%">
<img src="images/screenshot_02.png" width="30%">
<img src="images/screenshot_03.png" width="30%">
</p>


### Indoor - SCD30

<p float="left">
<img src="hardware/images/scd30_12_placed.jpg" width="30%">
<img src="hardware/images/scd30_15_case_closed.jpg" width="30%">
</p>


### Outdoor - SHTC3

<p float="left">
<img src="hardware/case_outdoor/images/Entwurf-1.1a.png" width="40%">
<img src="hardware/case_outdoor/images/Entwurf-1.1c.png" width="15%">
<img src="hardware/case_outdoor/images/Entwurf-1.1e.png" width="40%">
</p>



License
-------

MIT



Versioning
----------

There exists no version numbers, releases, tags or branches.
The master should be considered the current stable release.
All other existing branches are feature/development branches and are considered unstable.



Author Information
------------------

Christian Lang

[lang.chr86@gmail.com](mailto:lang.chr86@gmail.com)



Credits
-------

* 3D printed Case: [langdesign.ch](https://langdesign.ch/)
