[{"id":"29b9eb2a.aee554","type":"tab","label":"IRMQTT","disabled":false,"info":""},{"id":"187a4b87.a8bfe4","type":"mqtt in","z":"29b9eb2a.aee554","name":"小米遥控器ESP_IR_MQTT","topic":"IR_MQTT","qos":"2","datatype":"auto","broker":"9c9e7391.fe294","x":190,"y":260,"wires":[["64b99394.7b575c","3bb8881.8570478","509dba40.066934","950eef5b.5477b"]]},{"id":"64b99394.7b575c","type":"debug","z":"29b9eb2a.aee554","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":220,"wires":[]},{"id":"3bb8881.8570478","type":"switch","z":"29b9eb2a.aee554","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"1FE48B7","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":450,"y":360,"wires":[["8c9aa303.5d5"],["482d0a15.2a2a24"],[],[],[],["f47293e9.e5f13"]]},{"id":"11b10820.3dffd8","type":"rpi-gpio out","z":"29b9eb2a.aee554","name":"test-RPI-GPIO21","pin":"40","set":true,"level":"0","freq":"","out":"out","x":870,"y":300,"wires":[]},{"id":"8c9aa303.5d5","type":"function","z":"29b9eb2a.aee554","name":"Toggle 0/1 on input","func":"\ncontext.state = context.state || 0;\n\n(context.state == 0) ? context.state = 1 : context.state = 0;\nmsg.payload = context.state;\n\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":300,"wires":[["11b10820.3dffd8"]]},{"id":"66c55622.cb4968","type":"rpi-gpio out","z":"29b9eb2a.aee554","name":"test-RPI-GPIO16","pin":"36","set":true,"level":"0","freq":"","out":"out","x":870,"y":420,"wires":[]},{"id":"f47293e9.e5f13","type":"function","z":"29b9eb2a.aee554","name":"Toggle 0/1 on input","func":"\ncontext.state = context.state || 0;\n\n(context.state == 0) ? context.state = 1 : context.state = 0;\nmsg.payload = context.state;\n\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":420,"wires":[["66c55622.cb4968"]]},{"id":"326c6f39.d5e7f","type":"rpi-gpio out","z":"29b9eb2a.aee554","name":"test-RPI-GPIO20","pin":"38","set":true,"level":"0","freq":"","out":"out","x":870,"y":360,"wires":[]},{"id":"482d0a15.2a2a24","type":"function","z":"29b9eb2a.aee554","name":"Toggle 0/1 on input","func":"\ncontext.state = context.state || 0;\n\n(context.state == 0) ? context.state = 1 : context.state = 0;\nmsg.payload = context.state;\n\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":360,"wires":[["326c6f39.d5e7f"]]},{"id":"2231ff3f.5ced6","type":"file in","z":"29b9eb2a.aee554","name":"","filename":"/home/pi/IRMQTT.log","format":"lines","chunk":false,"sendError":false,"encoding":"utf8","x":840,"y":240,"wires":[[]]},{"id":"5388c6e6.811618","type":"file","z":"29b9eb2a.aee554","name":"","filename":"/home/pi/IRMQTT.log","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":700,"y":160,"wires":[[]]},{"id":"509dba40.066934","type":"function","z":"29b9eb2a.aee554","name":"time to readable","func":"msg.payload=Date(msg.payload).toString();\nreturn msg;","outputs":1,"noerr":0,"x":460,"y":100,"wires":[["18b1e651.9241da"]]},{"id":"950eef5b.5477b","type":"delay","z":"29b9eb2a.aee554","name":"","pauseType":"delay","timeout":"0.01","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":470,"y":160,"wires":[["5388c6e6.811618"]]},{"id":"18b1e651.9241da","type":"file","z":"29b9eb2a.aee554","name":"","filename":"/home/pi/IRMQTT.log","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":700,"y":100,"wires":[[]]},{"id":"9c9e7391.fe294","type":"mqtt-broker","z":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""}]