[{"id":"8194fb01.c2abf8","type":"tab","label":"Ventilatie","disabled":false,"info":""},{"id":"d9f1e4aa.82a0b8","type":"switch","z":"8194fb01.c2abf8","name":"Check status","property":"status","propertyType":"global","rules":[{"t":"eq","v":"Low","vt":"str"},{"t":"eq","v":"Medium","vt":"str"},{"t":"eq","v":"High","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":190,"y":540,"wires":[["45af7ca6.ecc6f4","dc881704.33c4d8","c57947c6.6eeec","4084b61e.fa0fb8"],["2249a304.0aed54","b3148d19.129808","6113ee08.178c3","3d3eb235.ec7eb6","4084b61e.fa0fb8"],["39e6c21d.18e51e"]]},{"id":"b1331636.ede098","type":"inject","z":"8194fb01.c2abf8","name":"Repeat","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":300,"wires":[["d9f1e4aa.82a0b8","c974d2c2.ab3ef","fbcaf1ea.2b639"]]},{"id":"2c43b661.424582","type":"change","z":"8194fb01.c2abf8","name":"Initial status","rules":[{"t":"set","p":"status","pt":"global","to":"Low","tot":"str"},{"t":"set","p":"HumidityHyst","pt":"flow","to":"100","tot":"num"},{"t":"set","p":"color","pt":"msg","to":"green","tot":"str"},{"t":"set","p":"HumidityStop","pt":"flow","to":"100","tot":"num"},{"t":"set","p":"high","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":300,"wires":[["65a66100.b570f8"]]},{"id":"45af7ca6.ecc6f4","type":"switch","z":"8194fb01.c2abf8","name":"CO2Kamer >","property":"CO2Kamer","propertyType":"global","rules":[{"t":"gt","v":"700","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":420,"wires":[["69effa91.cbbbbc"],[]]},{"id":"dc881704.33c4d8","type":"switch","z":"8194fb01.c2abf8","name":"CO2SLK >","property":"CO2SLK","propertyType":"global","rules":[{"t":"gt","v":"700","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":460,"wires":[["69effa91.cbbbbc"],[]]},{"id":"69effa91.cbbbbc","type":"change","z":"8194fb01.c2abf8","name":"Set Status Medium","rules":[{"t":"set","p":"status","pt":"global","to":"Medium","tot":"str"},{"t":"set","p":"color","pt":"msg","to":"yellow","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":910,"y":420,"wires":[["65a66100.b570f8"]]},{"id":"fc1c073.9f6b378","type":"change","z":"8194fb01.c2abf8","name":"Set Status High","rules":[{"t":"set","p":"status","pt":"global","to":"High","tot":"str"},{"t":"set","p":"color","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":640,"wires":[["65a66100.b570f8"]]},{"id":"2249a304.0aed54","type":"switch","z":"8194fb01.c2abf8","name":"CO2Kamer <","property":"CO2Kamer","propertyType":"global","rules":[{"t":"lt","v":"650","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":520,"wires":[["5e57df48.62ac38"],[]]},{"id":"5e57df48.62ac38","type":"switch","z":"8194fb01.c2abf8","name":"CO2SLK <","property":"CO2SLK","propertyType":"global","rules":[{"t":"lt","v":"650","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":610,"y":520,"wires":[["e031e3cd.446868"],[]]},{"id":"bdd8cb18.10be8","type":"change","z":"8194fb01.c2abf8","name":"Set Status Low","rules":[{"t":"set","p":"status","pt":"global","to":"Low","tot":"str"},{"t":"set","p":"color","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":520,"wires":[["65a66100.b570f8"]]},{"id":"b3148d19.129808","type":"switch","z":"8194fb01.c2abf8","name":"CO2Kamer >","property":"CO2Kamer","propertyType":"global","rules":[{"t":"gt","v":"1000","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":660,"wires":[["fc1c073.9f6b378"],[]]},{"id":"6113ee08.178c3","type":"switch","z":"8194fb01.c2abf8","name":"CO2SLK >","property":"CO2SLK","propertyType":"global","rules":[{"t":"gt","v":"1000","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":700,"wires":[["fc1c073.9f6b378"],[]]},{"id":"39e6c21d.18e51e","type":"switch","z":"8194fb01.c2abf8","name":"CO2Kamer <","property":"CO2Kamer","propertyType":"global","rules":[{"t":"lt","v":"900","vt":"num"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":330,"y":740,"wires":[["ca152c62.62af48"],[]]},{"id":"ca152c62.62af48","type":"switch","z":"8194fb01.c2abf8","name":"CO2SLK <","property":"CO2SLK","propertyType":"global","rules":[{"t":"lt","v":"900","vt":"num"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":490,"y":740,"wires":[["a4e0b9a8.538f38"],[]]},{"id":"ddad7afc.c5c56","type":"change","z":"8194fb01.c2abf8","name":"Set Status Medium","rules":[{"t":"set","p":"status","pt":"global","to":"Medium","tot":"str"},{"t":"set","p":"color","pt":"msg","to":"yellow","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":970,"y":740,"wires":[["65a66100.b570f8"]]},{"id":"5f28b67c.3239a","type":"ui_text","z":"8194fb01.c2abf8","group":"e316c0a6.9ac24","order":5,"width":"6","height":"2","name":"Status Ventilatie","label":"","format":"<font size=\"+2\" ; font color={{msg.color}} >{{msg.payload}}</font>","layout":"col-center","x":1320,"y":440,"wires":[]},{"id":"65a66100.b570f8","type":"change","z":"8194fb01.c2abf8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"status","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1200,"y":540,"wires":[["5f28b67c.3239a","66adf107.8226a8","843f14b9.86ce38","f331fcba.dfcbe8"]]},{"id":"c57947c6.6eeec","type":"switch","z":"8194fb01.c2abf8","name":"% vocht >","property":"Badkamer","propertyType":"global","rules":[{"t":"gt","v":"HumidityHyst","vt":"flow"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":450,"y":380,"wires":[["69effa91.cbbbbc","b3c8166b.3234a"],[]]},{"id":"e031e3cd.446868","type":"switch","z":"8194fb01.c2abf8","name":"% vocht <","property":"Badkamer","propertyType":"global","rules":[{"t":"lt","v":"HumidityStop","vt":"flow"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":770,"y":520,"wires":[["bdd8cb18.10be8"],[]]},{"id":"3d3eb235.ec7eb6","type":"switch","z":"8194fb01.c2abf8","name":"% vocht >","property":"Badkamer","propertyType":"global","rules":[{"t":"gt","v":"HumidityHyst","vt":"flow"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":450,"y":580,"wires":[["fc1c073.9f6b378","3e54c373.3816f4"],[]]},{"id":"a4e0b9a8.538f38","type":"switch","z":"8194fb01.c2abf8","name":"% vocht <","property":"Badkamer","propertyType":"global","rules":[{"t":"lt","v":"HumidityStop","vt":"flow"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":650,"y":740,"wires":[["1bce0bf5.63e754"],[]]},{"id":"5a84a419.165384","type":"switch","z":"8194fb01.c2abf8","name":"Check status","property":"status","propertyType":"global","rules":[{"t":"eq","v":"Low","vt":"str"},{"t":"eq","v":"Medium","vt":"str"},{"t":"eq","v":"High","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":1010,"y":1020,"wires":[[],["1e97c32d.e8e145"],["ac88a7c9.1bde4"]]},{"id":"66adf107.8226a8","type":"change","z":"8194fb01.c2abf8","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":900,"wires":[["d057f6b8.38be78"]]},{"id":"1e97c32d.e8e145","type":"change","z":"8194fb01.c2abf8","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":1000,"wires":[["d057f6b8.38be78"]]},{"id":"843f14b9.86ce38","type":"change","z":"8194fb01.c2abf8","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":940,"wires":[["53a02c0f.d87644"]]},{"id":"f331fcba.dfcbe8","type":"delay","z":"8194fb01.c2abf8","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":850,"y":1020,"wires":[["5a84a419.165384"]]},{"id":"ac88a7c9.1bde4","type":"change","z":"8194fb01.c2abf8","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":1040,"wires":[["53a02c0f.d87644"]]},{"id":"d2a7fd32.97c7f","type":"inject","z":"8194fb01.c2abf8","name":"Init","topic":"","payload":"","payloadType":"date","repeat":"3600","crontab":"","once":true,"onceDelay":"20","x":410,"y":300,"wires":[["2c43b661.424582"]]},{"id":"2266c4d0.475704","type":"ui_text","z":"8194fb01.c2abf8","group":"e316c0a6.9ac24","order":2,"width":0,"height":0,"name":"Slaapkamer","label":"<font size=\"+2\"><i class=\"fa fa-bed\" aria-hidden=\"true\"></i>","format":"{{msg.payload}} ppm","layout":"row-spread","x":590,"y":120,"wires":[]},{"id":"502ed804.bd6ac8","type":"ui_text","z":"8194fb01.c2abf8","group":"e316c0a6.9ac24","order":1,"width":0,"height":0,"name":"Kamer","label":"<font size=\"+2\"><i class=\"fa fa-home\" aria-hidden=\"true\"> ","format":"{{msg.payload}} ppm","layout":"row-spread","x":390,"y":120,"wires":[]},{"id":"c974d2c2.ab3ef","type":"change","z":"8194fb01.c2abf8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"CO2Kamer","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":240,"y":200,"wires":[["502ed804.bd6ac8"]]},{"id":"fbcaf1ea.2b639","type":"change","z":"8194fb01.c2abf8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"CO2SLK","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":200,"wires":[["2266c4d0.475704"]]},{"id":"d057f6b8.38be78","type":"mqtt out","z":"8194fb01.c2abf8","name":"","topic":"cmnd/ventilatie/Power1","qos":"2","retain":"","broker":"3573c0fc.36f028","x":1410,"y":920,"wires":[]},{"id":"ca5544dc.1f5168","type":"Sonoff device","z":"8194fb01.c2abf8","mode":"0","broker":"3573c0fc.36f028","device":"tbd","name":"ventilatie","onValue":"ON","offValue":"OFF","cmdPrefix":"cmnd","statPrefix":"stat","telePrefix":"tele","x":1060,"y":1140,"wires":[[]]},{"id":"53a02c0f.d87644","type":"mqtt out","z":"8194fb01.c2abf8","name":"","topic":"cmnd/ventilatie/Power2","qos":"2","retain":"","broker":"3573c0fc.36f028","x":1410,"y":1020,"wires":[]},{"id":"6a519fda.6be038","type":"mqtt in","z":"8194fb01.c2abf8","name":"Subscribe to ventilatie/POWER1","topic":"stat/ventilatie/POWER1","qos":"2","datatype":"auto","broker":"3573c0fc.36f028","x":1130,"y":1220,"wires":[["945d6f5.7eca91"]]},{"id":"7d5fd008.b839","type":"mqtt in","z":"8194fb01.c2abf8","name":"Subscribe to ventilatie/POWER2","topic":"stat/ventilatie/POWER2","qos":"2","datatype":"auto","broker":"3573c0fc.36f028","x":1130,"y":1280,"wires":[["7f9be4fb.6aa20c"]]},{"id":"945d6f5.7eca91","type":"function","z":"8194fb01.c2abf8","name":"status","func":"if (msg.payload === \"ON\") \n{ message = \"AAN\" }\nelse {message = \"UIT\" }\nmsg.payload = message;\nreturn msg;","outputs":1,"noerr":0,"x":1350,"y":1220,"wires":[["59ba67f9.6e4668"]]},{"id":"7f9be4fb.6aa20c","type":"function","z":"8194fb01.c2abf8","name":"status","func":"if (msg.payload === \"ON\") \n{ message = \"AAN\" }\nelse {message = \"UIT\" }\nmsg.payload = message;\nreturn msg;","outputs":1,"noerr":0,"x":1353,"y":1280,"wires":[["514f88af.1323d"]]},{"id":"2afa032.df301fc","type":"ui_button","z":"8194fb01.c2abf8","name":"","group":"e316c0a6.9ac24","order":8,"width":"3","height":"1","passthru":false,"label":"High","tooltip":"","color":"black","bgcolor":"transparent","icon":"","payload":"","payloadType":"date","topic":"","x":70,"y":1060,"wires":[["1c417315.a25a55","e0fc55f0.08c07"]]},{"id":"e0fc55f0.08c07","type":"change","z":"8194fb01.c2abf8","name":"Set high true","rules":[{"t":"set","p":"high","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":230,"y":1000,"wires":[["d9f1e4aa.82a0b8"]]},{"id":"1c417315.a25a55","type":"delay","z":"8194fb01.c2abf8","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":230,"y":1100,"wires":[["1cced572.c57ddb"]]},{"id":"1cced572.c57ddb","type":"change","z":"8194fb01.c2abf8","name":"Set high false","rules":[{"t":"set","p":"high","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":1160,"wires":[["d9f1e4aa.82a0b8"]]},{"id":"8b02d692.d4c5e8","type":"ui_button","z":"8194fb01.c2abf8","name":"Reset","group":"e316c0a6.9ac24","order":9,"width":"3","height":"1","passthru":false,"label":"Reset ","tooltip":"","color":"black","bgcolor":"transparent","icon":"","payload":"","payloadType":"date","topic":"","x":70,"y":1160,"wires":[["1cced572.c57ddb"]]},{"id":"4084b61e.fa0fb8","type":"switch","z":"8194fb01.c2abf8","name":"high true","property":"high","propertyType":"flow","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":440,"y":620,"wires":[["fc1c073.9f6b378"],[]]},{"id":"1bce0bf5.63e754","type":"switch","z":"8194fb01.c2abf8","name":"high false","property":"high","propertyType":"flow","rules":[{"t":"false"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":800,"y":740,"wires":[["ddad7afc.c5c56"],[]]},{"id":"f23b31e1.7cbd78","type":"Sonoff device","z":"8194fb01.c2abf8","mode":"0","broker":"3573c0fc.36f028","device":"tbd","name":"Badkamer SI7021","onValue":"ON","offValue":"OFF","cmdPrefix":"cmnd","statPrefix":"stat","telePrefix":"tele","x":110,"y":1400,"wires":[[]]},{"id":"be9b676d.7f8088","type":"mqtt in","z":"8194fb01.c2abf8","name":"Subscribe to badkamer","topic":"tele/Badkamer/SENSOR","qos":"1","datatype":"auto","broker":"3573c0fc.36f028","x":340,"y":1400,"wires":[["c70e29f4.9f2b98"]]},{"id":"c70e29f4.9f2b98","type":"json","z":"8194fb01.c2abf8","name":"","property":"payload","action":"obj","pretty":false,"x":530,"y":1400,"wires":[["8e3dd373.525b68","b4feaf36.57c5e"]]},{"id":"8e3dd373.525b68","type":"change","z":"8194fb01.c2abf8","name":"Temperature","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.SI7021.Temperature","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":1400,"wires":[["da2f6482.64919"]]},{"id":"b4feaf36.57c5e","type":"change","z":"8194fb01.c2abf8","name":"Humidity","rules":[{"t":"set","p":"Badkamer","pt":"global","to":"payload.SI7021.Humidity","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"payload.SI7021.Humidity","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":1460,"wires":[["6ad75b0f.5ccd0c","e8f98e95.0f183","dec82d0e.f2bef8"]]},{"id":"6ad75b0f.5ccd0c","type":"ui_chart","z":"8194fb01.c2abf8","name":"% badkamer","group":"e5585bce.912db","order":2,"width":"16","height":"6","label":"% rel vochtigheid","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"25","ymax":"75","removeOlder":"24","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":1310,"y":1500,"wires":[[],[]]},{"id":"e8f98e95.0f183","type":"ui_text","z":"8194fb01.c2abf8","group":"e316c0a6.9ac24","order":3,"width":0,"height":0,"name":"Badkamer %","label":"<font size=\"+2\"><i class=\"fa fa-bath\" aria-hidden=\"true\"></i> ","format":"{{msg.payload}} %    ","layout":"row-spread","x":1310,"y":1460,"wires":[]},{"id":"8c3e4537.ef264","type":"ui_text","z":"8194fb01.c2abf8","group":"e316c0a6.9ac24","order":4,"width":0,"height":0,"name":"Badkamer","label":"","format":"{{msg.payload}} Ā°C  ","layout":"row-spread","x":1330,"y":1400,"wires":[]},{"id":"dec82d0e.f2bef8","type":"smooth","z":"8194fb01.c2abf8","name":"Gemiddelde vochtigheid","property":"payload","action":"mean","count":"100","round":"","mult":"single","x":770,"y":1560,"wires":[["79466e98.99ec6","d8b9c6ab.5660b8","5839d3ff.18f184"]]},{"id":"79466e98.99ec6","type":"change","z":"8194fb01.c2abf8","name":"HumidityMean","rules":[{"t":"set","p":"HumidityMean","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1060,"y":1600,"wires":[[]]},{"id":"d8b9c6ab.5660b8","type":"function","z":"8194fb01.c2abf8","name":"Hyst Level","func":"msg.payload = msg.payload + 15;\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":1640,"wires":[["3b68ffff.c1487","2175dbc8.03c324"]]},{"id":"3b68ffff.c1487","type":"change","z":"8194fb01.c2abf8","name":"HumidityHyst","rules":[{"t":"set","p":"HumidityHyst","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1060,"y":1680,"wires":[[]]},{"id":"b3c8166b.3234a","type":"change","z":"8194fb01.c2abf8","name":"HumidityStop","rules":[{"t":"set","p":"HumidityStop","pt":"flow","to":"HumidityHyst","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":380,"wires":[[]]},{"id":"3e54c373.3816f4","type":"change","z":"8194fb01.c2abf8","name":"HumidityStop","rules":[{"t":"set","p":"HumidityStop","pt":"flow","to":"HumidityHyst","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":580,"wires":[[]]},{"id":"5839d3ff.18f184","type":"debug","z":"8194fb01.c2abf8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1330,"y":1560,"wires":[]},{"id":"2175dbc8.03c324","type":"debug","z":"8194fb01.c2abf8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1330,"y":1640,"wires":[]},{"id":"59ba67f9.6e4668","type":"ui_text","z":"8194fb01.c2abf8","group":"e316c0a6.9ac24","order":6,"width":"3","height":"1","name":"Relay 1","label":"","format":"<font size=\"-2\">{{msg.payload}}","layout":"col-center","x":1500,"y":1220,"wires":[]},{"id":"514f88af.1323d","type":"ui_text","z":"8194fb01.c2abf8","group":"e316c0a6.9ac24","order":7,"width":"3","height":"1","name":"Relay 2","label":"","format":"<font size=\"-2\">{{msg.payload}}","layout":"col-center","x":1500,"y":1280,"wires":[]},{"id":"da2f6482.64919","type":"function","z":"8194fb01.c2abf8","name":"calibrate (-1.3)","func":"msg.payload = Math.round((msg.payload - 1.3)*100)/100;\nreturn msg;\n","outputs":1,"noerr":0,"x":980,"y":1400,"wires":[["8c3e4537.ef264"]]},{"id":"e316c0a6.9ac24","type":"ui_group","z":"","name":"Ventilatie","tab":"ed9c0fd0.00f9d","order":2,"disp":true,"width":"6","collapse":false},{"id":"3573c0fc.36f028","type":"mqtt-broker","z":"","name":"Mosquitto","broker":"192.168.0.10","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"2","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"e5585bce.912db","type":"ui_group","z":"","name":"Badkamer","tab":"ea833d15.6cda88","order":3,"disp":true,"width":"16","collapse":false},{"id":"ed9c0fd0.00f9d","type":"ui_tab","z":"","name":"Daalstraat 54","icon":"dashboard","order":1},{"id":"ea833d15.6cda88","type":"ui_tab","z":"","name":"Grafieken","icon":"dashboard","order":2}]
The flow also takes care of the CO2 values in the bed room and living room, bathroom humidity is only one part of the integral flow. eg CO2 > 1000ppm switches the ventilation to high level.
The flow switches 2 relays (00 : LOW, 01 MEDIUM, 10 HIGH).
CO2 / HUM values are supplied by NETATMO devices installed in the living room and bed room (using the NETATMO API which gives access to the values in the cloud).
For the bathroom a SI70xx devices is used with a tasmotized sonoff.
Some initialization is also done at start-up. etc.
Flow has been shared in the forum.
Please repost the flow between backticks or triple backticks, as it is other people won't be able to use it as Discourse changes the quotes. It is also very hard to follow like that.
Julian (@TotallyInformation) I thought there was an add on which prevented false entries when pasting code?
Done. Thanks google.
Me too, but it clearly didn't work that time.
[{"id":"7b14755.15c620c","type":"debug","z":"5bb5a6a6.97527","name":"Error","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":135,"y":182,"wires":}]
It doesn't seem to be enabled
Have to ask @knolleary if there is a problem with it
Sorry to revisit this subject. But I've just been made aware of the Bosch BME680 which might work very well for occupancy detection in the bathroom:
Fascinating. They suggest it is pretty accurate for presence detection.
And for less than 10ā¬ shipped from china a re-import is isnāt environmentally friendly but I will get a nice environment sensor. I will give it a try (not only for my bathroom but for meeting rooms too - I always want to find out if I get tired because of bad air quality or boring meetings).
For bathrooms a pir for quick response and a humidity and air quality sensor for long duration presence detection.
Yes. Not the cheapest but seems like a very nice sensor. About Ā£9 from Ali Express.
A CO2 sensor might also work.
Most of the time it pays to spend a little bit more. As I wrote before not only the BMEs I use for years now are reliable their data output is low noise and you do not have to do any filtering at all (compared to the AM23xx which offers better precision but after filtering all the noise you end up with the same 0.1C in my experience)
But you have to calibrate the BME280 because they (can) come with a linear temperature shift of 1-3C in my experience.
Not experienced the temp. shift on the 280's myself though I only have a few and perhaps they were all from the same batch.
To be honest, the thing that I learned first was that all the talk of 0.1C and 1% humidity accuracy was all marketing speak. As you can see from the Bosch presentation on the 680 if you pay attention, the differences created by room position, airflow and housing generally seem to far outweigh anything else. As I think you said, it is the relative changes on a single sensor that is most important rather than absolute sensor accuracy as long as they don't drift.
I simply compare the readings for a sensor in a room with how the room feels and how the room behaves (e.g. condensation in cold areas or with reduced air movement). These are more important than the values.
How do you do the calibration Chris (@Christian-Me) ?
I have to agree Julian (@TotallyInformation), I remember one of my workmates questioning a technician installing a new dyeing machine with a capacity of 3000L how accurate the temperature sensor was, his reply was "The absolute temperature depends on where the sensor is placed, but where you place it +- 2 degrees" .
I totally agree for room temperatures. As an architect I try to persuade corporate clients not to install room controller showing temperature in degrees to avoid complaints by their staff. Instead have an adjustable temp with +/- 3 degrees kelvin for individual control.
But for temperature in my pond or greenhouse it is important to have more precise measurements. It is a difference if the greenhouse is -1 degrees C or +1. For this range I use ice water (water with melting ice cubes) to determine 0C.
For rooms I like to be able to compare temperatures between rooms. So I use a good old quicksilver thermometer from my father to calibrate in order to find a rough common ground. I use always the same thermometer to have the same base temperature. The absolute is not so important.
My thermostats (see above) have a boost function. If you hit the button it goes full open for 10-20 minutes. The feeling of more heat / comfort in winter lasts many hours even when the temperature goes down again after 20 minutes (or enough time to take a comfortable shower). All very subjective.
So you calibrate the BME's with a quicksilver thermometer?