Skip to content

Commit

Permalink
Home Assistant auto discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Mar 22, 2020
1 parent 4249b40 commit 6f78d53
Show file tree
Hide file tree
Showing 13 changed files with 2,113 additions and 14 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

## description

Interface an TFA Dostmann CO2 Monitor with ESP8266 (in our example a WEMOS D1 Mini) to connect it to the "Internet of Things". It publishes the CO2 measurement and temperature to a configures MQTT topic.
Interface an TFA Dostmann CO2 Monitor with ESP8266 (in our example a WEMOS D1 Mini) to connect it to the "Internet of Things". It publishes the CO2 measurement and temperature to a configured MQTT topic.

It also implements [Home Assistant Auto Discovery](https://www.home-assistant.io/docs/mqtt/discovery/).

## compiling

* Rename settings.h.example to settings.h
* Open up your arduino IDE
* Configure your OTA-Settings, MQTT Topics etc. in the settings.h file
* Edit the settings.h to match your setup
* Upload the compiled result to your Wemos D1 Mini

## wiring
Expand Down Expand Up @@ -37,11 +39,12 @@ Since we're using [WiFiManager](https://github.com/tzapu/WiFiManager), after fla
The ESP8266 will also default to AP mode if the configured wifi is unavailable.
You might want to set a password for the AP mode in your settings.h

If `USE_HA_AUTODISCOVERY` is set and mqtt is configured correctly,
you should find a new device with CO2 + Temperature entities in your Home Assistant installations devices section.

## dependencies

* PubSubClient
* Arduino/ESP8266
* tzapu/WiFiManager

## notes

Expand Down
22 changes: 22 additions & 0 deletions dep/WiFiManager-0.15.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 tzapu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Loading

0 comments on commit 6f78d53

Please sign in to comment.