bruvv / LILYGO-T-Higrow-Esphome

GNU General Public License v2.0
30 stars 14 forks source link

Add DHT12 sensor support #19

Closed P1X3L8 closed 1 month ago

P1X3L8 commented 10 months ago

All my T-Higrow boards use a DHT12 instead of the DHT11. After calibration, the values returned vary considerably and are unreliable for monitoring. Not sure if the DHT12 uses I2C instead of GPIO.

bruvv commented 10 months ago

I fixed this issue I think, can you test the new firmware?

pando85 commented 4 months ago

For me it doesn't work. It detects it as DHT11.

DHT12 seems a different platform: https://esphome.io/components/sensor/dht12.html but it doesn't work.

P1X3L8 commented 4 months ago

Same for me, detects as DHT11

bruvv commented 1 month ago

Sorry for the late reply, I added dht12: https://github.com/bruvv/LILYGO-T-Higrow-Esphome/blob/main/LILYGO-T-Higrow-ESP32.yaml#L113 but I do not that sensor so can any of you guys test it?

P1X3L8 commented 1 month ago

bruvv no worries. Your changes won't work. I tried fixing this myself some time ago and found that the esphome DHT12 platform doesn't support 1-wire mode. You have to use DHT11 platform with the DHT12 sensor. This isn't ideal and the accuracy/reliability is poor. I've given up on these boards for now and am looking for another solution.

-PiXEL8