Hello everyone!
I want to step up my home automation game, especially when it comes to air quality.
What I want to do is the following:
measure humidity and temperature
measure pollen in my room
measure CO2
My plan is to make my room optimized for my allergy. So whenever humidity is really low, the humidifier starts. When pollen (or any other small particles) is too high, the air cleaner starts. When CO2 is too high, I want to get a notification on my phone. That should be easy to do and I also know how.
My problem at the moment is: I googled a lot, searched a lot in the forum, but there seems to be lots of new sensors being released regularly.
Hi I use a nodemcu in each room with an AM2302 to measure temp and humidity. Also connected are ccs811 sensors that measure co2 and volatile compounds. I don’t measure pollen directly however.
The nodemcu is easy to configure through ESPhome and will automatically be detected by Hassio.
That is my on a budget way. all of the required components I obtained for about £15 per room.
Thank you! I was arguing whether to buy a fully working system (like the ones Xiaomi offer, but it seems like they are not really well calibrated based on reviews) or do it the DIY way.
I’m just getting into all of this, so I’m not too familiar with this.
But I need those components only for one room. Is it possible to do it without the nodemcu and use a breadboard only? Or would you suggest buying a nodemcu in that case too?
I would recommend the nodemcu. Its easy to configure and manage from right within HA.
ESPhome is excellently documented and supported.
A breadboard is for testing and does not have wifi. A nodemcu has either an esp8266 chip or the more powerfull esp32 and will connect to your wifi. All it needs is a microusb power supply so it can be autonomous from the the hub (HA) from the measurements you will be able to create the automatons you require.
Thanks a lot! That really helps to understand it.
Some more questions though:
Can you link me where to buy the CCS811 in a cheap way? Most offers I find are 20€+
Based on a google search (and what I can’t find in the ESPhome page), how do I connect the nodemcu with the sensors? Most tutorials use a breadboard and jump wires, is that a good way?
You can find the CCS811 on ebay. I buy most of my sensors from there or aliexpress or banggood. Prices will always vary but I got mine for £8.00 from ebay.
To connect any sensor you ned to look at the example. It will help greatly if you have the nodemcu with you and a diagram of the pins. which you can find here
as a graphical representation. These are for the esp8266 version. the esp32 version may differ.
Once you see that it will help. Also the components you are going to add will be (mostly) 3.3v so the power must come from the appropriate pin. GRD is just ground there are several of those. Then the data pin (for the AM2302 is D2.
As you are starting out. I would recommend reading the esphome page and each sensor. this will start you off. Then for each sensor you buy find the schematic. It will tell which pins do what.
Hope that helps?
Perfect!
I think I got it now, just waiting for the sensors to test it out.
One more thing: ESPHome shows the Adafruit CCS811 sensor - that’s the one that’s mostly about 30€. There’s also a purple CCS811 - is that the same one? Can I just order that one for one third of the price of the Adafruit one?
It is similar. Probably a copy but the config is similar. I have the purple ones and will help you when it arrives. There are not too many hoops to jump.
That was the fix indeed! So simple, thanks a lot. Now I’m trying to get the baseline of it and then I got my system running. Thank you again for your help! I really learned a lot