Skip to content

Interface an TFA Dostmann CO2 Monitor with ESP8266

License

Notifications You must be signed in to change notification settings

EpicLPer/esp8266-co2monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266-co2monitor

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 configured MQTT topic.

It also implements Home Assistant Auto Discovery.

compiling

  • Rename settings.h.example to settings.h
  • Open up your arduino IDE
  • Edit the settings.h to match your setup
  • Upload the compiled result to your Wemos D1 Mini

wiring

Add a pin header to the existing PCB. Left to right: GND, Clock, Data, 5V:
PIN Header

Wire up your Wemos with 4 wires, connected to 5V, G, D2 and D1:
Wemos Wiring

Now connect your Wemos D1 mini to your co2 monitor:
Final Wiring

using

Since we're using WiFiManager, after flashing, the EPS8266 will open up a WiFi Hotspot to configure Wireless credentials. Just connect to it using a wifi-capable device and you should be automatically redirected to the configuration page.

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

  • Arduino/ESP8266

notes

Don't use D4 and D3, because it causes power-on issues with wemos d1 mini: https://www.forward.com.au/pfod/ESP8266/GPIOpins/index.html

About

Interface an TFA Dostmann CO2 Monitor with ESP8266

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%