Hier der Code
ich habe noch was geändert. Den Linkin auf der Dimmerseite ist nicht mehr nötig, da habe ich einen vohandenen genommen.
Der deaktivierte Teil wäre für eine Panikbeleuchtung mit dem 8. Taster, der würde die gesamte Beleuchtung auf 100 % einschalten. Ausschalten, muss man dann jede Leuchte einzeln.
@Vincent
Wenn du Verbesserungen hast, gerne her damit
[{"id":"ca396e24c49b2935","type":"tab","label":"ExterneSchalter","disabled":false,"info":"","env":[]},{"id":"c45eb43aa134c57a","type":"link out","z":"ca396e24c49b2935","name":"switch connect 1","mode":"link","links":["e9ffa3ef.cde5d"],"x":645,"y":120,"wires":[]},{"id":"23f505d8fcfd7b9f","type":"link out","z":"ca396e24c49b2935","name":"switch connect 4","mode":"link","links":["f14867fc.930ab8"],"x":645,"y":300,"wires":[]},{"id":"0750e6090b4f5230","type":"link out","z":"ca396e24c49b2935","name":"switch connect 5","links":["8cde3678.94ac88","1d05179e.1f1a78","1e0f28f7.6b3347","a17061ed.e682d"],"x":645,"y":340,"wires":[]},{"id":"7b7768352e268c5e","type":"link out","z":"ca396e24c49b2935","name":"switch connect 6","links":["a45ee432.b7ef98","c9adec52.63ae6","f4303c75.d5b1c","31dcf86e.085898"],"x":645,"y":380,"wires":[]},{"id":"873215331f68f5d8","type":"link out","z":"ca396e24c49b2935","name":"switch connect 7","links":["e97a5ba1.09c7e8","38796905.f4b7f6","de881e69.90777","3f2d3621.ced3da"],"x":645,"y":420,"wires":[]},{"id":"9141538906417db0","type":"link out","z":"ca396e24c49b2935","name":"switch connect 8","links":["95089e82.5785e","2840c10.f61294","f38ca7b2.7594d8","c946b435.21b198"],"x":645,"y":460,"wires":[]},{"id":"819997089669445f","type":"link out","z":"ca396e24c49b2935","name":"switch connect 2","mode":"link","links":["7255f9f4.6304d8"],"x":645,"y":180,"wires":[]},{"id":"f06e939348696898","type":"link out","z":"ca396e24c49b2935","name":"switch connect 3","mode":"link","links":["c698c6e8.416b58"],"x":645,"y":240,"wires":[]},{"id":"b5afaf6789f93f6a","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"7","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":210,"y":460,"wires":[["c1d30f47dca6ac54"]]},{"id":"2719765e5306218f","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"6","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":210,"y":420,"wires":[["21cc1be16b9734a3"]]},{"id":"88dc0dfb4d623b11","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"5","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":210,"y":380,"wires":[["a164f532cf8ce72f"]]},{"id":"2e70fa93c713ccec","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"4","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":210,"y":340,"wires":[["d423482aebe0fe66"]]},{"id":"5c8d448fd67fc845","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"3","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":220,"y":300,"wires":[["b4c8e50183725b14"]]},{"id":"12dc1f096c4b95bf","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"2","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":220,"y":240,"wires":[["707500ffbc16d3bc"]]},{"id":"543ae2cb64045ef0","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"1","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":220,"y":180,"wires":[["38d98f8e9f5ecd03"]]},{"id":"6e50e8a461425720","type":"mcp23017input","z":"ca396e24c49b2935","name":"","chip":"fea6ba1ba706a433","bitNum":"0","pullUp":true,"invert":false,"debounce":200,"onMsg":false,"offMsg":true,"x":220,"y":120,"wires":[["b63d065414a1cf5f"]]},{"id":"8e7a944a109101f3","type":"comment","z":"ca396e24c49b2935","name":"mcp23017chip in seperaten Gehäuse","info":"","x":270,"y":80,"wires":[]},{"id":"21cc2684465b28df","type":"comment","z":"ca396e24c49b2935","name":"Achtung Pekaway verwendet die Gleiche Adresse \"20\" Relayboard 2","info":"","x":800,"y":80,"wires":[]},{"id":"cf61f1be27438496","type":"mqtt out","z":"ca396e24c49b2935","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0ddb07c65cbb68bc","x":1530,"y":680,"wires":[]},{"id":"7e3ac74bb8162587","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter2","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":4,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":880,"y":680,"wires":[["51054ba7736de7b7","b4bb315771f99b0d","2b811cbdd16fcb4c"]]},{"id":"52529fa61a4886ec","type":"link in","z":"ca396e24c49b2935","name":"dimmer0 value/name","links":["ee271eb64628fc0a"],"x":305,"y":600,"wires":[["be100648fb6e6938"]]},{"id":"fc8096ca32645019","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer0\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":600,"wires":[["a08c1a31c196be64"]]},{"id":"a08c1a31c196be64","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,0,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":600,"wires":[["cf61f1be27438496","e81117eaf4db8721"]]},{"id":"51054ba7736de7b7","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer1\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":680,"wires":[["70b42c2b7884c300"]]},{"id":"70b42c2b7884c300","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,1,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":680,"wires":[["cf61f1be27438496","e81117eaf4db8721"]]},{"id":"19e04520f690a6f9","type":"link in","z":"ca396e24c49b2935","name":"dimmer1 value/name","links":["c6b55fd009e69ef0"],"x":305,"y":680,"wires":[["916b5c7ecc47c8f1"]]},{"id":"74200395f266f690","type":"link in","z":"ca396e24c49b2935","name":"dimmer2 value/name","links":["325d9614f6237827"],"x":305,"y":760,"wires":[["6c3ae5e41278b7b7"]]},{"id":"c2aed10920bbf0d0","type":"link in","z":"ca396e24c49b2935","name":"dimmer3 value/name","links":["31f94e298e95c2b4"],"x":305,"y":840,"wires":[["0c781ea6b789058c"]]},{"id":"db95b1396d3702f5","type":"link in","z":"ca396e24c49b2935","name":"dimmer4 value/name","links":["9d8da021cba66085"],"x":305,"y":920,"wires":[["3f61baaa6ff903d5"]]},{"id":"42f3a284ef043126","type":"link in","z":"ca396e24c49b2935","name":"dimmer5 value/name","links":["3b589471ad93efe2"],"x":305,"y":1000,"wires":[["6954baaf62194951"]]},{"id":"f19879a94472349f","type":"link in","z":"ca396e24c49b2935","name":"dimmer6 value/name","links":["6ce111f8c4860e01"],"x":305,"y":1080,"wires":[["2cc4c6b2172acf79"]]},{"id":"f077cc616cacab06","type":"link in","z":"ca396e24c49b2935","name":"dimmer7 value/name","links":["fa4a585a780c2772"],"x":305,"y":1160,"wires":[["22eb666b700989ce"]]},{"id":"935fd7532b1ea272","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter3","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":6,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":880,"y":760,"wires":[["8242ddaf75fe15d9","b4bb315771f99b0d","53daac31bc45cd1b"]]},{"id":"b91bfab3316c6bf9","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter4","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":8,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":880,"y":840,"wires":[["311c56cb1777fad9","b4bb315771f99b0d","5c7aabb17ad3254d"]]},{"id":"337ed2d225f77c2f","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter5","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":10,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":880,"y":920,"wires":[["a2c26669a16ddad6","b4bb315771f99b0d","db3d0b67fb992c89"]]},{"id":"2863c6826a662f26","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter6","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":12,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":880,"y":1000,"wires":[["3dab8cdc8aafdbdf","b4bb315771f99b0d","bc797eae67a5e92a"]]},{"id":"a5cc52572c15bab3","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter7","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":14,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":880,"y":1080,"wires":[["75bb88f98fdc56e9","b4bb315771f99b0d","049f2166cc8daa03"]]},{"id":"f38844bd63bb0856","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter8","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":16,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":860,"y":1160,"wires":[["50492274bcb238e4","b4bb315771f99b0d","162937e7e9c9d907","a0cfe1f6045f71f5","411351f13d2e9349","13b4780685ff94ed","b7515310f01a298b","8e7636b6f1101485","f77e4343e38027ac","3db4f79865c11b99","5d13b41c2e8dcca0"]]},{"id":"8242ddaf75fe15d9","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer2\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":760,"wires":[["443d46bd540953c6"]]},{"id":"443d46bd540953c6","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,2,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":760,"wires":[["cf61f1be27438496","e81117eaf4db8721"]]},{"id":"311c56cb1777fad9","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer3\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":840,"wires":[["ec1bf04e0adea6a6"]]},{"id":"ec1bf04e0adea6a6","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,3,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":840,"wires":[["cf61f1be27438496","e81117eaf4db8721"]]},{"id":"a2c26669a16ddad6","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer4\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":920,"wires":[["6b641280e7a82136"]]},{"id":"6b641280e7a82136","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,4,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":920,"wires":[["cf61f1be27438496","e81117eaf4db8721"]]},{"id":"3dab8cdc8aafdbdf","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer5\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":1000,"wires":[["4bbf7ff66b747557"]]},{"id":"4bbf7ff66b747557","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,5,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":1000,"wires":[["cf61f1be27438496","e81117eaf4db8721"]]},{"id":"75bb88f98fdc56e9","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer6\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":1080,"wires":[["56ada061e8973f10"]]},{"id":"56ada061e8973f10","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,6,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":1080,"wires":[["cf61f1be27438496","e81117eaf4db8721"]]},{"id":"50492274bcb238e4","type":"change","z":"ca396e24c49b2935","name":"on=global dimmer","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"\"dimmer7\"","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":1160,"wires":[["0f8d71cfcfb8c72d"]]},{"id":"0f8d71cfcfb8c72d","type":"function","z":"ca396e24c49b2935","name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\nvar value = parseInt(msg.payload)*40;\n\nmsg.payload = \"pwm,7,\" + value;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1270,"y":1160,"wires":[["cf61f1be27438496","0359442f4a69dcaa","e81117eaf4db8721"]]},{"id":"26381482f935bc59","type":"ui_switch","z":"ca396e24c49b2935","name":"Schalter1","label":"{{Dimmname}}","tooltip":"","group":"b39a769e1a5ab2d0","order":2,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"className":"","x":880,"y":600,"wires":[["b4bb315771f99b0d","fc8096ca32645019","d008188586423cf6"]]},{"id":"be100648fb6e6938","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer0\");\nvar check = global.get(\"dimmone\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":600,"wires":[["26381482f935bc59"]]},{"id":"b4bb315771f99b0d","type":"function","z":"ca396e24c49b2935","name":"save relay status","func":"var check2 = flow.get(\"Rupdate\");\n\n\nif (check2 != true)\n{\n\nmsg.payload = { \"dimmone\":global.get(\"dimmone\"),\n\"dimmtwo\":global.get(\"dimmtwo\"),\n\"dimmthree\":global.get(\"dimmthree\"),\n\"dimmfour\":global.get(\"dimmfour\"),\n\"dimmfive\":global.get(\"dimmfive\"),\n\"dimmsix\":global.get(\"dimmsix\"),\n\"dimmseven\":global.get(\"dimmseven\"),\n\"dimmeight\":global.get(\"dimmeight\")\n}\nreturn msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":1240,"wires":[["6ab58094f553bc3f","b0cfdb448a762c32"]]},{"id":"6ab58094f553bc3f","type":"file","z":"ca396e24c49b2935","name":"","filename":"pekaway/SwDimmstatusload","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":1310,"y":1240,"wires":[[]]},{"id":"030426a2382b341d","type":"function","z":"ca396e24c49b2935","name":"globalVariable set Dimmone","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmone\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmone\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmone\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":580,"wires":[["26381482f935bc59"]]},{"id":"916b5c7ecc47c8f1","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer1\");\nvar check = global.get(\"dimmtwo\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":680,"wires":[["7e3ac74bb8162587"]]},{"id":"6c3ae5e41278b7b7","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer2\");\nvar check = global.get(\"dimmthree\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":760,"wires":[["935fd7532b1ea272"]]},{"id":"0c781ea6b789058c","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer3\");\nvar check = global.get(\"dimmfour\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":840,"wires":[["b91bfab3316c6bf9"]]},{"id":"3f61baaa6ff903d5","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer4\");\nvar check = global.get(\"dimmfive\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":920,"wires":[["337ed2d225f77c2f"]]},{"id":"6954baaf62194951","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer5\");\nvar check = global.get(\"dimmsix\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":1000,"wires":[["2863c6826a662f26"]]},{"id":"2cc4c6b2172acf79","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer6\");\nvar check = global.get(\"dimmseven\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":1100,"wires":[["a5cc52572c15bab3"]]},{"id":"22eb666b700989ce","type":"function","z":"ca396e24c49b2935","name":"","func":"msg.Dimmname = global.get(\"Ndimmer7\");\nvar check = global.get(\"dimmeight\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":1180,"wires":[["f38844bd63bb0856"]]},{"id":"bdca0db63622b627","type":"function","z":"ca396e24c49b2935","name":"globalVariable set Dimmtwo","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmtwo\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmtwo\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmtwo\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":660,"wires":[["7e3ac74bb8162587"]]},{"id":"888f0fe4041c965d","type":"function","z":"ca396e24c49b2935","name":"globalVariable set Dimmothree","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmthree\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmthree\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmthree\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":740,"wires":[["935fd7532b1ea272"]]},{"id":"219b821c496ddc22","type":"function","z":"ca396e24c49b2935","name":"globalVariable set Dimmfour","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmfour\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmfour\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmfour\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":820,"wires":[["b91bfab3316c6bf9"]]},{"id":"131a786ae296dd4f","type":"file in","z":"ca396e24c49b2935","name":"","filename":"pekaway/SwDimmstatusload","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":150,"y":1760,"wires":[["788f214561471487"]]},{"id":"d008188586423cf6","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmone\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":560,"wires":[[]]},{"id":"2b811cbdd16fcb4c","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmtwo\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":640,"wires":[[]]},{"id":"53daac31bc45cd1b","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmthree\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":720,"wires":[[]]},{"id":"5c7aabb17ad3254d","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmfour\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":800,"wires":[[]]},{"id":"db3d0b67fb992c89","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmfive\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":880,"wires":[[]]},{"id":"bc797eae67a5e92a","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmsix\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":960,"wires":[[]]},{"id":"049f2166cc8daa03","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmseven\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":1040,"wires":[[]]},{"id":"162937e7e9c9d907","type":"function","z":"ca396e24c49b2935","name":"set Global","func":"global.set(\"dimmeight\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1020,"y":1120,"wires":[[]]},{"id":"f0d2562646eac288","type":"inject","z":"ca396e24c49b2935","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"10","topic":"","payload":"","payloadType":"date","x":130,"y":1720,"wires":[["131a786ae296dd4f"]]},{"id":"788f214561471487","type":"debug","z":"ca396e24c49b2935","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":90,"y":1800,"wires":[]},{"id":"84c1122ece69385b","type":"link in","z":"ca396e24c49b2935","name":"pekaway display dimmer","links":["8d2726e6672c69f0"],"x":355,"y":640,"wires":[["be100648fb6e6938","22eb666b700989ce","2cc4c6b2172acf79","6954baaf62194951","3f61baaa6ff903d5","6c3ae5e41278b7b7","916b5c7ecc47c8f1","0c781ea6b789058c"]]},{"id":"1b6111831031d9c6","type":"mqtt in","z":"ca396e24c49b2935","name":"","topic":"pkw/tele/PekawayMOTA/#","qos":"2","datatype":"auto","broker":"0ddb07c65cbb68bc","nl":false,"rap":true,"rh":0,"inputs":0,"x":130,"y":1620,"wires":[["b38fbac8bcec02ed","d7376f37acd194c1"]]},{"id":"b69fee5b00291f32","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Switch1","vt":"str"},{"t":"cont","v":"Switch2","vt":"str"},{"t":"cont","v":"Switch3","vt":"str"},{"t":"cont","v":"Switch4","vt":"str"},{"t":"cont","v":"Switch5","vt":"str"},{"t":"cont","v":"Switch6","vt":"str"},{"t":"cont","v":"Switch7","vt":"str"},{"t":"cont","v":"Switch8","vt":"str"}],"checkall":"true","repair":false,"outputs":8,"x":210,"y":1480,"wires":[["98e9ffe23d6066ea","a4230cb384df9f43"],["249aef9481598e7d","b44e93e588e8a10a"],["73088dfa7fe99a51","5a404504e2d54f59"],["6cafe80ec3b04682","bacb1f46a9b22c03"],["cb5c28e2f9d71f08","ba62bdfa12b6dfd1"],["b41c99b00e77bf31","bd130e043a17b678"],["aedc248d75a1e63d","aa950ff78c49ed8f"],["7b41e0a24b0e7b0b"]]},{"id":"b38fbac8bcec02ed","type":"split","z":"ca396e24c49b2935","name":"","splt":",","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":110,"y":1580,"wires":[["b69fee5b00291f32","a9184a36c12e1a93"]]},{"id":"98e9ffe23d6066ea","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1260,"wires":[["030426a2382b341d"]]},{"id":"ad8b50995464f0d4","type":"function","z":"ca396e24c49b2935","name":"globalVariable set Dimmseven","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmseven\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmseven\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmseven\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":670,"y":1060,"wires":[["a5cc52572c15bab3"]]},{"id":"249aef9481598e7d","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1280,"wires":[["bdca0db63622b627"]]},{"id":"73088dfa7fe99a51","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1300,"wires":[["888f0fe4041c965d"]]},{"id":"6cafe80ec3b04682","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1320,"wires":[["219b821c496ddc22"]]},{"id":"cb5c28e2f9d71f08","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1340,"wires":[["b118e61834903d76"]]},{"id":"b41c99b00e77bf31","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1360,"wires":[["28fa2edfdd1ee544"]]},{"id":"aedc248d75a1e63d","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1380,"wires":[["ad8b50995464f0d4"]]},{"id":"31dad59ac203daa3","type":"function","z":"ca396e24c49b2935","name":"globalVariable set dimmeight","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmeight\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmeight\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmeight\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":670,"y":1140,"wires":[["f38844bd63bb0856"]]},{"id":"b118e61834903d76","type":"function","z":"ca396e24c49b2935","name":"globalVariable set dimmfive","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmfive\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmfive\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmfive\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":900,"wires":[["337ed2d225f77c2f"]]},{"id":"28fa2edfdd1ee544","type":"function","z":"ca396e24c49b2935","name":"globalVariable set dimmsix","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmsix\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\nif (check === \"on\")\n { \n check= \"off\"; \n global.set(\"dimmsix\", \"off\");\n \n }\n else\n {\n check = \"on\"; \n global.set(\"dimmsix\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":980,"wires":[["2863c6826a662f26"]]},{"id":"a0cfe1f6045f71f5","type":"function","z":"ca396e24c49b2935","d":true,"name":"globalVariable set dimmone","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmone\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\n\n {\n check = \"on\"; \n global.set(\"dimmone\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":1260,"wires":[["26381482f935bc59"]]},{"id":"411351f13d2e9349","type":"function","z":"ca396e24c49b2935","d":true,"name":"globalVariable set dimmtwo","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmtwo\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\n\n {\n check = \"on\"; \n global.set(\"dimmtwo\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":1280,"wires":[["7e3ac74bb8162587"]]},{"id":"13b4780685ff94ed","type":"function","z":"ca396e24c49b2935","d":true,"name":"globalVariable set dimmthree","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmthree\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\n\n {\n check = \"on\"; \n global.set(\"dimmthree\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":1300,"wires":[["935fd7532b1ea272"]]},{"id":"b7515310f01a298b","type":"function","z":"ca396e24c49b2935","d":true,"name":"globalVariable set dimmfour","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmfour\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\n\n {\n check = \"on\"; \n global.set(\"dimmfour\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":1320,"wires":[["b91bfab3316c6bf9"]]},{"id":"8e7636b6f1101485","type":"function","z":"ca396e24c49b2935","d":true,"name":"globalVariable set dimmfive","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmfive\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\n\n {\n check = \"on\"; \n global.set(\"dimmfive\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":1340,"wires":[["337ed2d225f77c2f"]]},{"id":"f77e4343e38027ac","type":"function","z":"ca396e24c49b2935","d":true,"name":"globalVariable set dimmsix","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmsix\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\n\n {\n check = \"on\"; \n global.set(\"dimmsix\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":1360,"wires":[["2863c6826a662f26"]]},{"id":"3db4f79865c11b99","type":"function","z":"ca396e24c49b2935","d":true,"name":"globalVariable set dimmseven","func":"\nvar check2 = flow.get(\"Rupdate\");\n \n\nvar check = global.get(\"dimmseven\");\n\n\nif(check2 === \"on\")\n{\n return\n}\nelse\n{\n\n {\n check = \"on\"; \n global.set(\"dimmseven\", \"on\");\n }\n \nmsg.payload = check;\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":1380,"wires":[["a5cc52572c15bab3"]]},{"id":"7e097c7f54a39f90","type":"comment","z":"ca396e24c49b2935","name":"Schalter 8 alle Dimmer AN","info":"","x":740,"y":1220,"wires":[]},{"id":"7b41e0a24b0e7b0b","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":1400,"wires":[["31dad59ac203daa3"]]},{"id":"88ce5f7cda3ddc81","type":"comment","z":"ca396e24c49b2935","name":"Node \"link in\" \"change tab 1 dimmer names\" Init Flow deaktiviert. Blinkt sonst bei jedm Seitenwechsel","info":"","x":620,"y":520,"wires":[]},{"id":"d7376f37acd194c1","type":"debug","z":"ca396e24c49b2935","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":190,"y":1660,"wires":[]},{"id":"a9184a36c12e1a93","type":"debug","z":"ca396e24c49b2935","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":230,"y":1580,"wires":[]},{"id":"0359442f4a69dcaa","type":"debug","z":"ca396e24c49b2935","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1490,"y":1180,"wires":[]},{"id":"5d13b41c2e8dcca0","type":"function","z":"ca396e24c49b2935","d":true,"name":"set topic & payload","func":"msg.topic = \"pkw/cmnd/PekawayMOTA/driver15\";\n\n\n\n\nmsg.payload = \"pwm,0,4000,pwm,1,4000,pwm,2,4000,pwm,3,4000,pwm,4,4000,pwm,5,4000,pwm,6,4000\" ;\nreturn msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1220,"y":1320,"wires":[["851921c6ef3fde90","cf61f1be27438496"]]},{"id":"851921c6ef3fde90","type":"debug","z":"ca396e24c49b2935","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1430,"y":1320,"wires":[]},{"id":"b63d065414a1cf5f","type":"function","z":"ca396e24c49b2935","name":"globalVariable get one","func":"\nvar check = global.get(\"one\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":120,"wires":[["c45eb43aa134c57a"]]},{"id":"38d98f8e9f5ecd03","type":"function","z":"ca396e24c49b2935","name":"globalVariable get two","func":"\nvar check = global.get(\"two\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":180,"wires":[["819997089669445f"]]},{"id":"707500ffbc16d3bc","type":"function","z":"ca396e24c49b2935","name":"globalVariable get three","func":"\nvar check = global.get(\"three\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":240,"wires":[["f06e939348696898"]]},{"id":"b4c8e50183725b14","type":"function","z":"ca396e24c49b2935","name":"globalVariable get four","func":"\nvar check = global.get(\"four\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":300,"wires":[["23f505d8fcfd7b9f"]]},{"id":"d423482aebe0fe66","type":"function","z":"ca396e24c49b2935","name":"globalVariable get five","func":"\nvar check = global.get(\"five\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":340,"wires":[["0750e6090b4f5230"]]},{"id":"a164f532cf8ce72f","type":"function","z":"ca396e24c49b2935","name":"globalVariable get six","func":"\nvar check = global.get(\"six\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":380,"wires":[["7b7768352e268c5e"]]},{"id":"21cc1be16b9734a3","type":"function","z":"ca396e24c49b2935","name":"globalVariable get seven","func":"\nvar check = global.get(\"seven\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":420,"wires":[["873215331f68f5d8"]]},{"id":"c1d30f47dca6ac54","type":"function","z":"ca396e24c49b2935","name":"globalVariable get eight","func":"\nvar check = global.get(\"eight\");\n\n\nif (check === true)\n { \n check= false; \n\n }\n else\n {\n check = true; \n }\n \n \n msg.payload = check; \nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":460,"wires":[["9141538906417db0"]]},{"id":"f4084dbe24ed9d80","type":"one-button-dimmer","z":"ca396e24c49b2935","name":"Fern Dimmer 4","interval":"350","step":5,"minValue":0,"maxValue":100,"startCommand":"OFF","stopCommand":"ON","x":1160,"y":1620,"wires":[["22aba16eb8117256"]]},{"id":"b628f60bada4ab75","type":"function","z":"ca396e24c49b2935","name":"set ON","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"ON\")\n { \n check= \"OFF\"; \n\n }\n else\n {\n check === \"ON\"; \n }\n msg.payload = \"ON\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1600,"wires":[["f4084dbe24ed9d80"]]},{"id":"07abb674a0b62a54","type":"function","z":"ca396e24c49b2935","name":"set OFF","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"OFF\")\n { \n check= \"ON\"; \n\n }\n else\n {\n check === \"OFF\"; \n }\n msg.payload = \"OFF\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1620,"wires":[["f4084dbe24ed9d80"]]},{"id":"bacb1f46a9b22c03","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1540,"wires":[["b628f60bada4ab75"],["07abb674a0b62a54"]]},{"id":"22aba16eb8117256","type":"link out","z":"ca396e24c49b2935","name":"Dimmwert 4","mode":"link","links":["4896e98db77c2f91"],"x":1415,"y":1620,"wires":[]},{"id":"5a404504e2d54f59","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1500,"wires":[["04679533455a94d7"],["8201b154ab9518f0"]]},{"id":"b44e93e588e8a10a","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1460,"wires":[["c469bc89845f8565"],["d271cb307d04cc5e"]]},{"id":"a4230cb384df9f43","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1420,"wires":[["ab746c942beefc34"],["44cde88bd496c0e1"]]},{"id":"aa950ff78c49ed8f","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1660,"wires":[["1980b92907595eac"],["4bfae93779d1e108"]]},{"id":"bd130e043a17b678","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1620,"wires":[["857a079fdfaa234a"],["6a7c4ebaa0261300"]]},{"id":"ba62bdfa12b6dfd1","type":"switch","z":"ca396e24c49b2935","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1580,"wires":[["bfa312fece907298"],["efeea04fa7a7053b"]]},{"id":"04679533455a94d7","type":"function","z":"ca396e24c49b2935","name":"set ON","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"ON\")\n { \n check= \"OFF\"; \n\n }\n else\n {\n check === \"ON\"; \n }\n msg.payload = \"ON\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1540,"wires":[["7a286511112be894"]]},{"id":"8201b154ab9518f0","type":"function","z":"ca396e24c49b2935","name":"set OFF","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"OFF\")\n { \n check= \"ON\"; \n\n }\n else\n {\n check === \"OFF\"; \n }\n msg.payload = \"OFF\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1560,"wires":[["7a286511112be894"]]},{"id":"c469bc89845f8565","type":"function","z":"ca396e24c49b2935","name":"set ON","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"ON\")\n { \n check= \"OFF\"; \n\n }\n else\n {\n check === \"ON\"; \n }\n msg.payload = \"ON\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1480,"wires":[["6654ab3b64a5b36c"]]},{"id":"d271cb307d04cc5e","type":"function","z":"ca396e24c49b2935","name":"set OFF","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"OFF\")\n { \n check= \"ON\"; \n\n }\n else\n {\n check === \"OFF\"; \n }\n msg.payload = \"OFF\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1500,"wires":[["6654ab3b64a5b36c"]]},{"id":"ab746c942beefc34","type":"function","z":"ca396e24c49b2935","name":"set ON","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"ON\")\n { \n check= \"OFF\"; \n\n }\n else\n {\n check === \"ON\"; \n }\n msg.payload = \"ON\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1420,"wires":[["1dd63515536dcda4"]]},{"id":"44cde88bd496c0e1","type":"function","z":"ca396e24c49b2935","name":"set OFF","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"OFF\")\n { \n check= \"ON\"; \n\n }\n else\n {\n check === \"OFF\"; \n }\n msg.payload = \"OFF\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1440,"wires":[["1dd63515536dcda4"]]},{"id":"1980b92907595eac","type":"function","z":"ca396e24c49b2935","name":"set ON","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"ON\")\n { \n check= \"OFF\"; \n\n }\n else\n {\n check === \"ON\"; \n }\n msg.payload = \"ON\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1780,"wires":[["d4ea5517c25043f6"]]},{"id":"4bfae93779d1e108","type":"function","z":"ca396e24c49b2935","name":"set OFF","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"OFF\")\n { \n check= \"ON\"; \n\n }\n else\n {\n check === \"OFF\"; \n }\n msg.payload = \"OFF\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1800,"wires":[["d4ea5517c25043f6"]]},{"id":"857a079fdfaa234a","type":"function","z":"ca396e24c49b2935","name":"set ON","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"ON\")\n { \n check= \"OFF\"; \n\n }\n else\n {\n check === \"ON\"; \n }\n msg.payload = \"ON\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1720,"wires":[["7ea3f7cff72f66da"]]},{"id":"6a7c4ebaa0261300","type":"function","z":"ca396e24c49b2935","name":"set OFF","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"OFF\")\n { \n check= \"ON\"; \n\n }\n else\n {\n check === \"OFF\"; \n }\n msg.payload = \"OFF\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1740,"wires":[["7ea3f7cff72f66da"]]},{"id":"bfa312fece907298","type":"function","z":"ca396e24c49b2935","name":"set ON","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"ON\")\n { \n check= \"OFF\"; \n\n }\n else\n {\n check === \"ON\"; \n }\n msg.payload = \"ON\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1660,"wires":[["9f493cfd707438df"]]},{"id":"efeea04fa7a7053b","type":"function","z":"ca396e24c49b2935","name":"set OFF","func":"\n\nvar check = flow.get(\"Rupdate\");\n\n\nif (check === \"OFF\")\n { \n check= \"ON\"; \n\n }\n else\n {\n check === \"OFF\"; \n }\n msg.payload = \"OFF\";\n return msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":1680,"wires":[["9f493cfd707438df"]]},{"id":"1dd63515536dcda4","type":"one-button-dimmer","z":"ca396e24c49b2935","name":"Fern Dimmer 1","interval":"350","step":5,"minValue":0,"maxValue":100,"startCommand":"OFF","stopCommand":"ON","x":1160,"y":1440,"wires":[["976d19682d29ca97"]]},{"id":"976d19682d29ca97","type":"link out","z":"ca396e24c49b2935","name":"Dimmwert 1","mode":"link","links":["a4c0fd66546e7864"],"x":1415,"y":1440,"wires":[]},{"id":"6654ab3b64a5b36c","type":"one-button-dimmer","z":"ca396e24c49b2935","name":"Fern Dimmer 2","interval":"350","step":5,"minValue":0,"maxValue":100,"startCommand":"OFF","stopCommand":"ON","x":1160,"y":1500,"wires":[["1d70313111bed44f"]]},{"id":"1d70313111bed44f","type":"link out","z":"ca396e24c49b2935","name":"Dimmwert 2","mode":"link","links":["1db51e9f7fe5ebea"],"x":1415,"y":1500,"wires":[]},{"id":"7a286511112be894","type":"one-button-dimmer","z":"ca396e24c49b2935","name":"Fern Dimmer 3","interval":"350","step":5,"minValue":0,"maxValue":100,"startCommand":"OFF","stopCommand":"ON","x":1160,"y":1560,"wires":[["37329116d272dc9d"]]},{"id":"37329116d272dc9d","type":"link out","z":"ca396e24c49b2935","name":"Dimmwert 3","mode":"link","links":["09bf8b5862924eed"],"x":1415,"y":1560,"wires":[]},{"id":"d4ea5517c25043f6","type":"one-button-dimmer","z":"ca396e24c49b2935","name":"Fern Dimmer 7","interval":"350","step":5,"minValue":0,"maxValue":100,"startCommand":"ON","stopCommand":"OFF","x":1160,"y":1800,"wires":[["85435f7fd6967a34"]]},{"id":"85435f7fd6967a34","type":"link out","z":"ca396e24c49b2935","name":"Dimmwert 7","mode":"link","links":["d4e73c36b453526a"],"x":1415,"y":1800,"wires":[]},{"id":"9f493cfd707438df","type":"one-button-dimmer","z":"ca396e24c49b2935","name":"Fern Dimmer 5","interval":"350","step":5,"minValue":0,"maxValue":100,"startCommand":"OFF","stopCommand":"ON","x":1160,"y":1680,"wires":[["c3b0ba033cfb21ec"]]},{"id":"c3b0ba033cfb21ec","type":"link out","z":"ca396e24c49b2935","name":"Dimmwert 5","mode":"link","links":["77683cc8a2a2dd71"],"x":1415,"y":1680,"wires":[]},{"id":"7ea3f7cff72f66da","type":"one-button-dimmer","z":"ca396e24c49b2935","name":"Fern Dimmer 6","interval":"350","step":5,"minValue":0,"maxValue":100,"startCommand":"OFF","stopCommand":"ON","x":1160,"y":1740,"wires":[["e0561ea20afb1386"]]},{"id":"e0561ea20afb1386","type":"link out","z":"ca396e24c49b2935","name":"Dimmwert 6","mode":"link","links":["2530d817d07d6ef2"],"x":1415,"y":1740,"wires":[]},{"id":"2f6eac817232de7e","type":"comment","z":"ca396e24c49b2935","name":"Link In muss auf der Dimmerseite vor jeden Slider eingesetzt werden ","info":"","x":1290,"y":1860,"wires":[]},{"id":"c07eed8d852be448","type":"comment","z":"ca396e24c49b2935","name":"und mit dem passenden Link Out verbunden werden","info":"","x":1240,"y":1900,"wires":[]},{"id":"b0cfdb448a762c32","type":"debug","z":"ca396e24c49b2935","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1430,"y":1280,"wires":[]},{"id":"e81117eaf4db8721","type":"debug","z":"ca396e24c49b2935","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1570,"y":740,"wires":[]},{"id":"804aa8ab42aeb7e8","type":"comment","z":"ca396e24c49b2935","name":"Schalter 8 Dimmer Hell","info":"","x":1180,"y":1280,"wires":[]},{"id":"6e9bb925f9d7a2d1","type":"comment","z":"ca396e24c49b2935","name":"node-red-contrib-time-based-dimmer 0.8.2","info":"","x":1240,"y":1400,"wires":[]},{"id":"b39deee82aff4809","type":"ui_spacer","z":"ca396e24c49b2935","name":"spacer","group":"0c4d2df3c71949dc","order":1,"width":1,"height":1},{"id":"fea6ba1ba706a433","type":"mcp23017chip","addr":"0x20","interval":"100"},{"id":"0ddb07c65cbb68bc","type":"mqtt-broker","name":"","broker":"http://localhost","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"b39a769e1a5ab2d0","type":"ui_group","name":"Dimmer","tab":"c7e50f4d.33f09","order":4,"disp":true,"width":"6","collapse":false,"className":""},{"id":"0c4d2df3c71949dc","type":"ui_group","name":"Menü","tab":"086b5b400ae4ae25","order":5,"disp":true,"width":"6","collapse":true,"className":""},{"id":"c7e50f4d.33f09","type":"ui_tab","name":"Switches","icon":"mi-toggle_on","order":2,"disabled":false,"hidden":false},{"id":"086b5b400ae4ae25","type":"ui_tab","name":"Monitor","icon":"mi-history","order":5,"disabled":false,"hidden":false}]