SHARE
TWEET

Morning Traffic Updates

3lvl0 Aug 24th, 2018 (edited) 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"e7b66285.4abac","type":"server-state-changed","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","entityidfilter":"sensor.home_to_work","entityidfiltertype":"substring","haltifstate":"","x":210,"y":3940,"wires":[["5798c43a.77ba3c","50d0136.dc6daec"]]},{"id":"7b232244.a3ba2c","type":"join-message","z":"e1b8a5e0.5377f8","name":"","text":"","title":"","url":"","notificationicon":"","joinConfig":"356eedf0.8d8992","x":980,"y":3940,"wires":[[]]},{"id":"e20cd76d.448ee8","type":"function","z":"e1b8a5e0.5377f8","name":"Join Message Construct","func":"msg.text = \"traffichometowork=:=\" + msg.payload;\nmsg.devices = \"Shield Living Room,Shield Bedroom\";\nreturn msg;","outputs":1,"noerr":0,"x":770,"y":3940,"wires":[["7b232244.a3ba2c"]]},{"id":"d8c02522.ee2368","type":"comment","z":"e1b8a5e0.5377f8","name":"Traffic - Home to Work","info":"","x":160,"y":3900,"wires":[]},{"id":"f673903a.1bd4f","type":"comment","z":"e1b8a5e0.5377f8","name":"Traffic to Shield TV","info":"","x":110,"y":3860,"wires":[]},{"id":"5798c43a.77ba3c","type":"function","z":"e1b8a5e0.5377f8","name":"Store Message","func":"global.set(\"traffic\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":3940,"wires":[["e20cd76d.448ee8","2732e1dd.165abe","8a09bd05.c7bff"]]},{"id":"9897a660.63c878","type":"inject","z":"e1b8a5e0.5377f8","name":"","topic":"","payload":"20","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":3980,"wires":[["5798c43a.77ba3c"]]},{"id":"11a94d8a.b607c2","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.livingroom_gateway_green\" }","mergecontext":"","x":390,"y":4160,"wires":[[]]},{"id":"bcbfebd9.2a9b58","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Green","info":"","x":400,"y":4120,"wires":[]},{"id":"c4b3a8c3.b76af8","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.livingroom_gateway_off\" }","mergecontext":"","x":390,"y":4400,"wires":[[]]},{"id":"8fa0c703.4a1198","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Off","info":"","x":390,"y":4360,"wires":[]},{"id":"4ee3072a.7c8a68","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.livingroom_gateway_yellow\" }","mergecontext":"","x":390,"y":4240,"wires":[[]]},{"id":"16f93d4d.46eac3","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Yellow","info":"","x":400,"y":4200,"wires":[]},{"id":"7659331b.0ccaec","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.livingroom_gateway_red\" }","mergecontext":"","x":390,"y":4320,"wires":[[]]},{"id":"790db5af.3db2dc","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Red","info":"","x":390,"y":4280,"wires":[]},{"id":"c84e6249.a8b0f","type":"switch","z":"e1b8a5e0.5377f8","name":"switch","property":"payload","propertyType":"msg","rules":[{"t":"btwn","v":"1","vt":"num","v2":"12","v2t":"num"},{"t":"btwn","v":"13","vt":"num","v2":"16","v2t":"num"},{"t":"gt","v":"16","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":101,"y":4131,"wires":[["11a94d8a.b607c2"],["4ee3072a.7c8a68"],["7659331b.0ccaec"]]},{"id":"52dadf39.60cbf","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.bedroom_gateway_green\" }","mergecontext":"","x":1022,"y":4200,"wires":[[]]},{"id":"df2e2d33.eb749","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Green","info":"","x":1032,"y":4160,"wires":[]},{"id":"4621502.16789b","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.livingroom_gateway_off\" }","mergecontext":"","x":1022,"y":4440,"wires":[[]]},{"id":"bb9c9a95.c6e1e8","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Off","info":"","x":1022,"y":4400,"wires":[]},{"id":"b526e7fb.56ba88","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.bedroom_gateway_yellow\" }","mergecontext":"","x":1022,"y":4280,"wires":[[]]},{"id":"e74e5c63.dbdb3","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Yellow","info":"","x":1032,"y":4240,"wires":[]},{"id":"455cfc6e.7789d4","type":"api-call-service","z":"e1b8a5e0.5377f8","name":"","server":"3cd02fb5.d7f9f","service_domain":"scene","service":"turn_on","data":"{ \"entity_id\": \"scene.bedroom_gateway_red\" }","mergecontext":"","x":1022,"y":4360,"wires":[[]]},{"id":"724b8ee8.3344e","type":"comment","z":"e1b8a5e0.5377f8","name":"Gateway Light - Red","info":"","x":1022,"y":4320,"wires":[]},{"id":"d48e30af.19a26","type":"switch","z":"e1b8a5e0.5377f8","name":"switch","property":"payload","propertyType":"msg","rules":[{"t":"btwn","v":"1","vt":"num","v2":"12","v2t":"num"},{"t":"btwn","v":"13","vt":"num","v2":"16","v2t":"num"},{"t":"gt","v":"16","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":756,"y":4164,"wires":[["52dadf39.60cbf"],["b526e7fb.56ba88"],["455cfc6e.7789d4"]]},{"id":"df988efa.455d9","type":"comment","z":"e1b8a5e0.5377f8","name":"Living Room Gateway Light","info":"","x":135,"y":4027,"wires":[]},{"id":"ccd7d01.e168c3","type":"comment","z":"e1b8a5e0.5377f8","name":"Bedroom Gateway Light","info":"","x":801,"y":4046,"wires":[]},{"id":"2732e1dd.165abe","type":"time-range-switch","z":"e1b8a5e0.5377f8","name":"","lat":"39.6462","lon":"-104.828","startTime":"06:30","endTime":"08:30","startOffset":0,"endOffset":0,"x":770,"y":4100,"wires":[["27412c00.853c34"],[]]},{"id":"8a09bd05.c7bff","type":"time-range-switch","z":"e1b8a5e0.5377f8","name":"","lat":"39.6462","lon":"-104.828","startTime":"06:30","endTime":"08:30","startOffset":0,"endOffset":0,"x":118,"y":4081,"wires":[["6a245fa3.2c576"],[]]},{"id":"df3df654.d25268","type":"inject","z":"e1b8a5e0.5377f8","name":"","topic":"","payload":"15","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":378,"y":3999,"wires":[["5798c43a.77ba3c"]]},{"id":"2cca9ab9.097226","type":"inject","z":"e1b8a5e0.5377f8","name":"","topic":"","payload":"11","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":541,"y":4021,"wires":[["5798c43a.77ba3c"]]},{"id":"6a245fa3.2c576","type":"change","z":"e1b8a5e0.5377f8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"traffic","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":352,"y":4066,"wires":[["c84e6249.a8b0f"]]},{"id":"27412c00.853c34","type":"change","z":"e1b8a5e0.5377f8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"traffic","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1051,"y":4102,"wires":[["d48e30af.19a26"]]},{"id":"50d0136.dc6daec","type":"debug","z":"e1b8a5e0.5377f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":449,"y":3878,"wires":[]},{"id":"3cd02fb5.d7f9f","type":"server","z":"","name":"Hassio (local)","url":"http://hassio/homeassistant","pass":"PASSWORD"},{"id":"356eedf0.8d8992","type":"join-config","z":"","name":""}]
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