[Release} ESP8266 DHT22 Temp and Humidity Sensor ALPHA

esp8266

(Bigfoot1970) #1

Hi folks, first a disclaimer, I’m not a programmer, this was the result of a fevered week in bed with Bronchitis. Oh and it’s a terrible cludge, but it does what I need, which is measure temp and humidity on my porch and show it in the App. This is based on the work of C_Hobbs, Mike Barela & Statusbits.

I had a NodeMCU leftover from replicating C_Hobbs “Absolute Simplest ESP8266 SMartBlinds” so I used it to implement this project ESP8266 Temperature / Humidity Webserver which return temp and humidity as a web string. After some thought I realized I could alter the web string to mimic the output of the CT30 RadioThermostat and use Statusbits RadioThermostat Device Handler to pull it into Smartthings. And much to my wondering eyes did appear, the temp and humidity on my porch. So I messed around with the device handler and trimmed what I didn’t need and added a Heat Index calc to the whole thing for fun (valid above 80 F only) and that gave me everything I wanted. If anyone who’s code I mangled objects, I’ll remove this post. Enjoy

(CODE) https://github.com/bigfoot1970/DHT22-Smartthings


(Kenneth C) #2

Wow… really? You’re my hero!

I’ve been meaning to build one of those Adafruit projects to monitor my humidor. :slight_smile: Life’s been getting in the way, but this might be the motivation to bump it up a few notches on the priority list.

So did you use a normal NodeMCU or their Huzzah boards?


(Bigfoot1970) #3

I used this Nodemcu nodemcu, and I flashed it with the same firmware that C_Hobbs used on his blinds project.


(Hector Mendes) #4

This is pretty awesome!

I just tested and it works great! However for my use, I deleted the Heat Index section since it is meant to be used inside. For those wondering, deleting this section will get rid of the Heat Index icon:

            valueTile("heatingSetpoint", "device.heatingSetpoint", inactiveLabel:false) {
  
  
                state "default", label:'HI ${currentValue}°', unit:"F",
  
  
                    backgroundColors:[
  
  
                        [value: 31, color: "#153591"],
  
  
                        [value: 44, color: "#1e9cbb"],
  
  
                        [value: 59, color: "#90d2a7"],
  
  
                        [value: 74, color: "#44b621"],
  
  
                        [value: 84, color: "#f1d801"],
  
  
                        [value: 95, color: "#d04e00"],
  
  
                        [value: 96, color: "#bc2323"]
  
  
                    ]
  
  
            }

Also, did you try using this with SmartTiles? Temperature seems to work fine but not Humidity? Any ideas?