rvdbreemen / OTGW-firmware

A ESP8266 devkit firmware for the Nodoshop version of the Opentherm Gateway (OTGW)
MIT License
145 stars 34 forks source link

Feature Request - Add DHT22 support #63

Open Marcello1970 opened 2 years ago

Marcello1970 commented 2 years ago

it is possible to choose between a DS18B20 or a DHT22 on the GPIO connection. In addition to the temperature, you can also measure the humidity in the room. That would be great.

rvdbreemen commented 2 years ago

@Marcello1970 interesting idea, that would require some more coding. I have no experience with a DHT22 and the DS18B20 was developed by @sjors a while back. I am sure it is something that could be build.

Roos-AID commented 2 years ago

I looked at this when making changes for the MQTT HA autodiscovery for sensors. The key difference is that DB18B20 class of devices is using onewire protocol, allowing multiple sensors on a GPIO pin. The DHT22 requires a GPIO pin for each device individually.
So, if we restrict it to one DHT22, I can see if I can implement this.