MQTT & IOT AUTOMATION

Node-Red Flow Samples/Sharing – #539 by aaiyar – Code Share

No problem. Here you go: Sequence [{“id”:”9e8492cf.83872″,”type”:”hubitat device”,”z”:”afda3b03.8d448″,”name”:”Ashok’s Car Presence”,”server”:”a22e0ea9.276dc8″,”deviceId”:”1831″,”attribute”:”presence”,”sendEvent”:true,”x”:190,”y”:1820,”wires”:[[“c192cfee.34db68”]]},{“id”:”c192cfee.34db68″,”type”:”switch”,”z”:”afda3b03.8d448″,”name”:”present/not present”,”property”:”payload.value”,”propertyType”:”msg”,”rules”:[{“t”:”eq”,”v”:”present”,”vt”:”str”},{“t”:”eq”,”v”:”not present”,”vt”:”str”}],”checkall”:”true”,”repair”:false,”outputs”:2,”x”:440,”y”:1820,”wires”:[[“a97d8eb.363fa7”],[“a7e28a4e.54c43”]]},{“id”:”a97d8eb.363fa7″,”type”:”delay”,”z”:”afda3b03.8d448″,”name”:””,”pauseType”:”delay”,”timeout”:”2″,”timeoutUnits”:”seconds”,”rate”:”1″,”nbRateUnits”:”1″,”rateUnits”:”second”,”randomFirst”:”1″,”randomLast”:”5″,”randomUnits”:”seconds”,”drop”:false,”x”:595,”y”:1780,”wires”:[[“ebd0a748.7b5068″]],”l”:false},{“id”:”a7e28a4e.54c43″,”type”:”hubitat device”,”z”:”afda3b03.8d448″,”name”:”Contact – Garage Door”,”server”:”662851c4.3ccad”,”deviceId”:”4557″,”attribute”:”contact”,”sendEvent”:false,”x”:690,”y”:1860,”wires”:[[“15eed554.2d2c7b”]]},{“id”:”ebd0a748.7b5068″,”type”:”switch”,”z”:”afda3b03.8d448″,”name”:”just_arrived = t”,”property”:”just_arrived”,”propertyType”:”global”,”rules”:[{“t”:”true”}],”checkall”:”true”,”repair”:false,”outputs”:1,”x”:720,”y”:1780,”wires”:[[“f96f480.efb8cb8”]]},{“id”:”15eed554.2d2c7b”,”type”:”switch”,”z”:”afda3b03.8d448″,”name”:”open”,”property”:”payload.value”,”propertyType”:”msg”,”rules”:[{“t”:”eq”,”v”:”open”,”vt”:”str”}],”checkall”:”true”,”repair”:false,”outputs”:1,”x”:890,”y”:1860,”wires”:[[“50a021d6.db4df8”]]},{“id”:”f96f480.efb8cb8″,”type”:”time-range-switch”,”z”:”afda3b03.8d448″,”name”:”Dawn-9PM”,”lat”:”29.977091″,”lon”:”-90.143000″,”startTime”:”sunrise”,”endTime”:”21:00″,”startOffset”:0,”endOffset”:0,”x”:910,”y”:1780,”wires”:[[“fd722222.093e4”],[]]},{“id”:”50a021d6.db4df8″,”type”:”hubitat command”,”z”:”afda3b03.8d448″,”name”:”Garage Door Down ON”,”server”:”662851c4.3ccad”,”deviceId”:”226″,”command”:”on”,”commandArgs”:””,”x”:1090,”y”:1860,”wires”:[[]]},{“id”:”fd722222.093e4″,”type”:”hubitat device”,”z”:”afda3b03.8d448″,”name”:”Contact – Garage Door”,”server”:”662851c4.3ccad”,”deviceId”:”4557″,”attribute”:”contact”,”sendEvent”:false,”x”:1190,”y”:1780,”wires”:[[“5cba2204.3ec434”]]},{“id”:”5cba2204.3ec434″,”type”:”switch”,”z”:”afda3b03.8d448″,”name”:”closed”,”property”:”payload.value”,”propertyType”:”msg”,”rules”:[{“t”:”eq”,”v”:”closed”,”vt”:”str”}],”checkall”:”true”,”repair”:false,”outputs”:1,”x”:1400,”y”:1780,”wires”:[[“ecea6f9f.fb7548”]]},{“id”:”ecea6f9f.fb7548″,”type”:”hubitat command”,”z”:”afda3b03.8d448″,”name”:”Garage Door Up ON”,”server”:”662851c4.3ccad”,”deviceId”:”225″,”command”:”on”,”commandArgs”:””,”x”:1600,”y”:1780,”wires”:[[]]},{“id”:”a22e0ea9.276dc8″,”type”:”hubitat…Read moreNode-Red Flow Samples/Sharing – #539 by aaiyar – Code Share