SHARE
TWEET

Auto Lock & Unlock the Door with Location

3lvl0 Aug 26th, 2018 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"329a4ee9.321d12","type":"comment","z":"b1383faa.b3b57","name":"Auto Lock / Unlock the Door","info":"","x":136,"y":28,"wires":[]},{"id":"8aed8d38.22675","type":"switch","z":"b1383faa.b3b57","name":"home or not_home","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"home","vt":"str"},{"t":"eq","v":"Home","vt":"str"},{"t":"eq","v":"Mailbox","vt":"str"},{"t":"eq","v":"mailbox","vt":"str"},{"t":"eq","v":"not_home","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":585,"y":109,"wires":[["1317d00b.426a1"],["1317d00b.426a1"],["1317d00b.426a1"],["1317d00b.426a1"],["148cafac.5f881"]]},{"id":"bbd21dcd.df0dd","type":"debug","z":"b1383faa.b3b57","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1202,"y":75,"wires":[]},{"id":"1f158d7d.6d8823","type":"debug","z":"b1383faa.b3b57","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1201,"y":130,"wires":[]},{"id":"1fcd3a88.f96f15","type":"server-state-changed","z":"b1383faa.b3b57","name":"device_tracker.homeassistant_brett_phone","server":"3cd02fb5.d7f9f","entityidfilter":"device_tracker.homeassistant_brett_phone","entityidfiltertype":"substring","haltifstate":"","x":196,"y":108,"wires":[["8aed8d38.22675"]]},{"id":"48a8cbe2.bbcf64","type":"api-call-service","z":"b1383faa.b3b57","name":"unlock door","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.unlock_door\" }","mergecontext":"","x":1004,"y":75,"wires":[["bbd21dcd.df0dd"]]},{"id":"db9927b5.565398","type":"api-call-service","z":"b1383faa.b3b57","name":"lock door","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.lock_door\" }","mergecontext":"","x":993,"y":130,"wires":[["1f158d7d.6d8823"]]},{"id":"92a02bf9.9440d8","type":"comment","z":"b1383faa.b3b57","name":"OwnTracks location","info":"","x":126,"y":68,"wires":[]},{"id":"1317d00b.426a1","type":"delay","z":"b1383faa.b3b57","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":799,"y":75,"wires":[["48a8cbe2.bbcf64"]]},{"id":"148cafac.5f881","type":"delay","z":"b1383faa.b3b57","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":798,"y":130,"wires":[["db9927b5.565398"]]},{"id":"3cd02fb5.d7f9f","type":"server","z":"","name":"Hassio (local)","url":"http://hassio/homeassistant","pass":"PASSWORD"}]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top