Heating Control with HARDWARIO IoT Kit Thermostat

Control your heating with this simple device that is easy to modify. You can control your sunblinds or boiler for optimal temperature.

IntermediateFull instructions provided1 hour1,233
Heating Control with HARDWARIO IoT Kit Thermostat

Things used in this project

Story

Read more

Code

NODE-Red flow

JSON
[{"id":"3282ce42.9252c2","type":"mqtt in","z":"bc2883dd.2cbbc","name":"","topic":"node/lcd-thermostat:0/thermometer/set-point/temperature","qos":"2","broker":"e649966c.8c2af8","x":300,"y":240,"wires":[["bc6b1429.d191d8"]]},{"id":"bc6b1429.d191d8","type":"function","z":"bc2883dd.2cbbc","name":"Point Temp saver","func":"flow.set(\"pointTemp\", parseFloat(msg.payload));\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":240,"wires":[["488dcd91.c3e484","4748682c.678af8"]]},{"id":"693e6307.4cd53c","type":"mqtt in","z":"bc2883dd.2cbbc","name":"","topic":"node/lcd-thermostat:0/thermometer/0:1/temperature","qos":"2","broker":"e649966c.8c2af8","x":190,"y":300,"wires":[["ac1b20c2.84ca8","a2871768.7fbb98","71d71baf.ba51b4"]]},{"id":"79bd91.5763627","type":"function","z":"bc2883dd.2cbbc","name":"Temperature Check","func":"if(parseFloat(msg.payload) < flow.get(\"pointTemp\"))\n{\n    msg.payload = true;\n    return msg;\n}\nelse if(parseFloat(msg.payload) >= flow.get(\"pointTemp\"))\n{\n    msg.payload = false;\n    return msg;\n}","outputs":1,"noerr":0,"x":690,"y":300,"wires":[["3930fb3d.4d7444","d5ed7aab.c1bdc8","b4ca0d78.06b28"]]},{"id":"3930fb3d.4d7444","type":"mqtt out","z":"bc2883dd.2cbbc","name":"","topic":"node/power-controler:0/relay/-/state/set","qos":"","retain":"","broker":"e649966c.8c2af8","x":1020,"y":300,"wires":[]},{"id":"488dcd91.c3e484","type":"ui_text","z":"bc2883dd.2cbbc","group":"57ff470b.93fdf8","order":0,"width":0,"height":0,"name":"","label":"Point Temperature","format":"{{msg.payload}}°C","layout":"col-center","x":950,"y":240,"wires":[]},{"id":"ac1b20c2.84ca8","type":"ui_gauge","z":"bc2883dd.2cbbc","name":"","group":"57ff470b.93fdf8","order":0,"width":0,"height":0,"gtype":"gage","title":"Room Temperature","label":"°C","format":"{{value}}","min":"-10","max":"40","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":610,"y":420,"wires":[]},{"id":"d5ed7aab.c1bdc8","type":"ui_text","z":"bc2883dd.2cbbc","group":"57ff470b.93fdf8","order":0,"width":0,"height":0,"name":"","label":"Heating","format":"{{msg.payload}}","layout":"col-center","x":930,"y":360,"wires":[]},{"id":"a2871768.7fbb98","type":"blynk-ws-out-write","z":"bc2883dd.2cbbc","name":"","pin":0,"pinmode":0,"client":"cf0a02a0.8dce7","x":570,"y":380,"wires":[]},{"id":"4748682c.678af8","type":"blynk-ws-out-write","z":"bc2883dd.2cbbc","name":"","pin":"2","pinmode":0,"client":"cf0a02a0.8dce7","x":940,"y":200,"wires":[]},{"id":"6e65c1e2.3735c","type":"blynk-ws-out-write","z":"bc2883dd.2cbbc","name":"","pin":"1","pinmode":0,"client":"cf0a02a0.8dce7","x":1080,"y":460,"wires":[]},{"id":"b4ca0d78.06b28","type":"function","z":"bc2883dd.2cbbc","name":"","func":"if(msg.payload === true)\n{\n    msg.payload = 255;\n}\nelse \n{\n    msg.payload = 0;\n}\nreturn msg;","outputs":1,"noerr":0,"x":890,"y":460,"wires":[["6e65c1e2.3735c"]]},{"id":"71d71baf.ba51b4","type":"rbe","z":"bc2883dd.2cbbc","name":"","func":"deadbandEq","gap":"0.5","start":"","inout":"out","property":"payload","x":510,"y":300,"wires":[["79bd91.5763627"]]},{"id":"e649966c.8c2af8","type":"mqtt-broker","z":"","name":"","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"57ff470b.93fdf8","type":"ui_group","z":"","name":"Default","tab":"11207769.c31889","disp":true,"width":"6","collapse":false},{"id":"cf0a02a0.8dce7","type":"blynk-ws-client","z":"","name":"LCD thermostat","path":"ws://127.0.0.1:8080/websockets","key":"852c7b1d5993430eba40f8aea177403a","dbg_all":false,"dbg_read":false,"dbg_write":false,"dbg_notify":false,"dbg_mail":false,"dbg_prop":false,"dbg_sync":false,"dbg_bridge":false,"dbg_low":false,"dbg_pins":"","multi_cmd":false,"proxy_type":"no","proxy_url":""},{"id":"11207769.c31889","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

Credits

Jakub Smejkal
79 projects • 14 followers
Contact
Alan Fabik
43 projects • 11 followers
Contact
Lukáš Fabik
43 projects • 12 followers
Contact
Martin Hubáček
65 projects • 56 followers
Contact

Comments

Please log in or sign up to comment.