Advertisement
Sym0n

Node Red bin collection flow, for Hass.io Garbage Collection

Jun 28th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 27.39 KB | None | 0 0
  1. [{"id":"e5fa4de7.fdc6e","type":"tab","label":"Bin day announcement","disabled":false,"info":""},{"id":"cdccb6ab.294928","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":60,"wires":[["f9bfd138.28608"]]},{"id":"f9bfd138.28608","type":"join","z":"e5fa4de7.fdc6e","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":1030,"y":200,"wires":[["c8981454.9699e8"]]},{"id":"c8981454.9699e8","type":"change","z":"e5fa4de7.fdc6e","name":"$sum(payload)","rules":[{"t":"set","p":"payload","pt":"msg","to":"$sum(payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1180,"y":200,"wires":[["5ce71b9.0f959e4"]]},{"id":"e258d8c7.d5c2d8","type":"api-current-state","z":"e5fa4de7.fdc6e","name":"Is it Black bin day tomorrow?","server":"7dbc1ed6.c0f6e","version":1,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.black_bin","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":400,"y":80,"wires":[["93a0b104.0a55f"],["b1ee98ad.02d7d8"]]},{"id":"df1c725c.ec475","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":100,"wires":[["f9bfd138.28608"]]},{"id":"2891de03.25b802","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"1000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":140,"wires":[["f9bfd138.28608"]]},{"id":"65a1d363.afcc2c","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":180,"wires":[["f9bfd138.28608"]]},{"id":"e81e5df1.eb5aa","type":"api-current-state","z":"e5fa4de7.fdc6e","name":"Is it Recycling bin day tomorrow?","server":"7dbc1ed6.c0f6e","version":1,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.recycling_bin","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":160,"wires":[["6fa4e626.acc198"],["be5ef532.9e3508"]]},{"id":"fbe7cb96.47d0c8","type":"inject","z":"e5fa4de7.fdc6e","name":"Run flow at 6am daily","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"00 06 * * *","once":false,"onceDelay":0.1,"x":140,"y":200,"wires":[["e258d8c7.d5c2d8","e81e5df1.eb5aa","e1913257.20815","8676bbd4.a99ce8"]]},{"id":"b1ee98ad.02d7d8","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":100,"wires":[["df1c725c.ec475"]]},{"id":"be5ef532.9e3508","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":180,"wires":[["65a1d363.afcc2c"]]},{"id":"93a0b104.0a55f","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":60,"wires":[["cdccb6ab.294928"]]},{"id":"6fa4e626.acc198","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":140,"wires":[["2891de03.25b802"]]},{"id":"13ec7ef0.2e60f1","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"10000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":220,"wires":[["f9bfd138.28608"]]},{"id":"e1913257.20815","type":"api-current-state","z":"e5fa4de7.fdc6e","name":"Is it Glass box day tomorrow?","server":"7dbc1ed6.c0f6e","version":1,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.glass_box","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":410,"y":240,"wires":[["50751462.868c1c"],["43e17702.dc0d98"]]},{"id":"237fd3a2.e24c5c","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":260,"wires":[["f9bfd138.28608"]]},{"id":"43e17702.dc0d98","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":260,"wires":[["237fd3a2.e24c5c"]]},{"id":"50751462.868c1c","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"10000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":220,"wires":[["13ec7ef0.2e60f1"]]},{"id":"3c1b905f.e3da3","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"100000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":300,"wires":[["f9bfd138.28608"]]},{"id":"8676bbd4.a99ce8","type":"api-current-state","z":"e5fa4de7.fdc6e","name":"Is it Grass bin day tomorrow?","server":"7dbc1ed6.c0f6e","version":1,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.black_bin","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":400,"y":320,"wires":[["f1576ac5.648a78"],["c3dbe62b.522a38"]]},{"id":"502635d5.46605c","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"parts","pt":"flow","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":340,"wires":[["f9bfd138.28608"]]},{"id":"c3dbe62b.522a38","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":340,"wires":[["502635d5.46605c"]]},{"id":"f1576ac5.648a78","type":"change","z":"e5fa4de7.fdc6e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"100000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":300,"wires":[["3c1b905f.e3da3"]]},{"id":"6cbb34c3.3e918c","type":"comment","z":"e5fa4de7.fdc6e","name":"Check bin collection status, every morning, and write to file","info":"","x":230,"y":20,"wires":[]},{"id":"5ce71b9.0f959e4","type":"file","z":"e5fa4de7.fdc6e","name":"Bin day output","filename":"/config/node-red/files/bin_day_output.txt","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":1360,"y":200,"wires":[[]]},{"id":"7d17ce74.ab181","type":"inject","z":"e5fa4de7.fdc6e","name":"Run flow at 7:30pm daily","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"30 19 * * *","once":false,"onceDelay":0.1,"x":150,"y":720,"wires":[["6c8c3729.1607e8"]]},{"id":"6c8c3729.1607e8","type":"file in","z":"e5fa4de7.fdc6e","name":"Read bin day output","filename":"/config/node-red/files/bin_day_output.txt","format":"lines","chunk":false,"sendError":false,"encoding":"none","x":380,"y":720,"wires":[["74a07eb5.38948"]]},{"id":"74a07eb5.38948","type":"switch","z":"e5fa4de7.fdc6e","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"103","vt":"num"},{"t":"eq","v":"1003","vt":"num"},{"t":"eq","v":"10003","vt":"num"},{"t":"eq","v":"100003","vt":"num"},{"t":"eq","v":"1102","vt":"num"},{"t":"eq","v":"10102","vt":"num"},{"t":"eq","v":"100102","vt":"num"},{"t":"eq","v":"11002","vt":"num"},{"t":"eq","v":"101002","vt":"num"},{"t":"eq","v":"110002","vt":"num"},{"t":"eq","v":"11101","vt":"num"},{"t":"eq","v":"101101","vt":"num"},{"t":"eq","v":"110101","vt":"num"},{"t":"eq","v":"111001","vt":"num"},{"t":"eq","v":"111100","vt":"num"}],"checkall":"true","repair":false,"outputs":15,"x":550,"y":720,"wires":[["39ddbb89.0368e4"],["665c7327.645f4c"],["32377f39.7568f"],["2f05981a.d2f138"],["d2b01d2b.25b0d"],["e6cb1b9a.29eda8"],["c3141c29.973cf"],["6178f87c.2ea0a8"],["7c5e1e28.03e18"],["68798285.e4000c"],["c76b9388.4b7ef"],["2199adac.a2a812"],["bfcad297.0578f"],["7cc0d6a8.7e1538"],["fb05df95.51e4b"]]},{"id":"39ddbb89.0368e4","type":"change","z":"e5fa4de7.fdc6e","name":"Black bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Black bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":440,"wires":[["1a94ab19.570305"]]},{"id":"1a94ab19.570305","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":440,"wires":[["c71b79b9.b5c2e8"]]},{"id":"131b045.f0312fc","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":440,"wires":[[]]},{"id":"c71b79b9.b5c2e8","type":"function","z":"e5fa4de7.fdc6e","name":"Set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":440,"wires":[["131b045.f0312fc"]]},{"id":"665c7327.645f4c","type":"change","z":"e5fa4de7.fdc6e","name":"Recycling bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Recycling bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":480,"wires":[["77a9da48.37b374"]]},{"id":"77a9da48.37b374","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":480,"wires":[["cc82ed44.d58e"]]},{"id":"197a0812.05d918","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":480,"wires":[[]]},{"id":"cc82ed44.d58e","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":480,"wires":[["197a0812.05d918"]]},{"id":"32377f39.7568f","type":"change","z":"e5fa4de7.fdc6e","name":"Glass box reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Glass box out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":520,"wires":[["8ad2abb4.7d0058"]]},{"id":"8ad2abb4.7d0058","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":520,"wires":[["aeda152.a423fe8"]]},{"id":"28e8d320.f1cf1c","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":520,"wires":[[]]},{"id":"aeda152.a423fe8","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":520,"wires":[["28e8d320.f1cf1c"]]},{"id":"2f05981a.d2f138","type":"change","z":"e5fa4de7.fdc6e","name":"Grass bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Grass bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":560,"wires":[["2daf4611.612bfa"]]},{"id":"2daf4611.612bfa","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":560,"wires":[["78e47ad5.4d9f64"]]},{"id":"3f28747b.c62ddc","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":560,"wires":[[]]},{"id":"78e47ad5.4d9f64","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":560,"wires":[["3f28747b.c62ddc"]]},{"id":"d2b01d2b.25b0d","type":"change","z":"e5fa4de7.fdc6e","name":"Black and Recycling bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Black bin and Recycling bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":600,"wires":[["decbb8e9.604858"]]},{"id":"decbb8e9.604858","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":600,"wires":[["cc183af4.9ff378"]]},{"id":"68e5dcc9.d41824","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":600,"wires":[[]]},{"id":"cc183af4.9ff378","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":600,"wires":[["68e5dcc9.d41824"]]},{"id":"e6cb1b9a.29eda8","type":"change","z":"e5fa4de7.fdc6e","name":"Black and Glass reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Black bin and Glass box out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":640,"wires":[["8432d9ce.512348"]]},{"id":"8432d9ce.512348","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":640,"wires":[["51cf42a7.c53ffc"]]},{"id":"86761dc9.99676","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":640,"wires":[[]]},{"id":"51cf42a7.c53ffc","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":640,"wires":[["86761dc9.99676"]]},{"id":"c3141c29.973cf","type":"change","z":"e5fa4de7.fdc6e","name":"Black and Grass reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Black bin and Grass bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":680,"wires":[["4e758fba.0ebb4"]]},{"id":"4e758fba.0ebb4","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":680,"wires":[["af1d0225.dafa6"]]},{"id":"f3add8fd.a46db8","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":680,"wires":[[]]},{"id":"af1d0225.dafa6","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":680,"wires":[["f3add8fd.a46db8"]]},{"id":"6178f87c.2ea0a8","type":"change","z":"e5fa4de7.fdc6e","name":"Recycling and Glass reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Recycling bin and Glass box out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":720,"wires":[["d2075838.f38338"]]},{"id":"d2075838.f38338","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":720,"wires":[["7055df7b.c1bc1"]]},{"id":"1fcbe95a.485537","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":720,"wires":[[]]},{"id":"7055df7b.c1bc1","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":720,"wires":[["1fcbe95a.485537"]]},{"id":"7c5e1e28.03e18","type":"change","z":"e5fa4de7.fdc6e","name":"Recycling and Grass reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Recycling bin and Grass bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":760,"wires":[["1375023f.ea15ee"]]},{"id":"1375023f.ea15ee","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":760,"wires":[["f39dd873.61fa38"]]},{"id":"d942736c.f96f5","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":760,"wires":[[]]},{"id":"f39dd873.61fa38","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":760,"wires":[["d942736c.f96f5"]]},{"id":"68798285.e4000c","type":"change","z":"e5fa4de7.fdc6e","name":"Glass box and Grass bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Glass box and Grass bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":800,"wires":[["9f9e9009.556f9"]]},{"id":"9f9e9009.556f9","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":800,"wires":[["957e6307.d8df"]]},{"id":"8957d6fd.d82768","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":800,"wires":[[]]},{"id":"957e6307.d8df","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":800,"wires":[["8957d6fd.d82768"]]},{"id":"c76b9388.4b7ef","type":"change","z":"e5fa4de7.fdc6e","name":"Black bin, Recycling bin and Glass box reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Black bin, Recycling bin and Glass box out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":840,"wires":[["5b39615f.2bbe8"]]},{"id":"5b39615f.2bbe8","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":840,"wires":[["726c935f.13846c"]]},{"id":"86176435.059a48","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":840,"wires":[[]]},{"id":"726c935f.13846c","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":840,"wires":[["86176435.059a48"]]},{"id":"2199adac.a2a812","type":"change","z":"e5fa4de7.fdc6e","name":"Black bin, Recycling and Grass bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Black bin, Recycling bin and Grass bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":880,"wires":[["ce43fb3b.9f9478"]]},{"id":"ce43fb3b.9f9478","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":880,"wires":[["a4c30876.32b758"]]},{"id":"506b0180.11d56","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":880,"wires":[[]]},{"id":"a4c30876.32b758","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":880,"wires":[["506b0180.11d56"]]},{"id":"bfcad297.0578f","type":"change","z":"e5fa4de7.fdc6e","name":"Black bin, Glass box and Grass bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Black bin, Glass box and Grass bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":920,"wires":[["ff75c3c8.f8b34"]]},{"id":"ff75c3c8.f8b34","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":920,"wires":[["b3e4d9a0.dccb68"]]},{"id":"9cd973b9.2fab9","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":920,"wires":[[]]},{"id":"b3e4d9a0.dccb68","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":920,"wires":[["9cd973b9.2fab9"]]},{"id":"7cc0d6a8.7e1538","type":"change","z":"e5fa4de7.fdc6e","name":"Recycling bin, Glass box and Grass bin reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put the Recycling bin, Glass box and Grass bin out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":960,"wires":[["3b87e3ea.0b8edc"]]},{"id":"3b87e3ea.0b8edc","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":960,"wires":[["74264014.d4b79"]]},{"id":"4585f206.4043cc","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":960,"wires":[[]]},{"id":"74264014.d4b79","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":960,"wires":[["4585f206.4043cc"]]},{"id":"fb05df95.51e4b","type":"change","z":"e5fa4de7.fdc6e","name":"All bins and Glass box reminder","rules":[{"t":"set","p":"payload","pt":"msg","to":"Don't forget to put all the bins and the Glass box out tonight.","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1000,"wires":[["7419f3f7.003dbc"]]},{"id":"7419f3f7.003dbc","type":"delay","z":"e5fa4de7.fdc6e","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1120,"y":1000,"wires":[["eb3ba53c.8c7af8"]]},{"id":"119b71d.0aa018e","type":"http request","z":"e5fa4de7.fdc6e","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://10.0.0.2:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":1510,"y":1000,"wires":[[]]},{"id":"eb3ba53c.8c7af8","type":"function","z":"e5fa4de7.fdc6e","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n    \"name\": \"hassio\",\n    \"command\": msg.message,\n    \"broadcast\": true\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":1330,"y":1000,"wires":[["119b71d.0aa018e"]]},{"id":"ba95ff1.f602a","type":"comment","z":"e5fa4de7.fdc6e","name":"Read file, every evening, to decode which bins are due out the following day, broadcasting the outcome to Google Home devices","info":"","x":450,"y":400,"wires":[]},{"id":"7dbc1ed6.c0f6e","type":"server","z":"","name":"Home Assistant","addon":true}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement