Mosfetboard Dimmy - Licht per Taster steuern

Hallo „Schaltergemeine“:wink:

Am Wochenende habe ich etwas gebastelt, meine Dimmer lassen sich jetzt auch mit die Taster dimmen.

Dazu muss, man natürlich das DimmyBoard umbauen, sich “node-red-contrib-time-based-dimmer 0.8.2” laden,

Den beigefügten Code Importieren. (Auf der „Dimmer Controller“ Seite vor jeden „Slider“ ein „LinkIn“ einsetzen und mit dem Slider verbinden.) Nicht mehr nötig!!!

Für die Externen Schalter die ich über den I2C Bus an einem MCP2317 angeschlossen habe musste eine Anpassung durchgeführt werden, da sich im Bereich der Relay Steuerung in einer der letzten Firmwaren was geändert hat.



Auf dem neuen Relay Board ist wohl ein MCP2317 verbaut, an den man aschließen kann. Karl wollte dazu mal ein Tutorial machen ;-).

Dann könnte man natürlich auch diese Taster verwenden.

Nicht erschrecken nachdem laden des Programms gehen nach ca. 3 Minuten, und nach ca. 25 Minuten alle Lampen einmal an und wieder aus, das liegt daran das sich das System dann Initialisiert. Danach funktioniert alles.

Wie schon mal gesagt die Programmierung geht sicher einfacher und besser, aber es funktioniert.

(Der Code wird nachgeliefer, er passt nicht mehr)

Gruß Arno

1 Like

An error occurred: Body is limited to 32000 characters; you entered 50860.
Den Code kann ich bei Bedarf als Private Mail schicken.
Gruß Arno

1 Like

Hey
erstmal danke, für den Input!
versuch mal bitte den Flow in einem Textdokument zu speichern und lad es dann hier hoch :slight_smile:

1 Like

@Vincent
txt kann ich nicht hochladen.
oder habe ich da was übersehen???

Hmm ja stimmt, hab mal die erlaubte Zeichenanzahl auf 60k gestellt

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 :wink:

[{"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}]

Das Tutorial kommt jetzt auch in unserem “Türtorial” Adventskalender :wink:

Hey, danke für die Anleitung.
wir hätten gern die Schalter von BSEED genommen. Leider werden diese Schalter nicht funktionieren: ZigBee Series – Bseedswitch

kann man evtl. die Mechanical series – Bseedswitch umbauen?

Schade dass der Adventskalender nur 24 Türchen hat. :wink:
Da müssen wir wieder selber ran. :thinking:
Ich habe mir überlegt dass man den Lüfter im Bad, oder den MAXfan, automatisieren kann.
Dazu habe ich im Dimmy Board (Tasmota) den D4 GPIO2, anstatt für den DS18x20, für einen DHT11 freigegeben.


Eine Lösung ohne große Bastelarbeit.
Dieser übermittelt Temperatur, Feuchte, und den Taupunkt.

Bei mir ist das auf der Info Seite eingerichtet.

Um den Lüfter zu schalten muss man also nur die Temperatur und den Taupunkt vergleichen.
Mit einem Slider, gebe ich die Taupunkt-Differenz-Temperatur an.

Das heißt, wenn der Taupunkt ((0-10°C)Slider) unter der Temperatur liegt, schaltet das Relay.
Die RelayNR: muss man im Link Out angeben.

[{"id":"61bbf308a7fefb8d","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"7d6f1f8a77e56768","type":"inject","z":"61bbf308a7fefb8d","name":"","props":[{"p":"payload"}],"repeat":"3600","crontab":"","once":true,"onceDelay":"20","topic":"","payload":"","payloadType":"date","x":450,"y":1140,"wires":[["ad37ebb8312b0202","6f2da66124c14a1f","fc25d8ae05596541"]]},{"id":"0aa1b11c3568a9d3","type":"ui_slider","z":"61bbf308a7fefb8d","name":"","label":"min Ab-Wassertemp.","tooltip":"","group":"3875147effabc7c3","order":1,"width":0,"height":0,"passthru":true,"outs":"end","topic":"min","topicType":"msg","min":"0","max":"5","step":1,"className":"","x":820,"y":1180,"wires":[["6a04e3cce4be62ab"]]},{"id":"e52e1cd9ef8f23ab","type":"link out","z":"61bbf308a7fefb8d","name":"Wasserablauf1","mode":"link","links":["2840c10.f61294"],"x":845,"y":1140,"wires":[]},{"id":"ad37ebb8312b0202","type":"function","z":"61bbf308a7fefb8d","name":"check hysteresis","func":"var min = global.get(\"minWasser\");\nvar temp = global.get(\"temp3\");\n\nif (temp < min)\nmsg.payload  = true;\nelse \nmsg.payload  = false;\nreturn msg;\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":1140,"wires":[["e52e1cd9ef8f23ab","b85cfaea3778899b"]]},{"id":"6a04e3cce4be62ab","type":"function","z":"61bbf308a7fefb8d","name":"set Global","func":"global.set(\"minWasser\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":1180,"wires":[[]]},{"id":"6f2da66124c14a1f","type":"function","z":"61bbf308a7fefb8d","name":"Get minWasser","func":"msg.payload = global.get(\"minWasser\");\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":620,"y":1180,"wires":[["0aa1b11c3568a9d3"]]},{"id":"e3dff40f71e7e5ac","type":"comment","z":"61bbf308a7fefb8d","name":"Tank öffnen bei Frost","info":"","x":740,"y":1100,"wires":[]},{"id":"b85cfaea3778899b","type":"debug","z":"61bbf308a7fefb8d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":950,"y":1140,"wires":[]},{"id":"b36810ca280bdd1d","type":"ui_text","z":"61bbf308a7fefb8d","group":"b8db3199.f0dbe","order":12,"width":0,"height":0,"name":"","label":"Feucht Bad","format":"{{msg.payload}} %","layout":"row-spread","className":"","x":930,"y":800,"wires":[]},{"id":"cc3af538540d1da3","type":"ui_text","z":"61bbf308a7fefb8d","group":"b8db3199.f0dbe","order":11,"width":0,"height":0,"name":"","label":"Temperatur Bad","format":"{{msg.payload}} °C","layout":"row-spread","className":"","x":940,"y":760,"wires":[]},{"id":"562be81737b66cd6","type":"ui_text","z":"61bbf308a7fefb8d","group":"b8db3199.f0dbe","order":13,"width":0,"height":0,"name":"","label":"Taupunkt Bad","format":"{{msg.payload}} °C","layout":"row-spread","className":"","x":940,"y":840,"wires":[]},{"id":"55ef76c015c2826b","type":"function","z":"61bbf308a7fefb8d","name":"","func":"var temp = global.get(\"TempBad\");\nvar dp = global.get(\"DPBad\");\nvar TPd = global.get (\"TPdBad\")\nmsg.temp=temp;\nmsg.dp=dp;\nmsg.TPd=TPd;\nif ((temp-TPd)<(dp))\n{\nmsg.payload = true;\n}\nelse\nmsg.payload = false;\n\nif ((temp-TPd)<dp)\n{node.warn(global.get(\"DPBad\"));\n node.warn(\"Taupunkt überschritten!!\");   \n}\n\n\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":960,"y":1000,"wires":[["dc6d9c6a2339afc4"]]},{"id":"a20c2d4bfbd1d083","type":"function","z":"61bbf308a7fefb8d","name":"set Global","func":"global.set(\"TempBad\", msg.payload);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":950,"y":880,"wires":[[]]},{"id":"f35ad464ee29e1ee","type":"json","z":"61bbf308a7fefb8d","name":"","property":"payload","action":"","pretty":false,"x":610,"y":760,"wires":[["5a474cafc16b26fe","4ee8dee6aeedc509","2ee183388aa757f4","55ef76c015c2826b"]]},{"id":"5a474cafc16b26fe","type":"function","z":"61bbf308a7fefb8d","name":"","func":"\nmsg.payload = msg.payload.DHT11.Temperature;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":760,"wires":[["cc3af538540d1da3","a20c2d4bfbd1d083"]]},{"id":"4ee8dee6aeedc509","type":"function","z":"61bbf308a7fefb8d","name":"","func":"\nmsg.payload = msg.payload.DHT11.Humidity;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":800,"wires":[["b36810ca280bdd1d","ced3cc0323aa40e8"]]},{"id":"2ee183388aa757f4","type":"function","z":"61bbf308a7fefb8d","name":"","func":"\nmsg.payload = msg.payload.DHT11.DewPoint;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":840,"wires":[["562be81737b66cd6","b55e3070d6a84777"]]},{"id":"ced3cc0323aa40e8","type":"function","z":"61bbf308a7fefb8d","name":"set Global","func":"global.set(\"HumBad\", msg.payload);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":950,"y":920,"wires":[[]]},{"id":"b55e3070d6a84777","type":"function","z":"61bbf308a7fefb8d","name":"set Global","func":"global.set(\"DPBad\", msg.payload);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":950,"y":960,"wires":[[]]},{"id":"dc6d9c6a2339afc4","type":"link out","z":"61bbf308a7fefb8d","name":"Relaykontakt","mode":"link","links":["f14867fc.930ab8"],"x":1055,"y":1000,"wires":[]},{"id":"cdb5afb592306978","type":"comment","z":"61bbf308a7fefb8d","name":"Lüfter an bei Taupunkt Temperatur","info":"","x":860,"y":720,"wires":[]},{"id":"f81750311a32cb3a","type":"ui_slider","z":"61bbf308a7fefb8d","name":"Taupunk-Differenz.","label":"Taupunk-Differenz.","tooltip":"","group":"3875147effabc7c3","order":2,"width":0,"height":0,"passthru":true,"outs":"end","topic":"TauP","topicType":"msg","min":"0","max":"10","step":1,"className":"","x":770,"y":1040,"wires":[["be96dd24ec8c19c7"]]},{"id":"be96dd24ec8c19c7","type":"function","z":"61bbf308a7fefb8d","name":"set Global","func":"global.set(\"TPdBad\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":950,"y":1040,"wires":[[]]},{"id":"fc25d8ae05596541","type":"function","z":"61bbf308a7fefb8d","name":"Get TP-Differenz","func":"msg.payload = global.get(\"TPdBad\");\n\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":570,"y":1040,"wires":[["f81750311a32cb3a"]]},{"id":"0c7eab2d32bfc008","type":"mqtt in","z":"61bbf308a7fefb8d","name":"","topic":"pkw/tele/PekawayMOTA/SENSOR","qos":"2","datatype":"auto","broker":"0ddb07c65cbb68bc","nl":false,"rap":true,"rh":0,"inputs":0,"x":440,"y":120,"wires":[["f35ad464ee29e1ee"]]},{"id":"3875147effabc7c3","type":"ui_group","name":"Temperaturconfig","tab":"c77f413b.09f91","order":2,"disp":true,"width":"6","collapse":true,"className":""},{"id":"b8db3199.f0dbe","type":"ui_group","name":"Info","tab":"c77f413b.09f91","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"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":"c77f413b.09f91","type":"ui_tab","name":"Info","icon":"mi-info","order":1,"disabled":false,"hidden":false}]

Dann hatte im Forum mal einer gefragt wie er sein Ablassventil für den Abwassertank automatisieren kann.
Das Beispiel mit einstellbarer Temperatur hängt mit unten dran.
Ich habe mir nur einen der 4 Temperatursensoren vom Relayboard genommen, und vergleiche die Temperatur mit dem eingestellten Wert vom Slider, ist die Temperatur kleiner, schaltet das Relay. Die RelayNR: muss man im Link Out angeben.
Das war allerdings vor dem neuen beta Update. Ob es im Bereich dimmy eine änderung gegeben hat, weiß ich nicht. sonst muss man da ein wenig anpassen.

5 Likes

Hey coole Sache!
Kann man damit evtl. einen zweiten DHT11 Sensor mit anbinen um eine sogenannte Taupunktsteuerung zu realisieren?

Wenn es innen feuchter als draussen ist, soll die feuchte Luft nach draussen und trockenere reinkommen und umgekehrt, damit sich kein Schimmel bildet, wenn der Wowa abgestellt wird.
Meinst du das geht damit ?

@range4200t Das sollte grundsätzlich möglich sein. Das ist ein onewire Bus, da kann man normalerweise mehrere DHT11 anschließen. Du müsstest dann nur die beiden Taupunkte miteinabder vergleichen, und entscheiden ob der lüfter Links oder Rechts rum läuft.
Gruß Arno

@ahtdf wie kann ich einen DHT22 abfragen, ohne Tasmota, also direkt am Relayboard ? Habe diesen parallel zu den Temp sensoren mit angehängt. Kann man irgendwie abfragen, ob er vom Raspi erkannt wird ?

[{"id":"a2bf2f3b856e78ce","type":"zigbee2mqtt-in","z":"9f99ca32053f4cbc","name":"","server":"d6cb6dc92f386f45","friendly_name":"Hue Button Eingang (8718699693985)","device_id":"0x001788010b9e79cd","state":"0","outputAtStartup":true,"filterChanges":false,"enableMultiple":false,"x":210,"y":580,"wires":[["7964a7baf35fe47d","0ad97dc951627dc9","8e16961b96f59bab","29758a7b242b91da","e6db9b14d30d0182","c5b68bbd5c0393d2","a34afd0535fa2e5e","5d74de45213046b7","a49969938d6fa737","82148a40083d5e14","cee28066583e072c"]]},{"id":"c1969e6d8543fc89","type":"debug","z":"9f99ca32053f4cbc","name":"debug1 Eingang","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1240,"y":560,"wires":[]},{"id":"ce5ff6b23ddbd4c2","type":"change","z":"9f99ca32053f4cbc","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"ON","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":400,"wires":[["357897046eec06bf"]]},{"id":"a72784568d2591d9","type":"change","z":"9f99ca32053f4cbc","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"OFF","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":460,"wires":[["357897046eec06bf"]]},{"id":"0645040ae3e82553","type":"debug","z":"9f99ca32053f4cbc","name":"battery","active":false,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":760,"y":840,"wires":[]},{"id":"310b55c74de48dc3","type":"debug","z":"9f99ca32053f4cbc","name":"linkquality","active":false,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":760,"y":940,"wires":[]},{"id":"e3feae99b0ccaf18","type":"debug","z":"9f99ca32053f4cbc","name":"update.state","active":false,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":770,"y":1040,"wires":[]},{"id":"cee28066583e072c","type":"debug","z":"9f99ca32053f4cbc","name":"debug1 Eingang","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":200,"y":660,"wires":[]},{"id":"ca1f337c61f78d56","type":"debug","z":"9f99ca32053f4cbc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":970,"y":660,"wires":[]},{"id":"85caf099dbc67c55","type":"debug","z":"9f99ca32053f4cbc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":970,"y":720,"wires":[]},{"id":"6225976d81eeaa78","type":"debug","z":"9f99ca32053f4cbc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.action","targetType":"msg","statusVal":"","statusType":"auto","x":990,"y":780,"wires":[]},{"id":"7964a7baf35fe47d","type":"switch","z":"9f99ca32053f4cbc","name":"on","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":400,"wires":[["ce5ff6b23ddbd4c2"]]},{"id":"0ad97dc951627dc9","type":"switch","z":"9f99ca32053f4cbc","name":"off","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":460,"wires":[["a72784568d2591d9"]]},{"id":"29758a7b242b91da","type":"switch","z":"9f99ca32053f4cbc","name":"brightness_step_up","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"brightness_step_up","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":550,"y":600,"wires":[["c083d85267f2aab5"]]},{"id":"8e16961b96f59bab","type":"switch","z":"9f99ca32053f4cbc","name":"brightness_step_down","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"brightness_step_down","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":520,"wires":[["87df7aea839d9b49"]]},{"id":"c5b68bbd5c0393d2","type":"switch","z":"9f99ca32053f4cbc","name":"release","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"release","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":520,"y":720,"wires":[["f130d463eef53457"]]},{"id":"e6db9b14d30d0182","type":"switch","z":"9f99ca32053f4cbc","name":"press","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"press","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":660,"wires":[["9fdd61a7cf140602"]]},{"id":"a34afd0535fa2e5e","type":"switch","z":"9f99ca32053f4cbc","name":"hold","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"hold","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":780,"wires":[["cf5cdd4d8fef0b42"]]},{"id":"9fdd61a7cf140602","type":"change","z":"9f99ca32053f4cbc","name":"press","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.action","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":660,"wires":[["ca1f337c61f78d56"]]},{"id":"f130d463eef53457","type":"change","z":"9f99ca32053f4cbc","name":"release","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.action","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":720,"wires":[["85caf099dbc67c55"]]},{"id":"cf5cdd4d8fef0b42","type":"change","z":"9f99ca32053f4cbc","name":"hold","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.action","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":780,"wires":[["6225976d81eeaa78"]]},{"id":"a49969938d6fa737","type":"change","z":"9f99ca32053f4cbc","name":"linkquality","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.linkquality","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":940,"wires":[["310b55c74de48dc3","f118a41a7e4942d8"]]},{"id":"82148a40083d5e14","type":"change","z":"9f99ca32053f4cbc","name":"update.state","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.update.state","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":1040,"wires":[["e3feae99b0ccaf18"]]},{"id":"5d74de45213046b7","type":"change","z":"9f99ca32053f4cbc","name":"battery","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.battery","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":840,"wires":[["0645040ae3e82553","5d008cc57fae3e99"]]},{"id":"87df7aea839d9b49","type":"function","z":"9f99ca32053f4cbc","name":"","func":"\n//msg.payload = \"step down \" + msg.payload*-1;\nlet step = msg.payload.action_step_size*-1;\nlet t =msg.payload.action_transition_time;\nmsg.payload = {\"brightness_step_onoff\":-36};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":520,"wires":[["e21ebe14b9f39926"]]},{"id":"c083d85267f2aab5","type":"function","z":"9f99ca32053f4cbc","name":"","func":"//msg.payload = \"step down \" + msg.payload*-1;\nlet step = msg.payload.action_step_size;\nlet t = msg.payload.action_transition_time;\nmsg.payload = {\"brightness_step_onoff\":36};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":600,"wires":[["e21ebe14b9f39926"]]},{"id":"e21ebe14b9f39926","type":"function","z":"9f99ca32053f4cbc","name":"Step","func":"return msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":950,"y":560,"wires":[["c1969e6d8543fc89"]]},{"id":"357897046eec06bf","type":"ui_switch","z":"9f99ca32053f4cbc","name":"Eingang On / Off","label":"Eingang ","tooltip":"","group":"b39a769e1a5ab2d0","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"ON","onvalueType":"str","onicon":"fa-2x fa-toggle-on","oncolor":"red","offvalue":"OFF","offvalueType":"str","officon":"fa-2x fa-toggle-off","offcolor":"green","animate":true,"className":"","x":990,"y":280,"wires":[["77a55f8e37d0061a"]]},{"id":"77a55f8e37d0061a","type":"function","z":"9f99ca32053f4cbc","name":"ON/OFF","func":"return{payload:{\"state\": msg.payload}};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1220,"y":280,"wires":[[]]},{"id":"46512a4130ee641d","type":"inject","z":"9f99ca32053f4cbc","name":"ON","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":710,"y":260,"wires":[["357897046eec06bf"]]},{"id":"e03ea086dc262180","type":"inject","z":"9f99ca32053f4cbc","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"OFF","payloadType":"str","x":710,"y":300,"wires":[["357897046eec06bf"]]},{"id":"f118a41a7e4942d8","type":"ui_text","z":"9f99ca32053f4cbc","group":"3463b2b4d95822f5","order":5,"width":0,"height":0,"name":"linkquality","label":"linkquality","format":"{{msg.payload}} unit","layout":"row-spread","className":"","x":760,"y":1000,"wires":[]},{"id":"5d008cc57fae3e99","type":"ui_text","z":"9f99ca32053f4cbc","group":"3463b2b4d95822f5","order":3,"width":0,"height":0,"name":"battery","label":"Battery","format":"{{msg.payload}} %","layout":"row-spread","className":"","x":760,"y":900,"wires":[]},{"id":"d6cb6dc92f386f45","type":"zigbee2mqtt-server","name":"","host":"localhost","mqtt_port":"1883","mqtt_username":"","mqtt_password":"","mqtt_qos":"0","tls":"","usetls":false,"base_topic":"zigbee2mqtt"},{"id":"b39a769e1a5ab2d0","type":"ui_group","name":"Dimmer","tab":"c7e50f4d.33f09","order":4,"disp":true,"width":"6","collapse":false,"className":""},{"id":"3463b2b4d95822f5","type":"ui_group","name":"hue button entrance","tab":"b881d91c.f73d98","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"c7e50f4d.33f09","type":"ui_tab","name":"Switches","icon":"mi-toggle_on","order":2,"disabled":false,"hidden":false},{"id":"b881d91c.f73d98","type":"ui_tab","name":"Status","icon":"dashboard","order":4,"disabled":false,"hidden":false}]

Hallo zusammen,
ich hab inzwischen den Hue Button eingebunden. Allerdings klappt es noch nicht richtig mit dem dimmen.
Bei langem Tastendruck spuckt die Debug folgendes aus:

7x
{"action": "brightness_step_down", "action_step_size":56, "action_transition_time":0.09, "battery":100, "linkquality":184, "update":{"state": "idle"}}

und dann 7x:

{"action": "brightness_step_up", "action_step_size":56, "action_transition_time":0.09, "battery":100, "linkquality":176, "update":{"state": "idle"}}

Hat das jemand schon probiert und könnte mir evtl. helfen?

Hallo Stefan,
sorry das ich mich so spät melde, aber das böse “C” hat mich ausgenockt :face_with_thermometer:
Vermutlich geht das garnicht, der dht11/22 hat kein klassisches Dallas Onewire Protokoll,
daher kannst du das nicht paralel zu den Temperaturfühler packen.
Außerdem werte PEKAWAY das im Hintergrund mit einem Python Script aus
grafik

Darum bin ich über das dimmyboard gegange.

@Karl du sagtest mir mal, dass man den DHT22 als Luftfeuchte Sensor einsetzen könnte, oder ?

@ahtdf Habe es nun mit zwei BME280 gelöst:

Aber ich bekomme noch ein rotes Dreieck angezeigt mit folgendem Fehler:

Ich vermute mal das die Dinger die gleiche Adresse haben. Und du nur werte bekommst, weil wechselweise abgefragt wird ???
Hab slonst keine Ahnung

ja, es ist ein “one wire” sensor… du kannst ihn genauso anschließen wie die ds18b20.
Nur die Implementierung musst du noch machen.

Hallo Stefan
hat das funktioniert, mit dem DHT22 parallel zu DS18b20???
Ich babe das vor längerer Zeit mal versucht und es hat nicht funktionier.
und dann bin ich hierdrauf gestoßen.

Letzer Satz unter dem DHT22
" Although it uses a single wire to send data it is not Dallas One Wire compatible! If you want multiple sensors, each one must have its own data pin."
Gruß Arno

Hallo Arno, nein habe es in Kombi nicht probiert, komme gerade zeitlich nicht dazu. Aber der Hinweis ist interessant.
Im Grunde reichen mir für die Taupunktsteuerung 2 x BME 280 . Einer aussen, unter dem Wowa, einer innen.
Gruss, Arno