[{"id":"4ee3d2a.c06182c","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"Rear_Light","topic":"ashish/bed1/sw1/rear_light","qos":"0","broker":"7980bb5f.184444","x":180,"y":120,"wires":[["5c1c613d.3c34"]]},{"id":"50b7c57a.5e05ac","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"Night_Lamp","topic":"ashish/bed1/sw1/night_lamp","qos":"0","broker":"7980bb5f.184444","x":190,"y":534,"wires":[["9d429700.4bb298"]]},{"id":"297e2f3b.b4a7f","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"Fan","topic":"ashish/bed1/sw1/fan","qos":"0","broker":"7980bb5f.184444","x":170,"y":220,"wires":[["a3e96244.855ce"]]},{"id":"49a96ae6.7437d4","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"Front_Light","topic":"ashish/bed1/sw1/front_light","qos":"0","broker":"7980bb5f.184444","x":190,"y":20,"wires":[["4b2695c3.37e1dc"]]},{"id":"a6405d1f.4e8b9","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"Socket1","topic":"ashish/bed1/sw1/socket1","qos":"0","broker":"7980bb5f.184444","x":180,"y":320,"wires":[["c4fd9ef9.a3063"]]},{"id":"4b2695c3.37e1dc","type":"alexa-local","z":"8ea73ec5.2e8d5","devicename":"front light","inputtrigger":true,"x":380,"y":20,"wires":[["db0ab654.3f8a28"]]},{"id":"5c1c613d.3c34","type":"alexa-local","z":"8ea73ec5.2e8d5","devicename":"rear light","inputtrigger":true,"x":380,"y":120,"wires":[["d5813ca6.5f331"]]},{"id":"a3e96244.855ce","type":"alexa-local","z":"8ea73ec5.2e8d5","devicename":"fan","inputtrigger":true,"x":370,"y":220,"wires":[["79580806.6f9e28"]]},{"id":"c4fd9ef9.a3063","type":"alexa-local","z":"8ea73ec5.2e8d5","devicename":"socket1","inputtrigger":true,"x":380,"y":320,"wires":[["f65df10b.678a4"]]},{"id":"9d429700.4bb298","type":"alexa-local","z":"8ea73ec5.2e8d5","devicename":"night lamp","inputtrigger":true,"x":390,"y":520,"wires":[["3eee0d3c.2ec242"]]},{"id":"d1374527.23a918","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"All devices","topic":"ashish/bed1/sw1/all_devices","qos":"0","broker":"7980bb5f.184444","x":180,"y":640,"wires":[["d3b0ee4a.050b"]]},{"id":"db0ab654.3f8a28","type":"switch","z":"8ea73ec5.2e8d5","name":"switch","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":550,"y":20,"wires":[["1a63d9f9.bb5966"],["f40c9e41.311f3"]]},{"id":"f40c9e41.311f3","type":"function","z":"8ea73ec5.2e8d5","name":"Setpoint","func":"msg.payload = msg.bri\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":20,"wires":[["ed52b8ef.322d08"]]},{"id":"1a63d9f9.bb5966","type":"function","z":"8ea73ec5.2e8d5","name":"on_off","func":"if (msg.payload == \"on\")\n{\n msg.payload = 100\n}\nif (msg.payload == \"off\")\n{\n msg.payload = 0\n\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":690,"y":20,"wires":[["ed52b8ef.322d08"]]},{"id":"d5813ca6.5f331","type":"switch","z":"8ea73ec5.2e8d5","name":"switch","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":570,"y":120,"wires":[["b7757bef.5a2da8"],["1297239c.f484cc"]]},{"id":"b7757bef.5a2da8","type":"function","z":"8ea73ec5.2e8d5","name":"on_off","func":"if (msg.payload == \"on\")\n{\n msg.payload = 100\n}\nif (msg.payload == \"off\")\n{\n msg.payload = 0\n\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":690,"y":120,"wires":[["721732ab.b1f8ec"]]},{"id":"1297239c.f484cc","type":"function","z":"8ea73ec5.2e8d5","name":"Setpoint","func":"msg.payload = msg.bri\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":120,"wires":[["721732ab.b1f8ec"]]},{"id":"79580806.6f9e28","type":"switch","z":"8ea73ec5.2e8d5","name":"switch","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":570,"y":220,"wires":[["daf71170.2b6f"],["491d6c14.74b384"]]},{"id":"daf71170.2b6f","type":"function","z":"8ea73ec5.2e8d5","name":"on_off","func":"if (msg.payload == \"on\")\n{\n msg.payload = 100\n}\nif (msg.payload == \"off\")\n{\n msg.payload = 0\n\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":710,"y":220,"wires":[["1d3dd882.b0b8f7"]]},{"id":"491d6c14.74b384","type":"function","z":"8ea73ec5.2e8d5","name":"Setpoint","func":"msg.payload = msg.bri\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":220,"wires":[["1d3dd882.b0b8f7"]]},{"id":"f65df10b.678a4","type":"switch","z":"8ea73ec5.2e8d5","name":"switch","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":570,"y":320,"wires":[["e4962564.4f1e38"],["c9ea4caf.0a1c3"]]},{"id":"e4962564.4f1e38","type":"function","z":"8ea73ec5.2e8d5","name":"on_off","func":"if (msg.payload == \"on\")\n{\n msg.payload = 100\n}\nif (msg.payload == \"off\")\n{\n msg.payload = 0\n\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":710,"y":320,"wires":[["59d6709d.0e5a5"]]},{"id":"c9ea4caf.0a1c3","type":"function","z":"8ea73ec5.2e8d5","name":"Setpoint","func":"msg.payload = msg.bri\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":320,"wires":[["59d6709d.0e5a5"]]},{"id":"3eee0d3c.2ec242","type":"switch","z":"8ea73ec5.2e8d5","name":"switch","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":570,"y":534,"wires":[["aa79b47d.ed17b8"],["46816734.4eeac8"]]},{"id":"aa79b47d.ed17b8","type":"function","z":"8ea73ec5.2e8d5","name":"on_off","func":"if (msg.payload == \"on\")\n{\n msg.payload = 100\n}\nif (msg.payload == \"off\")\n{\n msg.payload = 0\n\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":710,"y":534,"wires":[["fef43b79.e54488"]]},{"id":"46816734.4eeac8","type":"function","z":"8ea73ec5.2e8d5","name":"Setpoint","func":"msg.payload = msg.bri\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":534,"wires":[["fef43b79.e54488"]]},{"id":"b60b9c31.639fc","type":"switch","z":"8ea73ec5.2e8d5","name":"switch","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":570,"y":654,"wires":[["cdd5a640.b81d78"],["3009c3d4.7ae1fc"]]},{"id":"cdd5a640.b81d78","type":"function","z":"8ea73ec5.2e8d5","name":"on_off","func":"if (msg.payload == \"on\")\n{\n msg.payload = 100\n}\nif (msg.payload == \"off\")\n{\n msg.payload = 0\n\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":710,"y":634,"wires":[["fef43b79.e54488","59d6709d.0e5a5","1d3dd882.b0b8f7","721732ab.b1f8ec","ed52b8ef.322d08","6fc46ae1.7dc424","d4740469.2bd6d8","5ba4d0a8.bca1f","8cc3adc7.3a78f","ea68c68a.3ed318","ab1da280.8fbd7","49b23beb.2165a4","9c2b5673.a26538"]]},{"id":"3009c3d4.7ae1fc","type":"function","z":"8ea73ec5.2e8d5","name":"Setpoint","func":"msg.payload = msg.bri\nreturn msg;","outputs":1,"noerr":0,"x":720,"y":674,"wires":[["721732ab.b1f8ec","1d3dd882.b0b8f7","59d6709d.0e5a5","fef43b79.e54488","ed52b8ef.322d08","6fc46ae1.7dc424","d4740469.2bd6d8","5ba4d0a8.bca1f","8cc3adc7.3a78f","ea68c68a.3ed318","ab1da280.8fbd7","49b23beb.2165a4","9c2b5673.a26538"]]},{"id":"ed52b8ef.322d08","type":"mqtt out","z":"8ea73ec5.2e8d5","name":"Front Light","topic":"ashish/bed1/sw1/cmd/front_light","qos":"","retain":"","broker":"7980bb5f.184444","x":990,"y":20,"wires":[]},{"id":"721732ab.b1f8ec","type":"mqtt out","z":"8ea73ec5.2e8d5","name":"Rear Light","topic":"ashish/bed1/sw1/cmd/rear_light","qos":"","retain":"","broker":"7980bb5f.184444","x":990,"y":120,"wires":[]},{"id":"1d3dd882.b0b8f7","type":"mqtt out","z":"8ea73ec5.2e8d5","name":"Fan","topic":"ashish/bed1/sw1/cmd/fan","qos":"","retain":"","broker":"7980bb5f.184444","x":970,"y":220,"wires":[]},{"id":"59d6709d.0e5a5","type":"mqtt out","z":"8ea73ec5.2e8d5","name":"Socket1","topic":"ashish/bed1/sw1/cmd/socket1","qos":"","retain":"","broker":"7980bb5f.184444","x":980,"y":320,"wires":[]},{"id":"fef43b79.e54488","type":"mqtt out","z":"8ea73ec5.2e8d5","name":"Night Lamp","topic":"ashish/bed1/sw1/cmd/night_lamp","qos":"","retain":"","broker":"7980bb5f.184444","x":990,"y":534,"wires":[]},{"id":"1e24a543.40864b","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"Socket2","topic":"ashish/bed1/sw1/socket2","qos":"0","broker":"7980bb5f.184444","x":180,"y":420,"wires":[["96598cdd.0409b"]]},{"id":"96598cdd.0409b","type":"alexa-local","z":"8ea73ec5.2e8d5","devicename":"socket2","inputtrigger":true,"x":380,"y":420,"wires":[["3909c390.30a30c"]]},{"id":"3909c390.30a30c","type":"switch","z":"8ea73ec5.2e8d5","name":"switch","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":570,"y":420,"wires":[["b9aac2d4.29c38"],["99bfa0c1.58364"]]},{"id":"b9aac2d4.29c38","type":"function","z":"8ea73ec5.2e8d5","name":"on_off","func":"if (msg.payload == \"on\")\n{\n msg.payload = 100\n}\nif (msg.payload == \"off\")\n{\n msg.payload = 0\n\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":710,"y":420,"wires":[["6fc46ae1.7dc424"]]},{"id":"99bfa0c1.58364","type":"function","z":"8ea73ec5.2e8d5","name":"Setpoint","func":"msg.payload = msg.bri\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":420,"wires":[["6fc46ae1.7dc424"]]},{"id":"6fc46ae1.7dc424","type":"mqtt out","z":"8ea73ec5.2e8d5","name":"Socket2","topic":"ashish/bed1/sw1/cmd/socket2","qos":"","retain":"","broker":"7980bb5f.184444","x":980,"y":420,"wires":[]},{"id":"62feabc6.1cd3e4","type":"mqtt in","z":"8ea73ec5.2e8d5","name":"Boot Up initialised","topic":"ashish/bed1/sw1/initialised","qos":"2","broker":"7980bb5f.184444","x":210,"y":740,"wires":[["d3b0ee4a.050b"]]},{"id":"d3b0ee4a.050b","type":"alexa-local","z":"8ea73ec5.2e8d5","devicename":"all devices","inputtrigger":true,"x":390,"y":640,"wires":[["b60b9c31.639fc"]]},{"id":"d4740469.2bd6d8","type":"mqtt out","z":"8ea73ec5.2e8d5","name":"Night Lamp","topic":"ashish/bed1/sw1/cmd/all_devices","qos":"","retain":"","broker":"7980bb5f.184444","x":1010,"y":640,"wires":[]},{"id":"49b23beb.2165a4","type":"ui_switch","z":"8ea73ec5.2e8d5","name":"Rear Light","label":"Rear Light","group":"f309372f.eb1298","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":190,"y":180,"wires":[["5c1c613d.3c34"]]},{"id":"ab1da280.8fbd7","type":"ui_switch","z":"8ea73ec5.2e8d5","name":"Fan","label":"Fan","group":"f309372f.eb1298","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":170,"y":280,"wires":[["a3e96244.855ce"]]},{"id":"ea68c68a.3ed318","type":"ui_switch","z":"8ea73ec5.2e8d5","name":"Socket1","label":"Socket1","group":"f309372f.eb1298","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":180,"y":380,"wires":[["c4fd9ef9.a3063"]]},{"id":"8cc3adc7.3a78f","type":"ui_switch","z":"8ea73ec5.2e8d5","name":"Socket2","label":"Socket2","group":"f309372f.eb1298","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":180,"y":480,"wires":[["96598cdd.0409b"]]},{"id":"5ba4d0a8.bca1f","type":"ui_switch","z":"8ea73ec5.2e8d5","name":"Night Lamp","label":"Night Lamp","group":"f309372f.eb1298","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":190,"y":580,"wires":[["9d429700.4bb298"]]},{"id":"1a7c28cf.0b06d7","type":"ui_switch","z":"8ea73ec5.2e8d5","name":"All Devices","label":"All Devices","group":"f309372f.eb1298","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":190,"y":700,"wires":[["d3b0ee4a.050b"]]},{"id":"9c2b5673.a26538","type":"ui_switch","z":"8ea73ec5.2e8d5","name":"Front Light","label":"Front Light","group":"f309372f.eb1298","order":0,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":190,"y":80,"wires":[["4b2695c3.37e1dc"]],"inputLabels":["ashish/bed1/sw1/cmd/front_light"]},{"id":"7980bb5f.184444","type":"mqtt-broker","z":"","name":"ashish pi vf","broker":"192.168.1.165","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"f309372f.eb1298","type":"ui_group","z":"","name":"SWITCH BORD01","tab":"f5e4e4e1.267548","order":1,"disp":true,"width":"7","collapse":true},{"id":"f5e4e4e1.267548","type":"ui_tab","z":"","name":"Ashish Bed Room","icon":"home","order":1}]
Comments
Please log in or sign up to comment.