Guest User

CKM012319

a guest
Jan 23rd, 2019
122
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"570d6a9a.658364","type":"tab","label":"FINAL less sonoff","disabled":false,"info":""},{"id":"45300249.68c70c","type":"mqtt in","z":"570d6a9a.658364","name":"","topic":"home/office/esp1/humidity","qos":"2","broker":"be0b7a2f.d823f8","x":130,"y":260,"wires":[["fbbc33a4.683fc"]]},{"id":"fbbc33a4.683fc","type":"ui_gauge","z":"570d6a9a.658364","name":"humidity","group":"1ed7e867.130438","order":2,"width":0,"height":0,"gtype":"gage","title":"HUMIDITY","label":"%","format":"{{value}}","min":"0","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"25","seg2":"75","x":340,"y":260,"wires":[]},{"id":"453aafa5.7cf66","type":"mqtt in","z":"570d6a9a.658364","name":"home/office/esp1/smoke/status","topic":"home/office/esp1/smoke/status","qos":"2","broker":"be0b7a2f.d823f8","x":150,"y":380,"wires":[["7b55edf5.773764"]]},{"id":"c416445c.8f6c68","type":"mqtt in","z":"570d6a9a.658364","name":"home/office/esp1/smoke/notification","topic":"home/office/esp1/smoke/notification","qos":"2","broker":"be0b7a2f.d823f8","x":160,"y":620,"wires":[["60b949c0.94c608"]]},{"id":"7b55edf5.773764","type":"ui_text_input","z":"570d6a9a.658364","name":"Your smoke sensor is:","label":"Your smoke sensor is:","tooltip":"","group":"1ed7e867.130438","order":3,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":360,"y":440,"wires":[[]]},{"id":"60b949c0.94c608","type":"ui_text_input","z":"570d6a9a.658364","name":"","label":"NOTIFICATIONS","tooltip":"","group":"1ed7e867.130438","order":6,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"NOTIFICATIONS","x":350,"y":680,"wires":[[]]},{"id":"7ca790cf.19cb4","type":"mqtt out","z":"570d6a9a.658364","name":"","topic":"home/office/esp1/smoke","qos":"","retain":"","broker":"be0b7a2f.d823f8","x":310,"y":500,"wires":[]},{"id":"e584bbf3.4f5468","type":"ui_button","z":"570d6a9a.658364","name":"ARM","group":"1ed7e867.130438","order":4,"width":0,"height":0,"passthru":false,"label":"ARM","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":70,"y":500,"wires":[["7ca790cf.19cb4"]]},{"id":"be5e804f.3d713","type":"ui_button","z":"570d6a9a.658364","name":"DISARM","group":"1ed7e867.130438","order":5,"width":0,"height":0,"passthru":false,"label":"DISARM","tooltip":"","color":"","bgcolor":"","icon":"","payload":"0","payloadType":"str","topic":"","x":80,"y":560,"wires":[["7ca790cf.19cb4"]]},{"id":"50500409.60a9ec","type":"mqtt out","z":"570d6a9a.658364","name":"home/office/esp1/motion","topic":"home/office/esp1/motion","qos":"","retain":"","broker":"be0b7a2f.d823f8","x":310,"y":940,"wires":[]},{"id":"7e88bd7e.cdfc54","type":"ui_text_input","z":"570d6a9a.658364","name":"Your motion sensor is:","label":"Your motion sensor is:","tooltip":"","group":"1ed7e867.130438","order":7,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":420,"y":860,"wires":[[]]},{"id":"30afaf0f.2ad56","type":"ui_button","z":"570d6a9a.658364","name":"ARM","group":"1ed7e867.130438","order":8,"width":0,"height":0,"passthru":false,"label":"ARM","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":100,"y":920,"wires":[["50500409.60a9ec"]]},{"id":"ff865b63.4355b8","type":"ui_button","z":"570d6a9a.658364","name":"DISARM","group":"1ed7e867.130438","order":9,"width":0,"height":0,"passthru":false,"label":"DISARM","tooltip":"","color":"","bgcolor":"","icon":"","payload":"0","payloadType":"str","topic":"","x":100,"y":980,"wires":[["50500409.60a9ec"]]},{"id":"2dd3b92c.edcbc6","type":"mqtt in","z":"570d6a9a.658364","name":"home/office/esp1/motion/status","topic":"home/office/esp1/motion/status","qos":"2","broker":"be0b7a2f.d823f8","x":170,"y":860,"wires":[["7e88bd7e.cdfc54"]]},{"id":"298936af.620b6a","type":"mqtt in","z":"570d6a9a.658364","name":"home/office/esp1/motion/notification","topic":"home/office/esp1/motion/notification","qos":"2","broker":"be0b7a2f.d823f8","x":180,"y":1040,"wires":[["930177a4.a7dcd8"]]},{"id":"41e9174d.be5c38","type":"function","z":"570d6a9a.658364","name":"","func":"if (msg.payload == \"MOTION DETECTED\") {\n msg.topic=\"Motion was detected in your office\";\n msg.payload=\"Motion was detected\";\n return msg;\n}\n\nelse {\n return null;\n} ","outputs":1,"noerr":0,"x":230,"y":1100,"wires":[["72960e9c.8c52f"]]},{"id":"930177a4.a7dcd8","type":"ui_text_input","z":"570d6a9a.658364","name":"Notifications:","label":"Notifications:","tooltip":"","group":"1ed7e867.130438","order":10,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":430,"y":1040,"wires":[[]]},{"id":"72960e9c.8c52f","type":"e-mail","z":"570d6a9a.658364","server":"smtp.gmail.com","port":"465","secure":true,"name":"merkelck@gmail.com","dname":"Email notification","x":430,"y":1100,"wires":[]},{"id":"e1131716.bcb448","type":"mqtt in","z":"570d6a9a.658364","name":"","topic":"home/office/esp1/temperature","qos":"2","broker":"be0b7a2f.d823f8","x":150,"y":320,"wires":[["4deace97.ecff3"]]},{"id":"4deace97.ecff3","type":"ui_gauge","z":"570d6a9a.658364","name":"temperature","group":"1ed7e867.130438","order":1,"width":0,"height":0,"gtype":"gage","title":"TEMPERATURE","label":"degrees","format":"{{value}}","min":0,"max":"120","colors":["#00b500","#e6e600","#ca3838"],"seg1":"40","seg2":"80","x":370,"y":320,"wires":[]},{"id":"be0b7a2f.d823f8","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"1ed7e867.130438","type":"ui_group","z":"","name":"FINAL","tab":"8cdc88f5.0d6d08","order":1,"disp":true,"width":"6","collapse":false},{"id":"8cdc88f5.0d6d08","type":"ui_tab","z":"","name":"COURSE","icon":"dashboard","order":2,"disabled":false,"hidden":false}]
RAW Paste Data