Smart Thermostat is now a legacy project › Forums › English support forum › Relay Box › Reply To: Relay Box
Hi,
I changed the code to a specific ESP/DHT library. https://github.com/beegee-tokyo/DHTesp
– Added time stamp logging to the serial port.
– Scaled down the CPU to 160Mhz instead of 240Mhz (line 57; Change RTC_CPU_FREQ_160M to RTC_CPU_FREQ_240M etc.. )
for lower power consumption and heat.
– Added the error status in the logging header, and a status drop when it fails.
– Auto detect Sensor type, or manual selection for DHT11, DHT22, AM2302, RHT03.
Things I could improve:
– Fahrenheit <-> Celsius conversion is built in the library and could be simplified.
– Maybe multiple sensors on a second webserver port?
– Code cleanup
Some features I would like to look in for feasibility if time permits 🙂
– Deep sleep by using one Sensor collector (for example the ESP32_RELAY)
Send the Sensor data to the collector by low power BT or WIFI.
– Designing a thermostat head to control separate radiators.
And of course you can use my code 🙂
Let me know if you can use any of the code.
Greetz,
David