SHARE
TWEET

Lights on/off based on motion detection & the time of day

3lvl0 Aug 26th, 2018 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"67d01a16.534764","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1900,"wires":[["16421d16.0087a3"],["78ec836b.19338c"]]},{"id":"9ef51fc6.063b5","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1980,"wires":[["4cfe64a7.7c296c"],["fd548ede.9b6ed"]]},{"id":"a527fe0a.c63cd","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":2060,"wires":[["8041bac4.209b28"],["459e90da.a7233"]]},{"id":"7714261b.7d7818","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1700,"wires":[["236fcc7a.397774"],["d9c82c97.3a809"]]},{"id":"ab759c09.b279e","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1160,"wires":[["4cbc5d24.020514"],["f4fcc95b.f60a18"]]},{"id":"64c318d6.00b538","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1240,"wires":[["541ae43a.26d57c"],["9b7fdf18.c3a95"]]},{"id":"2d01a57a.fdd54a","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1320,"wires":[["29edf0d5.313b3"],["1f0a2471.f7350c"]]},{"id":"e8331e14.3b93","type":"switch","z":"d4708c48.2c274","name":"Switch: On / Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":940,"y":60,"wires":[["8648e3c1.8bbd1"],["e7b0cb5.e725338"]]},{"id":"69b0ff7a.27a01","type":"switch","z":"d4708c48.2c274","name":"Switch: On / Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":940,"y":220,"wires":[["7d419cba.04eb04"],["978f66.47056098"]]},{"id":"39b73110.3e17ae","type":"switch","z":"d4708c48.2c274","name":"Switch: On / Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":940,"y":300,"wires":[["68cf28c3.570668"],["a1bb5454.5f8e38"]]},{"id":"523b526.7a079ac","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":910,"y":440,"wires":[["bed821e6.6fcae"],["a03e3cb.f4c8ac"]]},{"id":"208d3ade.fb70d6","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":910,"y":520,"wires":[["2adc304.b9380d"],["5f46abc1.f1d974"]]},{"id":"a0acfb2e.e39d78","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":910,"y":600,"wires":[["c5e8dd2d.f14b5"],["611e463f.0c9f28"]]},{"id":"a9204981.f75c08","type":"server-state-changed","z":"d4708c48.2c274","name":"Office Motion","server":"3cd02fb5.d7f9f","entityidfilter":"binary_sensor.motion_sensor_office","entityidfiltertype":"substring","haltifstate":"","x":90,"y":1900,"wires":[["53f4810.1ad628","3dd0fced.4c9c64","40684bf5.6bc764","86bc1d04.63c23","8d9a9319.69d79"]]},{"id":"f349ac84.eafca","type":"server-state-changed","z":"d4708c48.2c274","name":"Front Porch Motion","server":"3cd02fb5.d7f9f","entityidfilter":"binary_sensor.motion_sensor_front_door","entityidfiltertype":"substring","haltifstate":"","x":110,"y":1160,"wires":[["6c2331b9.349b2","a0de058.2906ef8","6e053456.2290ec","c12b0b85.196f28","c0cfe096.2c743"]]},{"id":"30d31cf.760d4e4","type":"server-state-changed","z":"d4708c48.2c274","name":"Living Room Motion","server":"3cd02fb5.d7f9f","entityidfilter":"binary_sensor.motion_sensor_living_room","entityidfiltertype":"substring","haltifstate":"","x":110,"y":1540,"wires":[["bd2a56dc.8a2988","e6159ee2.9bbcc","4fbcb80e.39c0f8","39c74d17.f771d2","73926874.5ec408"]]},{"id":"19696ff.49faa9","type":"server-state-changed","z":"d4708c48.2c274","name":"Bathroom Motion","server":"3cd02fb5.d7f9f","entityidfilter":"binary_sensor.motion_sensor_bathroom","entityidfiltertype":"substring","haltifstate":"","x":140,"y":80,"wires":[["58c56e8e.0865f","46d43f01.9e65d","db869c93.11aec","985c8323.b1b1c","e00c8da4.77f66"]]},{"id":"dad469ac.5d47d8","type":"server-state-changed","z":"d4708c48.2c274","name":"Bedroom Motion","server":"3cd02fb5.d7f9f","entityidfilter":"binary_sensor.motion_sensor_bedroom","entityidfiltertype":"substring","haltifstate":"","x":100,"y":440,"wires":[["1d354ea5.7552c1","bf3bbe88.d4c87","d4d5448c.7589b8","d550607d.8ccd6","c5c42080.ce6d7"]]},{"id":"3d53e365.e327fc","type":"api-call-service","z":"d4708c48.2c274","name":"OFF","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.office\"}","mergecontext":"","x":1410,"y":1980,"wires":[[]]},{"id":"51a49cf8.b58cc4","type":"api-call-service","z":"d4708c48.2c274","name":"ON","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.office\"}","mergecontext":"","x":1410,"y":1900,"wires":[[]]},{"id":"61aadb75.def434","type":"api-call-service","z":"d4708c48.2c274","name":"OFF","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.living_room\"}","mergecontext":"","x":1410,"y":1620,"wires":[[]]},{"id":"846ef1e2.750a7","type":"api-call-service","z":"d4708c48.2c274","name":"ON","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.living_room\"}","mergecontext":"","x":1410,"y":1540,"wires":[[]]},{"id":"64ee923d.a0ffec","type":"api-call-service","z":"d4708c48.2c274","name":"OFF","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.front_porch\"}","mergecontext":"","x":1410,"y":1240,"wires":[[]]},{"id":"a629322.e41edd","type":"api-call-service","z":"d4708c48.2c274","name":"ON","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.front_porch\"}","mergecontext":"","x":1410,"y":1160,"wires":[[]]},{"id":"3c35d511.4f5e4a","type":"api-call-service","z":"d4708c48.2c274","name":"OFF","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.bathroom\"}","mergecontext":"","x":1450,"y":140,"wires":[[]]},{"id":"20fc8743.cda838","type":"api-call-service","z":"d4708c48.2c274","name":"ON","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.bathroom\"}","mergecontext":"","x":1450,"y":60,"wires":[[]]},{"id":"c51c03d9.3aaa4","type":"api-call-service","z":"d4708c48.2c274","name":"OFF","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.bedroom\"}","mergecontext":"","x":1450,"y":520,"wires":[[]]},{"id":"5d214e3e.2a841","type":"api-call-service","z":"d4708c48.2c274","name":"ON","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.bedroom\"}","mergecontext":"","x":1450,"y":440,"wires":[[]]},{"id":"78ec836b.19338c","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1900,"wires":[["36859e8b.6465e2"],[]]},{"id":"fd548ede.9b6ed","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1070,"y":1980,"wires":[["8dc5a0ee.bb05d"],[]]},{"id":"459e90da.a7233","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":2060,"wires":[["7a15a358.9d542c"],[]]},{"id":"7583f07.3545d1","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1540,"wires":[["15515cfb.57eae3"],[]]},{"id":"9d6b0a50.ae2208","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1070,"y":1620,"wires":[["ffaebcb2.b9de1"],[]]},{"id":"d9c82c97.3a809","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1700,"wires":[["fcbab6c5.1bbf68"],[]]},{"id":"f4fcc95b.f60a18","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1160,"wires":[["a461a5c7.15ca08"],[]]},{"id":"9b7fdf18.c3a95","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1070,"y":1240,"wires":[["caf9046e.7474b8"],[]]},{"id":"1f0a2471.f7350c","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1320,"wires":[["232af2d5.9cd44e"],[]]},{"id":"e7b0cb5.e725338","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1090,"y":60,"wires":[["2a91e742.b03f58"],[]]},{"id":"978f66.47056098","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1090,"y":220,"wires":[["3efe09e6.5ad3a6"],[]]},{"id":"a1bb5454.5f8e38","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1090,"y":300,"wires":[["85eae37d.e088e"],[]]},{"id":"a03e3cb.f4c8ac","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1090,"y":440,"wires":[["ad50d2ce.2f5d5"],[]]},{"id":"5f46abc1.f1d974","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1090,"y":520,"wires":[["fc8cf61f.b18398"],[]]},{"id":"611e463f.0c9f28","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1090,"y":600,"wires":[["31faf9a6.4e34a6"],[]]},{"id":"58c56e8e.0865f","type":"time-range-switch","z":"d4708c48.2c274","name":"Midnight to 5:59AM","lat":"39.6462","lon":"-104.828","startTime":"00:00","endTime":"05:59","startOffset":0,"endOffset":0,"x":690,"y":60,"wires":[["e8331e14.3b93"],[]]},{"id":"46d43f01.9e65d","type":"time-range-switch","z":"d4708c48.2c274","name":"6:00AM to 8:59AM","lat":"39.6462","lon":"-104.828","startTime":"06:00","endTime":"08:59","startOffset":0,"endOffset":0,"x":690,"y":140,"wires":[["12e80810.dcea28"],[]]},{"id":"db869c93.11aec","type":"time-range-switch","z":"d4708c48.2c274","name":"9:00AM to 3:59PM","lat":"39.6462","lon":"-104.828","startTime":"09:00","endTime":"15:59","startOffset":0,"endOffset":0,"x":690,"y":220,"wires":[["69b0ff7a.27a01"],[]]},{"id":"985c8323.b1b1c","type":"time-range-switch","z":"d4708c48.2c274","name":"4:00PM to 9:59PM","lat":"39.6462","lon":"-104.828","startTime":"16:00","endTime":"23:59","startOffset":0,"endOffset":0,"x":690,"y":300,"wires":[["39b73110.3e17ae"],[]]},{"id":"12e80810.dcea28","type":"switch","z":"d4708c48.2c274","name":"Switch: On / Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":940,"y":140,"wires":[["e8c001cc.12d16"],["a3b1e1e9.5c582"]]},{"id":"a3b1e1e9.5c582","type":"stoptimer","z":"d4708c48.2c274","duration":"30","units":"Minute","payloadtype":"num","payloadval":"0","name":"30 mins","x":1100,"y":140,"wires":[["d5bcbb45.1c7f58"],[]]},{"id":"1d354ea5.7552c1","type":"time-range-switch","z":"d4708c48.2c274","name":"Midnight to 5:59AM","lat":"39.6462","lon":"-104.828","startTime":"00:00","endTime":"05:59","startOffset":0,"endOffset":0,"x":690,"y":440,"wires":[["523b526.7a079ac"],[]]},{"id":"bf3bbe88.d4c87","type":"time-range-switch","z":"d4708c48.2c274","name":"6:00AM to 8:59AM","lat":"39.6462","lon":"-104.828","startTime":"06:00","endTime":"08:59","startOffset":0,"endOffset":0,"x":690,"y":520,"wires":[["208d3ade.fb70d6"],[]]},{"id":"d4d5448c.7589b8","type":"time-range-switch","z":"d4708c48.2c274","name":"9:00AM to 3:59PM","lat":"39.6462","lon":"-104.828","startTime":"09:00","endTime":"15:59","startOffset":0,"endOffset":0,"x":690,"y":600,"wires":[["a0acfb2e.e39d78"],[]]},{"id":"d550607d.8ccd6","type":"time-range-switch","z":"d4708c48.2c274","name":"4:00PM to 9:59PM","lat":"39.6462","lon":"-104.828","startTime":"16:00","endTime":"23:59","startOffset":0,"endOffset":0,"x":690,"y":680,"wires":[["cb9fba98.44fa38"],[]]},{"id":"45a71466.6f4dbc","type":"comment","z":"d4708c48.2c274","name":"Bathroom Motion","info":"","x":140,"y":40,"wires":[]},{"id":"cb9f1728.1b9488","type":"comment","z":"d4708c48.2c274","name":"Bedroom Motion","info":"","x":100,"y":400,"wires":[]},{"id":"cb9fba98.44fa38","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":910,"y":680,"wires":[["edb018e6.79f148"],["caab36a2.536fa8"]]},{"id":"caab36a2.536fa8","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1090,"y":680,"wires":[["31d9e9b5.732106"],[]]},{"id":"cbd16d96.e221c","type":"comment","z":"d4708c48.2c274","name":"Front Porch Motion","info":"","x":110,"y":1120,"wires":[]},{"id":"6c2331b9.349b2","type":"time-range-switch","z":"d4708c48.2c274","name":"Midnight to 5:59AM","lat":"39.6462","lon":"-104.828","startTime":"00:00","endTime":"05:59","startOffset":0,"endOffset":0,"x":670,"y":1160,"wires":[["ab759c09.b279e"],[]]},{"id":"a0de058.2906ef8","type":"time-range-switch","z":"d4708c48.2c274","name":"6:00AM to 8:59AM","lat":"39.6462","lon":"-104.828","startTime":"06:00","endTime":"08:59","startOffset":0,"endOffset":0,"x":670,"y":1240,"wires":[["64c318d6.00b538"],[]]},{"id":"6e053456.2290ec","type":"time-range-switch","z":"d4708c48.2c274","name":"9:00AM to 3:59PM","lat":"39.6462","lon":"-104.828","startTime":"09:00","endTime":"15:59","startOffset":0,"endOffset":0,"x":670,"y":1320,"wires":[["2d01a57a.fdd54a"],[]]},{"id":"c12b0b85.196f28","type":"time-range-switch","z":"d4708c48.2c274","name":"4:00PM to 9:59PM","lat":"39.6462","lon":"-104.828","startTime":"16:00","endTime":"23:59","startOffset":0,"endOffset":0,"x":670,"y":1400,"wires":[["6214cac5.060ff4"],[]]},{"id":"6214cac5.060ff4","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1400,"wires":[["2cc52779.1edbb8"],["f26aa9f1.6efe38"]]},{"id":"f26aa9f1.6efe38","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1400,"wires":[["997baf26.18d0e"],[]]},{"id":"e03863f5.e693b","type":"comment","z":"d4708c48.2c274","name":"Living Room Motion","info":"","x":110,"y":1500,"wires":[]},{"id":"bd2a56dc.8a2988","type":"time-range-switch","z":"d4708c48.2c274","name":"Midnight to 5:59AM","lat":"39.6462","lon":"-104.828","startTime":"00:00","endTime":"05:59","startOffset":0,"endOffset":0,"x":670,"y":1540,"wires":[["cf03e2f.8721b2"],[]]},{"id":"e6159ee2.9bbcc","type":"time-range-switch","z":"d4708c48.2c274","name":"6:00AM to 8:59AM","lat":"39.6462","lon":"-104.828","startTime":"06:00","endTime":"08:59","startOffset":0,"endOffset":0,"x":670,"y":1620,"wires":[["bf332f59.cef2c"],[]]},{"id":"4fbcb80e.39c0f8","type":"time-range-switch","z":"d4708c48.2c274","name":"9:00AM to 3:59PM","lat":"39.6462","lon":"-104.828","startTime":"09:00","endTime":"15:59","startOffset":0,"endOffset":0,"x":670,"y":1700,"wires":[["7714261b.7d7818"],[]]},{"id":"39c74d17.f771d2","type":"time-range-switch","z":"d4708c48.2c274","name":"4:00PM to 9:59PM","lat":"39.6462","lon":"-104.828","startTime":"16:00","endTime":"23:59","startOffset":0,"endOffset":0,"x":670,"y":1780,"wires":[["f2731c74.0408"],[]]},{"id":"659f6128.8c91d","type":"comment","z":"d4708c48.2c274","name":"Office Motion","info":"","x":90,"y":1860,"wires":[]},{"id":"f2731c74.0408","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1780,"wires":[["ef34262b.5b4d58"],["4780c701.87b188"]]},{"id":"4780c701.87b188","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1780,"wires":[["5c05dc1a.c62d94"],[]]},{"id":"53f4810.1ad628","type":"time-range-switch","z":"d4708c48.2c274","name":"Midnight to 5:59AM","lat":"39.6462","lon":"-104.828","startTime":"00:00","endTime":"05:59","startOffset":0,"endOffset":0,"x":670,"y":1900,"wires":[["67d01a16.534764"],[]]},{"id":"3dd0fced.4c9c64","type":"time-range-switch","z":"d4708c48.2c274","name":"6:00AM to 8:59AM","lat":"39.6462","lon":"-104.828","startTime":"06:00","endTime":"08:59","startOffset":0,"endOffset":0,"x":670,"y":1980,"wires":[["9ef51fc6.063b5"],[]]},{"id":"40684bf5.6bc764","type":"time-range-switch","z":"d4708c48.2c274","name":"9:00AM to 3:59PM","lat":"39.6462","lon":"-104.828","startTime":"09:00","endTime":"15:59","startOffset":0,"endOffset":0,"x":670,"y":2060,"wires":[["a527fe0a.c63cd"],[]]},{"id":"86bc1d04.63c23","type":"time-range-switch","z":"d4708c48.2c274","name":"4:00PM to 9:59PM","lat":"39.6462","lon":"-104.828","startTime":"16:00","endTime":"23:59","startOffset":0,"endOffset":0,"x":670,"y":2140,"wires":[["17ff7e28.db72b2"],[]]},{"id":"bf332f59.cef2c","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1620,"wires":[["d5f6e1e7.b8652"],["9d6b0a50.ae2208"]]},{"id":"cf03e2f.8721b2","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1540,"wires":[["7c1fada2.774994"],["7583f07.3545d1"]]},{"id":"17ff7e28.db72b2","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":2140,"wires":[["8d3d789d.eadaf8"],["a2d4bf74.f5b81"]]},{"id":"a2d4bf74.f5b81","type":"stoptimer","z":"d4708c48.2c274","duration":"15","units":"Minute","payloadtype":"num","payloadval":"0","name":"15 mins","x":1080,"y":2140,"wires":[["3d53e365.e327fc","f4d73d4e.eae4a"],[]]},{"id":"7a15a358.9d542c","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":2100,"wires":[["3d53e365.e327fc"]]},{"id":"8041bac4.209b28","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":2060,"wires":[["51a49cf8.b58cc4"]]},{"id":"f4d73d4e.eae4a","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":2180,"wires":[["3d53e365.e327fc"]]},{"id":"8d3d789d.eadaf8","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":2140,"wires":[["51a49cf8.b58cc4"]]},{"id":"36859e8b.6465e2","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":1940,"wires":[["51a49cf8.b58cc4"]]},{"id":"16421d16.0087a3","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":1900,"wires":[["51a49cf8.b58cc4"]]},{"id":"8dc5a0ee.bb05d","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":2020,"wires":[["51a49cf8.b58cc4"]]},{"id":"4cfe64a7.7c296c","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.office_motion_boolean","x":1240,"y":1980,"wires":[["51a49cf8.b58cc4"]]},{"id":"133bd62e.616cda","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":800,"wires":[["41c4ff8d.2a75b"],["cb7d136c.f3ee4"]]},{"id":"359dee63.8bf4a2","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":880,"wires":[["a10d6cc.fcaa29"],["51bb3dc2.6be8a4"]]},{"id":"8ce476a4.636a28","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":960,"wires":[["723ba3e8.d3923c"],["46d1f579.95f45c"]]},{"id":"685f6105.04c18","type":"server-state-changed","z":"d4708c48.2c274","name":"Dining Room Motion","server":"3cd02fb5.d7f9f","entityidfilter":"binary_sensor.motion_sensor_dining_room","entityidfiltertype":"substring","haltifstate":"","x":110,"y":800,"wires":[["905cc0e6.cb0f6","27ad7234.5ec64e","50dedb77.a2ca64","d11fbb6b.dfccf8","9c16d56b.c85fb8"]]},{"id":"10f7bd8.2a51043","type":"api-call-service","z":"d4708c48.2c274","name":"OFF","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.dining_room\"}","mergecontext":"","x":1450,"y":880,"wires":[[]]},{"id":"976bd806.9344b8","type":"api-call-service","z":"d4708c48.2c274","name":"ON","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.dining_room\"}","mergecontext":"","x":1450,"y":800,"wires":[[]]},{"id":"cb7d136c.f3ee4","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":800,"wires":[["6b197c9b.113504"],[]]},{"id":"51bb3dc2.6be8a4","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1070,"y":880,"wires":[["5551f79.97b0608"],[]]},{"id":"46d1f579.95f45c","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":960,"wires":[["a75e0acf.9a4868"],[]]},{"id":"6f6530e9.7885f","type":"comment","z":"d4708c48.2c274","name":"Dining Room Motion","info":"","x":110,"y":760,"wires":[]},{"id":"905cc0e6.cb0f6","type":"time-range-switch","z":"d4708c48.2c274","name":"Midnight to 5:59AM","lat":"39.6462","lon":"-104.828","startTime":"00:00","endTime":"05:59","startOffset":0,"endOffset":0,"x":670,"y":800,"wires":[["133bd62e.616cda"],[]]},{"id":"27ad7234.5ec64e","type":"time-range-switch","z":"d4708c48.2c274","name":"6:00AM to 8:59AM","lat":"39.6462","lon":"-104.828","startTime":"06:00","endTime":"08:59","startOffset":0,"endOffset":0,"x":670,"y":880,"wires":[["359dee63.8bf4a2"],[]]},{"id":"50dedb77.a2ca64","type":"time-range-switch","z":"d4708c48.2c274","name":"9:00AM to 3:59PM","lat":"39.6462","lon":"-104.828","startTime":"09:00","endTime":"15:59","startOffset":0,"endOffset":0,"x":670,"y":960,"wires":[["8ce476a4.636a28"],[]]},{"id":"d11fbb6b.dfccf8","type":"time-range-switch","z":"d4708c48.2c274","name":"4:00PM to 9:59PM","lat":"39.6462","lon":"-104.828","startTime":"16:00","endTime":"23:59","startOffset":0,"endOffset":0,"x":670,"y":1040,"wires":[["72ee7c10.7bf044"],[]]},{"id":"72ee7c10.7bf044","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":1040,"wires":[["d06e1fcb.f26d9"],["57345c9d.764e14"]]},{"id":"57345c9d.764e14","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1070,"y":1040,"wires":[["4ddd96fe.5973b8"],[]]},{"id":"fcbab6c5.1bbf68","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1740,"wires":[["61aadb75.def434"]]},{"id":"236fcc7a.397774","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1700,"wires":[["846ef1e2.750a7"]]},{"id":"5c05dc1a.c62d94","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1820,"wires":[["61aadb75.def434"]]},{"id":"ef34262b.5b4d58","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1780,"wires":[["846ef1e2.750a7"]]},{"id":"15515cfb.57eae3","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1580,"wires":[["61aadb75.def434"]]},{"id":"7c1fada2.774994","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1540,"wires":[["846ef1e2.750a7"]]},{"id":"ffaebcb2.b9de1","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1660,"wires":[["61aadb75.def434"]]},{"id":"d5f6e1e7.b8652","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.living_room_motion_boolean","x":1240,"y":1620,"wires":[["846ef1e2.750a7"]]},{"id":"a461a5c7.15ca08","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1200,"wires":[["64ee923d.a0ffec"]]},{"id":"4cbc5d24.020514","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1160,"wires":[["a629322.e41edd"]]},{"id":"caf9046e.7474b8","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1280,"wires":[["64ee923d.a0ffec"]]},{"id":"541ae43a.26d57c","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1240,"wires":[["a629322.e41edd"]]},{"id":"232af2d5.9cd44e","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1360,"wires":[["64ee923d.a0ffec"]]},{"id":"29edf0d5.313b3","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1320,"wires":[["a629322.e41edd"]]},{"id":"997baf26.18d0e","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1440,"wires":[["64ee923d.a0ffec"]]},{"id":"2cc52779.1edbb8","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.front_porch_motion_boolean","x":1240,"y":1400,"wires":[["a629322.e41edd"]]},{"id":"6b197c9b.113504","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":840,"wires":[["10f7bd8.2a51043"]]},{"id":"41c4ff8d.2a75b","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":800,"wires":[["976bd806.9344b8"]]},{"id":"5551f79.97b0608","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":920,"wires":[["10f7bd8.2a51043"]]},{"id":"a10d6cc.fcaa29","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":880,"wires":[["976bd806.9344b8"]]},{"id":"a75e0acf.9a4868","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":1000,"wires":[["10f7bd8.2a51043"]]},{"id":"723ba3e8.d3923c","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":960,"wires":[["976bd806.9344b8"]]},{"id":"4ddd96fe.5973b8","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":1080,"wires":[["10f7bd8.2a51043"]]},{"id":"d06e1fcb.f26d9","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.dining_room_motion_boolean","x":1240,"y":1040,"wires":[["976bd806.9344b8"]]},{"id":"ad50d2ce.2f5d5","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":480,"wires":[["c51c03d9.3aaa4"]]},{"id":"bed821e6.6fcae","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":440,"wires":[["5d214e3e.2a841"]]},{"id":"2a91e742.b03f58","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":100,"wires":[["3c35d511.4f5e4a"]]},{"id":"8648e3c1.8bbd1","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":60,"wires":[["20fc8743.cda838"]]},{"id":"d5bcbb45.1c7f58","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":180,"wires":[["3c35d511.4f5e4a"]]},{"id":"e8c001cc.12d16","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":140,"wires":[["20fc8743.cda838"]]},{"id":"3efe09e6.5ad3a6","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":260,"wires":[["3c35d511.4f5e4a"]]},{"id":"7d419cba.04eb04","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":220,"wires":[["20fc8743.cda838"]]},{"id":"85eae37d.e088e","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":340,"wires":[["3c35d511.4f5e4a"]]},{"id":"68cf28c3.570668","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bathroom_motion_boolean","x":1260,"y":300,"wires":[["20fc8743.cda838"]]},{"id":"fc8cf61f.b18398","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":560,"wires":[["c51c03d9.3aaa4"]]},{"id":"2adc304.b9380d","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":520,"wires":[["5d214e3e.2a841"]]},{"id":"31faf9a6.4e34a6","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":640,"wires":[["c51c03d9.3aaa4"]]},{"id":"c5e8dd2d.f14b5","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":600,"wires":[["5d214e3e.2a841"]]},{"id":"31d9e9b5.732106","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":720,"wires":[["c51c03d9.3aaa4"]]},{"id":"edb018e6.79f148","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.bedroom_motion_boolean","x":1260,"y":680,"wires":[["5d214e3e.2a841"]]},{"id":"6f5b19b8.ab3fc8","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":2280,"wires":[["40bb2927.818678"],["26c731ac.444c2e"]]},{"id":"f9e43dcc.45556","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":2360,"wires":[["ed38b24d.01ffb"],["35716728.623638"]]},{"id":"dec8f39c.141d5","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":2440,"wires":[["2d85b7fd.d34368"],["e72b9eb3.631ec"]]},{"id":"3a5124ac.f68dcc","type":"server-state-changed","z":"d4708c48.2c274","name":"Entryway Motion","server":"3cd02fb5.d7f9f","entityidfilter":"binary_sensor.motion_sensor_entryway","entityidfiltertype":"substring","haltifstate":"","x":100,"y":2280,"wires":[["ce3d877a.484328","390762ca.55058e","28018f97.1a9c8","7e68c026.50635","6bcaad76.16e334"]]},{"id":"f8afa127.30086","type":"api-call-service","z":"d4708c48.2c274","name":"OFF","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.living_room\"}","mergecontext":"","x":1450,"y":2360,"wires":[[]]},{"id":"abeb33ca.41633","type":"api-call-service","z":"d4708c48.2c274","name":"ON","server":"3cd02fb5.d7f9f","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.living_room\"}","mergecontext":"","x":1450,"y":2280,"wires":[[]]},{"id":"26c731ac.444c2e","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1110,"y":2280,"wires":[["9d036850.cc4f88"],[]]},{"id":"35716728.623638","type":"stoptimer","z":"d4708c48.2c274","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 mins","x":1110,"y":2360,"wires":[["c6d74bbf.3dce28"],[]]},{"id":"e72b9eb3.631ec","type":"stoptimer","z":"d4708c48.2c274","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"1 mins","x":1110,"y":2440,"wires":[["8076f190.040d6"],[]]},{"id":"6fc70b8d.5722f4","type":"comment","z":"d4708c48.2c274","name":"Entryway","info":"","x":80,"y":2240,"wires":[]},{"id":"ce3d877a.484328","type":"time-range-switch","z":"d4708c48.2c274","name":"Midnight to 5:59AM","lat":"39.6462","lon":"-104.828","startTime":"00:00","endTime":"05:59","startOffset":0,"endOffset":0,"x":710,"y":2280,"wires":[["6f5b19b8.ab3fc8"],[]]},{"id":"390762ca.55058e","type":"time-range-switch","z":"d4708c48.2c274","name":"6:00AM to 8:59AM","lat":"39.6462","lon":"-104.828","startTime":"06:00","endTime":"08:59","startOffset":0,"endOffset":0,"x":710,"y":2360,"wires":[["f9e43dcc.45556"],[]]},{"id":"28018f97.1a9c8","type":"time-range-switch","z":"d4708c48.2c274","name":"9:00AM to 3:59PM","lat":"39.6462","lon":"-104.828","startTime":"09:00","endTime":"15:59","startOffset":0,"endOffset":0,"x":710,"y":2440,"wires":[["dec8f39c.141d5"],[]]},{"id":"7e68c026.50635","type":"time-range-switch","z":"d4708c48.2c274","name":"4:00PM to 9:59PM","lat":"39.6462","lon":"-104.828","startTime":"16:00","endTime":"23:59","startOffset":0,"endOffset":0,"x":710,"y":2520,"wires":[["192f6451.f702bc"],[]]},{"id":"192f6451.f702bc","type":"switch","z":"d4708c48.2c274","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":2520,"wires":[["8c7471b0.c0d5e"],["5c22d376.9ae45c"]]},{"id":"5c22d376.9ae45c","type":"stoptimer","z":"d4708c48.2c274","duration":"15","units":"Minute","payloadtype":"num","payloadval":"0","name":"15 mins","x":1120,"y":2520,"wires":[["f8afa127.30086","6b80768b.5b20b8"],[]]},{"id":"8076f190.040d6","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2480,"wires":[["f8afa127.30086"]]},{"id":"2d85b7fd.d34368","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2440,"wires":[["abeb33ca.41633"]]},{"id":"6b80768b.5b20b8","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2560,"wires":[["f8afa127.30086"]]},{"id":"8c7471b0.c0d5e","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2520,"wires":[["abeb33ca.41633"]]},{"id":"9d036850.cc4f88","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2320,"wires":[["abeb33ca.41633"]]},{"id":"40bb2927.818678","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2280,"wires":[["abeb33ca.41633"]]},{"id":"c6d74bbf.3dce28","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2400,"wires":[["abeb33ca.41633"]]},{"id":"ed38b24d.01ffb","type":"api-current-state","z":"d4708c48.2c274","name":"boolean","server":"3cd02fb5.d7f9f","halt_if":"off","override_topic":true,"override_payload":true,"entity_id":"input_boolean.entryway_motion_boolean","x":1280,"y":2360,"wires":[["abeb33ca.41633"]]},{"id":"e00c8da4.77f66","type":"change","z":"d4708c48.2c274","name":"","rules":[{"t":"set","p":"motion_sensor_bathroom","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":220,"y":180,"wires":[[]]},{"id":"c5c42080.ce6d7","type":"change","z":"d4708c48.2c274","name":"","rules":[{"t":"set","p":"motion_sensor_bedroom","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":193,"y":561,"wires":[[]]},{"id":"9c16d56b.c85fb8","type":"change","z":"d4708c48.2c274","name":"","rules":[{"t":"set","p":"motion_sensor_dining_room","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":170,"y":920,"wires":[[]]},{"id":"c0cfe096.2c743","type":"change","z":"d4708c48.2c274","name":"","rules":[{"t":"set","p":"motion_sensor_front_porch","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":170,"y":1260,"wires":[[]]},{"id":"73926874.5ec408","type":"change","z":"d4708c48.2c274","name":"","rules":[{"t":"set","p":"motion_sensor_living_room","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":170,"y":1680,"wires":[[]]},{"id":"8d9a9319.69d79","type":"change","z":"d4708c48.2c274","name":"","rules":[{"t":"set","p":"motion_sensor_office","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":150,"y":2020,"wires":[[]]},{"id":"6bcaad76.16e334","type":"change","z":"d4708c48.2c274","name":"","rules":[{"t":"set","p":"motion_sensor_entryway","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":180,"y":2400,"wires":[[]]},{"id":"3cd02fb5.d7f9f","type":"server","z":"","name":"Hassio (local)","url":"http://hassio/homeassistant","pass":"99b08501d29f4c83897b6dc10b868f25"}]
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