ESP8266_DTH11_Umidity_Temp_Pot_Control
In this Flow I have tried to make a smart socket, using an ESP8266-12E, DHT11 sensor, potentiometer 10K, one SSR, or relay, or other power interface device.
My idea is, if the temperature determined by the potentiometer that would be the setpoint, exceeds that determined by the user, the socket is energized, so, what is connected to this socket will connect, for example a fan.
In this way you can determine that depending on the ambient temperature, an outlet switches on or off a device.
I used a broker on my own computer, but you can use what suits you best, determine the broker IP in the corresponding place in the docigo of ESP8266
More information in my github, I try to update always. https://github.com/ckwiek/Smart-socket-ESP8266-NODE-RED
Please, if you find any errors, I thank you let me know to fix
My contac is contato@carloskwiek.com.br
Thank you.
[{"id":"45c41d6b.6e4b34","type":"mqtt in","z":"94949755.80f138","name":"Temperatura","topic":"client1/value","qos":"1","broker":"47dcf20d.cc4c4c","x":219,"y":156,"wires":[["3028d606.9cfeca","b9169041.3b56c"]]},{"id":"3028d606.9cfeca","type":"ui_gauge","z":"94949755.80f138","name":"Umidade","group":"12ed5804.30b9e8","order":0,"width":"6","height":"6","gtype":"gage","title":"Temperatura","label":"units","format":"{{value}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"25","seg2":"28","x":400,"y":114,"wires":[]},{"id":"b9169041.3b56c","type":"debug","z":"94949755.80f138","name":"","active":true,"console":"false","complete":"false","x":648,"y":203,"wires":[]},{"id":"43aa7f7f.67f25","type":"mqtt in","z":"94949755.80f138","name":"Umidade","topic":"client2/value2","qos":"1","broker":"47dcf20d.cc4c4c","x":218,"y":243,"wires":[["65d90298.95cafc","e035557e.610468"]]},{"id":"65d90298.95cafc","type":"ui_gauge","z":"94949755.80f138","name":"Umidade","group":"12ed5804.30b9e8","order":0,"width":"6","height":"6","gtype":"gage","title":"Umidade","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"50","seg2":"60","x":385,"y":317,"wires":[]},{"id":"d4666856.9919e8","type":"mqtt in","z":"94949755.80f138","name":"","topic":"client3/value3","qos":"1","broker":"47dcf20d.cc4c4c","x":235,"y":382,"wires":[["fcc2819.4b8a98","e8aba9b2.9b4bb8"]]},{"id":"fcc2819.4b8a98","type":"ui_gauge","z":"94949755.80f138","name":"POT","group":"12ed5804.30b9e8","order":0,"width":"6","height":"6","gtype":"gage","title":"SeTPoint","label":"units","format":"{{value}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"seg1":"25","seg2":"28","x":370,"y":438,"wires":[]},{"id":"e8aba9b2.9b4bb8","type":"debug","z":"94949755.80f138","name":"","active":true,"console":"false","complete":"false","x":633,"y":387,"wires":[]},{"id":"e035557e.610468","type":"debug","z":"94949755.80f138","name":"","active":true,"console":"false","complete":"false","x":643,"y":316,"wires":[]},{"id":"47dcf20d.cc4c4c","type":"mqtt-broker","z":"","broker":"192.168.0.6","port":"1883","clientid":"Teste","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"12ed5804.30b9e8","type":"ui_group","z":"","name":"DHT11","tab":"1970df39.b46bf1","order":1,"disp":true,"width":"18"},{"id":"1970df39.b46bf1","type":"ui_tab","z":"","name":"ESP_DTH11","icon":"dashboard","order":3}]