Skip to content

Instantly share code, notes, and snippets.

@hubmartin
Created January 15, 2019 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hubmartin/96d15213475b0b53b54fccd2013fab4b to your computer and use it in GitHub Desktop.
Save hubmartin/96d15213475b0b53b54fccd2013fab4b to your computer and use it in GitHub Desktop.
[{"id":"e4fe5241.a958d","type":"mqtt in","z":"68313bdd.e9f3c4","name":"","topic":"node/door-sensor:0/door-sensor/a/state","qos":"2","broker":"29c8aeb6.2aa232","x":190,"y":200,"wires":[["49237463.407e4c"]]},{"id":"49237463.407e4c","type":"switch","z":"68313bdd.e9f3c4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"false","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":200,"wires":[["8c741c9.34999e"]]},{"id":"12b5ebdb.15d0a4","type":"mqtt in","z":"68313bdd.e9f3c4","name":"","topic":"node/door-sensor:0/door-sensor/b/state","qos":"2","broker":"29c8aeb6.2aa232","x":190,"y":320,"wires":[["2050d8b1.611298"]]},{"id":"2050d8b1.611298","type":"switch","z":"68313bdd.e9f3c4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"false","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":320,"wires":[["f892dbbd.fd5728"]]},{"id":"f892dbbd.fd5728","type":"change","z":"68313bdd.e9f3c4","name":"","rules":[{"t":"set","p":"mailbox","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":320,"wires":[["cc5b86b1.e810f8"]]},{"id":"8c741c9.34999e","type":"change","z":"68313bdd.e9f3c4","name":"","rules":[{"t":"set","p":"mailbox","pt":"flow","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":200,"wires":[["cc5b86b1.e810f8","77e451e8.0e312"]]},{"id":"cc5b86b1.e810f8","type":"ui_switch","z":"68313bdd.e9f3c4","name":"","label":"Mailbox in","group":"d627277a.c87f28","order":0,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":820,"y":320,"wires":[[]]},{"id":"47d95875.bc4c88","type":"comment","z":"68313bdd.e9f3c4","name":"Top lid opened","info":"","x":120,"y":160,"wires":[]},{"id":"b14f01a7.4fc42","type":"comment","z":"68313bdd.e9f3c4","name":"Side doors opened","info":"","x":130,"y":280,"wires":[]},{"id":"e2f5baf7.2b9048","type":"blynk-ws-out-notify","z":"68313bdd.e9f3c4","name":"","client":"dfccb5c2.d0c7d8","queue":false,"rate":5,"x":1070,"y":260,"wires":[]},{"id":"77e451e8.0e312","type":"change","z":"68313bdd.e9f3c4","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Postman","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":260,"wires":[["e2f5baf7.2b9048","daf1304c.3b5b2"]]},{"id":"da0616ca.462ec8","type":"inject","z":"68313bdd.e9f3c4","name":"Test notification","topic":"","payload":"Postman Test","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":840,"y":200,"wires":[["e2f5baf7.2b9048"]]},{"id":"daf1304c.3b5b2","type":"debug","z":"68313bdd.e9f3c4","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1090,"y":320,"wires":[]},{"id":"29c8aeb6.2aa232","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":""},{"id":"d627277a.c87f28","type":"ui_group","z":"","name":"Garage","tab":"1d7b7814.dcd9a8","order":1,"disp":true,"width":"6","collapse":false},{"id":"dfccb5c2.d0c7d8","type":"blynk-ws-client","z":"","name":"","path":"ws://blynk-cloud.com/websockets","key":"ed058033163b4f4b977e6e1d60c725d9","dbg_all":false,"dbg_read":false,"dbg_write":false,"dbg_notify":false,"dbg_mail":false,"dbg_prop":false,"dbg_sync":false,"dbg_bridge":false,"dbg_low":false,"dbg_pins":"","multi_cmd":false,"proxy_type":"no","proxy_url":""},{"id":"1d7b7814.dcd9a8","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":2}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment