Buva Qstream 2.0 Wifi
Flow for controlling the BUVA Q-STREAM 2.0
[{"id":"fa91ad78.ab8ff","type":"http request","z":"5a19fce9.ed1ec4","name":"Status","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Status","tls":"","persist":false,"proxy":"","authType":"","x":730,"y":2160,"wires":[["e888e410.956588"]]},{"id":"e888e410.956588","type":"debug","z":"5a19fce9.ed1ec4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1140,"y":2220,"wires":[]},{"id":"4124aca7.3ab544","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2160,"wires":[["fa91ad78.ab8ff"]]},{"id":"b1394e31.796b3","type":"http request","z":"5a19fce9.ed1ec4","name":"Levels","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Levels?index=1","tls":"","persist":false,"proxy":"","authType":"","x":730,"y":2200,"wires":[["e888e410.956588"]]},{"id":"af0c60be.74e7b","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2200,"wires":[["b1394e31.796b3"]]},{"id":"24e5aa76.7c31e6","type":"http request","z":"5a19fce9.ed1ec4","name":"Qnom","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Qnom","tls":"","persist":false,"proxy":"","authType":"","x":730,"y":2360,"wires":[["e888e410.956588"]]},{"id":"980ac628.2e8758","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2360,"wires":[["24e5aa76.7c31e6"]]},{"id":"cdcb68e2.7aea58","type":"http request","z":"5a19fce9.ed1ec4","name":"DateTime","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/DateTime","tls":"","persist":false,"proxy":"","authType":"","x":740,"y":2400,"wires":[["e888e410.956588"]]},{"id":"ef23bf75.d553","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2400,"wires":[["cdcb68e2.7aea58"]]},{"id":"7c6826bd.855898","type":"http request","z":"5a19fce9.ed1ec4","name":"Schedule","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Schedule?Day=6","tls":"","persist":false,"proxy":"","authType":"","x":740,"y":2440,"wires":[["e888e410.956588"]]},{"id":"41ed32f.a5e7dcc","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2440,"wires":[["7c6826bd.855898"]]},{"id":"3bb15a88.5374f6","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2480,"wires":[["3c51cb22.e89b14"]]},{"id":"96f2b153.235b9","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":300,"y":2520,"wires":[["2b79bbc7.5c4544"]]},{"id":"3c51cb22.e89b14","type":"http request","z":"5a19fce9.ed1ec4","name":"AQI","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/AQI","tls":"","persist":false,"proxy":"","authType":"","x":730,"y":2480,"wires":[["e888e410.956588"]]},{"id":"e4c2cc9c.df049","type":"http request","z":"5a19fce9.ed1ec4","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","x":750,"y":2520,"wires":[["e888e410.956588"]]},{"id":"2b79bbc7.5c4544","type":"change","z":"5a19fce9.ed1ec4","name":"","rules":[{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://10.0.20.51/Timer","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"Value\":\"TIMER 30 MIN 41% DEMAND CONTROL OFF DAY\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":2520,"wires":[["e4c2cc9c.df049"]]},{"id":"71832785.a0a308","type":"http request","z":"5a19fce9.ed1ec4","name":"Levels","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Levels?index=2","tls":"","persist":false,"proxy":"","authType":"","x":730,"y":2240,"wires":[["e888e410.956588"]]},{"id":"70f7abe9.33a5e4","type":"http request","z":"5a19fce9.ed1ec4","name":"Levels","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Levels?index=3","tls":"","persist":false,"proxy":"","authType":"","x":730,"y":2280,"wires":[["e888e410.956588"]]},{"id":"1faf7e2d.771882","type":"http request","z":"5a19fce9.ed1ec4","name":"Levels","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Levels?index=4","tls":"","persist":false,"proxy":"","authType":"","x":730,"y":2320,"wires":[["e888e410.956588"]]},{"id":"e2ec5181.f6cfb","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2240,"wires":[["71832785.a0a308"]]},{"id":"9aa4a8c4.122be8","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2280,"wires":[["70f7abe9.33a5e4"]]},{"id":"65c5763b.b5a178","type":"inject","z":"5a19fce9.ed1ec4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":2320,"wires":[["1faf7e2d.771882"]]},{"id":"29db2739.625ea8","type":"change","z":"5a19fce9.ed1ec4","name":"","rules":[{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://10.0.20.51/Timer","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1000,"y":2580,"wires":[["8b9a8a9c.e5ad58"]]},{"id":"1c942002.285c","type":"debug","z":"5a19fce9.ed1ec4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1390,"y":2580,"wires":[]},{"id":"7b794b9b.cb5e74","type":"function","z":"5a19fce9.ed1ec4","name":"","func":"var Timer = global.get('FanTime');\nvar speed = global.get('FanSpeed');\n\n\n\nmsg.payload = { \"Value\" : \"TIMER \"+ Timer +\" MIN \"+ speed +\"% DEMAND CONTROL OFF DAY\" }\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":740,"y":2580,"wires":[["29db2739.625ea8"]]},{"id":"5ba7bbcc.c071a4","type":"ui_slider","z":"5a19fce9.ed1ec4","name":"slider ventilatie","label":"slider ventilatie","tooltip":"","group":"edaee387.5cf53","order":4,"width":0,"height":0,"passthru":true,"outs":"end","topic":"speed","min":0,"max":"100","step":1,"x":300,"y":2560,"wires":[["30d7b92d.7fea86"]]},{"id":"2a048686.b9bc6a","type":"ui_slider","z":"5a19fce9.ed1ec4","name":"slider tijd","label":"slider tijd","tooltip":"","group":"edaee387.5cf53","order":4,"width":0,"height":0,"passthru":true,"outs":"end","topic":"time","min":0,"max":"60","step":1,"x":280,"y":2620,"wires":[["20a32330.f8bafc"]]},{"id":"20a32330.f8bafc","type":"function","z":"5a19fce9.ed1ec4","name":"","func":"global.set('FanTime', msg.payload)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":540,"y":2620,"wires":[["7b794b9b.cb5e74"]]},{"id":"30d7b92d.7fea86","type":"function","z":"5a19fce9.ed1ec4","name":"","func":"global.set('FanSpeed', msg.payload)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":540,"y":2560,"wires":[["7b794b9b.cb5e74"]]},{"id":"8b9a8a9c.e5ad58","type":"http request","z":"5a19fce9.ed1ec4","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","x":1190,"y":2580,"wires":[["1c942002.285c"]]},{"id":"b837e101.1d277","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"edaee387.5cf53","order":3,"width":"3","height":"1","passthru":false,"label":"Stand 1 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":2700,"wires":[["4c8d2928.cd0eb8"]]},{"id":"4c8d2928.cd0eb8","type":"change","z":"5a19fce9.ed1ec4","name":"","rules":[{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://10.0.20.51/Timer","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"Value\":\"TIMER 30 MIN 24% DEMAND CONTROL OFF DAY\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":2700,"wires":[["bca32dc5.0eef"]]},{"id":"bca32dc5.0eef","type":"http request","z":"5a19fce9.ed1ec4","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","x":810,"y":2700,"wires":[["7f3e93ea.b9c09c"]]},{"id":"2a6cbc07.8ba7f4","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"edaee387.5cf53","order":3,"width":"3","height":"1","passthru":false,"label":"Stand 2 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":2800,"wires":[["38008dec.a759a2"]]},{"id":"38008dec.a759a2","type":"change","z":"5a19fce9.ed1ec4","name":"","rules":[{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://10.0.20.51/Timer","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"Value\":\"TIMER 30 MIN 41% DEMAND CONTROL OFF DAY\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":2780,"wires":[["bca32dc5.0eef"]]},{"id":"4ad0bd70.a3ed74","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"edaee387.5cf53","order":3,"width":"3","height":"1","passthru":false,"label":"Stand 3 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":2900,"wires":[["fbb8c830.3e95b8"]]},{"id":"fbb8c830.3e95b8","type":"change","z":"5a19fce9.ed1ec4","name":"","rules":[{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://10.0.20.51/Timer","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"Value\":\"TIMER 30 MIN 62% DEMAND CONTROL OFF DAY\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":2880,"wires":[["bca32dc5.0eef"]]},{"id":"973de2f6.dcf8a","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"edaee387.5cf53","order":3,"width":"3","height":"1","passthru":false,"label":"Stand 4 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":3000,"wires":[["33f77d43.bc1112"]]},{"id":"33f77d43.bc1112","type":"change","z":"5a19fce9.ed1ec4","name":"","rules":[{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://10.0.20.51/Timer","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"Value\":\"TIMER 30 MIN 74% DEMAND CONTROL OFF DAY\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":2980,"wires":[["bca32dc5.0eef"]]},{"id":"17c3e88e.9a4ba7","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"edaee387.5cf53","order":3,"width":"3","height":"1","passthru":false,"label":"Boost 10 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":310,"y":3100,"wires":[["105cd148.d66d4f"]]},{"id":"105cd148.d66d4f","type":"change","z":"5a19fce9.ed1ec4","name":"","rules":[{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"http://10.0.20.51/Timer","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"Value\":\"TIMER 10 MIN 120% DEMAND CONTROL OFF DAY\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":3040,"wires":[["bca32dc5.0eef"]]},{"id":"53d0cce7.0f8fa4","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"ca3f45f9.0682a8","order":8,"width":"3","height":"1","passthru":false,"label":"Stand 1 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":2740,"wires":[["4c8d2928.cd0eb8"]]},{"id":"be486445.ee9968","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"ca3f45f9.0682a8","order":9,"width":"3","height":"1","passthru":false,"label":"Stand 2 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":2840,"wires":[["38008dec.a759a2"]]},{"id":"75fa8676.c920a8","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"ca3f45f9.0682a8","order":10,"width":"3","height":"1","passthru":false,"label":"Stand 3 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":2940,"wires":[["fbb8c830.3e95b8"]]},{"id":"fc0f2605.1a2098","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"ca3f45f9.0682a8","order":11,"width":"3","height":"1","passthru":false,"label":"Stand 4 30 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":3040,"wires":[["33f77d43.bc1112"]]},{"id":"97285b45.396618","type":"ui_button","z":"5a19fce9.ed1ec4","name":"","group":"ca3f45f9.0682a8","order":12,"width":"3","height":"1","passthru":false,"label":"Boost 10 Min","tooltip":"","color":"","bgcolor":"gray","icon":"","payload":"","payloadType":"str","topic":"","x":310,"y":3140,"wires":[["105cd148.d66d4f"]]},{"id":"a403ddb7.c747d","type":"ui_text","z":"5a19fce9.ed1ec4","group":"ca3f45f9.0682a8","order":6,"width":0,"height":0,"name":"Ventilatie systeem setpoint","label":"Setpoint / Actueel :","format":"{{msg.Qset}} % / {{msg.QActual}} %","layout":"row-left","x":1860,"y":2740,"wires":[]},{"id":"3bbe4333.cd15ac","type":"http request","z":"5a19fce9.ed1ec4","name":"Status","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.0.20.51/Status","tls":"","persist":false,"proxy":"","authType":"","x":1330,"y":2700,"wires":[["8c3c749d.f62b68","317cda4d.ace0a6"]]},{"id":"3a7dd860.f9d368","type":"inject","z":"5a19fce9.ed1ec4","name":"Get status evert 5 minute","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"*/5 6-21 * * *","once":true,"onceDelay":"30","topic":"","payload":"","payloadType":"date","x":980,"y":2740,"wires":[["3bbe4333.cd15ac"]]},{"id":"7f3e93ea.b9c09c","type":"delay","z":"5a19fce9.ed1ec4","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1030,"y":2700,"wires":[["3bbe4333.cd15ac"]]},{"id":"8c3c749d.f62b68","type":"function","z":"5a19fce9.ed1ec4","name":"","func":"msg.payload = msg.payload.split(\" \");\nvar QActual;\nvar Qset;\nvar TIMER;\nvar SCHEDULE;\nvar CONTROL;\nvar VALVE;\n\nvar len = msg.payload.length;\n\nfor(var i=0;i<len;i++)\n{\n \n if (msg.payload[i] == \"Qset\") \n {\n Qset = parseInt(msg.payload[i + 1]);\n }\n\n if (msg.payload[i] == \"Qactual\") \n {\n QActual = parseInt(msg.payload[i + 1]);\n }\n\n if (msg.payload[i] == \"ACTIVE\") \n {\n TIMER = parseInt(msg.payload[i + 1]);\n\n }\n\n\n if (msg.payload[i] == \"CONTROL\") \n {\n CONTROL = msg.payload[i + 1];\n }\n\n}\n\nmsg = {}; //clear msg object\n\nmsg[\"Qset\"]= Qset;\nmsg[\"QActual\"] = QActual;\nmsg[\"TIMER\"] = TIMER;\nmsg[\"CONTROL\"] = CONTROL;\n\n\nreturn msg\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1560,"y":2760,"wires":[["fe9642dd.607ad","a403ddb7.c747d","bdbad85f.7a9d08","6f8bbad0.e07e14"]]},{"id":"fe9642dd.607ad","type":"debug","z":"5a19fce9.ed1ec4","name":"Split string","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1810,"y":2920,"wires":[]},{"id":"317cda4d.ace0a6","type":"debug","z":"5a19fce9.ed1ec4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1570,"y":2700,"wires":[]},{"id":"bdbad85f.7a9d08","type":"ui_text","z":"5a19fce9.ed1ec4","group":"ca3f45f9.0682a8","order":5,"width":0,"height":0,"name":"Ventilatie systeem","label":"Ventilatie systeem","format":"","layout":"row-left","x":1830,"y":2700,"wires":[]},{"id":"6f8bbad0.e07e14","type":"ui_text","z":"5a19fce9.ed1ec4","group":"ca3f45f9.0682a8","order":7,"width":0,"height":0,"name":"Timer","label":"Timer","format":"{{msg.TIMER}} min","layout":"row-left","x":1790,"y":2780,"wires":[]},{"id":"973bc9e0.84eaa8","type":"comment","z":"5a19fce9.ed1ec4","name":"Buva Qstream ventilator Wifi","info":"","x":300,"y":2100,"wires":[]},{"id":"edaee387.5cf53","type":"ui_group","z":"","name":"Ventilatie","tab":"ed1321f8.f146a","order":3,"disp":true,"width":"6","collapse":false},{"id":"ca3f45f9.0682a8","type":"ui_group","z":"","name":"Activiteits status","tab":"133de2a.02bdf1d","order":1,"disp":false,"width":"6","collapse":false},{"id":"ed1321f8.f146a","type":"ui_tab","z":"","name":"Test dashboard","icon":"dashboard","disabled":false,"hidden":false},{"id":"133de2a.02bdf1d","type":"ui_tab","z":"","name":"Home","icon":"fa-home ","order":1,"disabled":false,"hidden":false}]