HowTo: Node Red – Sonoff 433Mhz RF Bridge einbinden

In den beiden Artikeln Sonoff 433Mhz RF Bridge mit Tasmota Firmware flashen und Tasmota – Sonoff 433Mhz RF-Bridge konfigurieren und Steckdosen anlernen ist erklärt, wie man die Sonoff RF Bridge auf die Verwendung mit der Tasmota-Firmware vorbereitet. Der Vorteil davon ist, dass man nun auch ohne den cloudbasierten Dienst von Sonoff die RF Bridge direkt aus NodeRed steuern kann.

Wie die eigentliche Steuerung der RF Bridge aus NodeRed dann aussehen könnte ist im folgenden Artikel erklärt.


Sicherheitshinweise

Ich weiß die folgenden Hinweise sind immer irgendwie lästig und wirken unnötig. Aber leider haben schon viele Menschen die es "besser" wussten aus Leichtsinnigkeit Augen, Finger oder anderes verloren bzw. sich verletzt. Im Vergleich dazu ist ein Datenverlust fast nicht der Rede Wert, aber auch diese können echt ärgerlich sein. Deswegen nehmt Euch bitte fünf Minuten Zeit um die Sicherheitshinweise zu lesen. Denn auch das coolste Projekt ist keine Verletzung oder anderen Ärger wert.
https://www.nerdiy.de/sicherheitshinweise/

Affiliatelinks/Werbelinks

Die hier in aufgeführten Links zu Online-Shops sind sogenannte Affiliate-Links. Wenn Du auf so einen Affiliate-Link klickst und über diesen Link einkaufst, bekommt Nerdiy.de von dem betreffenden Online-Shop oder Anbieter eine Provision. Für Dich verändert sich der Preis nicht. Falls Du Deine Einkäufe über diese Links tätigst unterstützt Du Nerdiy.de dabei auch in Zukunft weitere nützliche Projekte anbieten zu können. 🙂 


Voraussetzungen

Hilfreiche Artikel:
Damit Ihr diese Konfiguration übernehmen könnt sollte NodeRed natürlich schon installiert sein. Außerdem sollte die Sonoff RF Bridge bereits vorbereitet sein.
Wie ihr diese und einen RaspberryPi dazu vorbereitet und dann NodeRed darauf installiert ist in den folgenden Artikeln beschrieben.
RaspberryPi – Einrichten für Nerdiys!
RaspberryPi – Die Erste Konfiguration!
RaspberryPi – Den RaspberryPi über SSH steuern

NodeRed – Installation von NodeRed auf dem RaspberryPi
NodeRed – Neue Nodes installieren
NodeRed – Node-Code importieren und exportieren
Sonoff 433Mhz RF Bridge mit Tasmota Firmware flashen
Tasmota – Sonoff 433Mhz RF-Bridge konfigurieren und Steckdosen anlernen
NodeRed – Mit Dashboard-Nodes eine Benutzeroberfläche erstellen

Benötigtes Werkzeug:
-keins-

Benötigtes Material:

In der folgenden Liste findet Ihr alle Teile die Ihr zur Umsetzung dieses Artikels benötigt.


In die NodeRed Konfigurationsoberfläche einloggen

Bevor Ihr eure NodeRed Konfiguration bearbeiten könnt müsst Ihr Euch - falls aktiviert - zunächst in die NodeRed Konfigurationsoberfläche einloggen.

Ansicht des Login Dialogs. Hier müsst Ihr die Login Daten eingeben die Ihr während der Konfiguration des Logins angegeben habt. Infos dazu findet Ihr im Artikel NodeRed - Benutzerlogin einrichten.

Node-Code importieren

In dem folgenden Node-Code ist die Konfiguration enthalten die es Euch ermöglicht bis zu acht Funksteckdosen zu steuern. Dabei ist der Einschalt- und Ausschalt-Befehl jeder Steckdose jeweils einem “FunkButton”(siehe dazu die erwähnen anderen RF Bridge Artikel) zugeordnet.

Beim Betätigen eines der Dashboard-Schalter wird also entweder der eine oder der andere Funkbutton betätigt.
Außerdem ist im Editor auch eine Anlern-Funktion verfügbar. Dazu muss jeweils die “startLearning” Injection-Node neben den betreffenden “rfkeys” betätigt werden. Der Anlernvorgang läuft dann wie in dem Artikel Tasmota – Sonoff 433Mhz RF-Bridge konfigurieren und Steckdosen anlernen beschrieben ab.

Ansicht der Schalter auf dem Dashboard.
Ansicht der Node-Konfiguration im Editor.

Node-Code:

[{"id":"e147a276.af17b","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":260,"wires":[["d163b7a3.bb9c48"],["cee09e4c.21d6b"]]},{"id":"78c28256.128d9c","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey4","topic":"cmnd/RfBridge/rfkey4","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":280,"wires":[]},{"id":"176ed701.494aa9","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey3","topic":"cmnd/RfBridge/rfkey3","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":240,"wires":[]},{"id":"d163b7a3.bb9c48","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":240,"wires":[["176ed701.494aa9"]]},{"id":"cee09e4c.21d6b","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":280,"wires":[["78c28256.128d9c"]]},{"id":"cce0e599.7753d8","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":100,"wires":[["e07ddde5.c1ae9"],["5ebb9f0.1a7006"]]},{"id":"d983158b.e970e8","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey2","topic":"cmnd/RfBridge/rfkey2","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":120,"wires":[]},{"id":"e6e1fdc4.aad2b","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey1","topic":"cmnd/RfBridge/rfkey1","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":80,"wires":[]},{"id":"e07ddde5.c1ae9","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":80,"wires":[["e6e1fdc4.aad2b"]]},{"id":"5ebb9f0.1a7006","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":120,"wires":[["d983158b.e970e8"]]},{"id":"d3934097.a0d6a","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":420,"wires":[["350d2090.6f2c8"],["73c351ef.54443"]]},{"id":"27bbe04e.77bb5","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey6","topic":"cmnd/RfBridge/rfkey6","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":440,"wires":[]},{"id":"b8be8cbb.b50e8","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey5","topic":"cmnd/RfBridge/rfkey5","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":400,"wires":[]},{"id":"350d2090.6f2c8","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":400,"wires":[["b8be8cbb.b50e8"]]},{"id":"73c351ef.54443","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":440,"wires":[["27bbe04e.77bb5"]]},{"id":"c05ff2fe.a086c","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":380,"wires":[["350d2090.6f2c8"]]},{"id":"d38dfaef.b16878","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":460,"wires":[["73c351ef.54443"]]},{"id":"2153677d.3e2ec8","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":580,"wires":[["b9fa042d.859af8"],["ef94f3d.4edc41"]]},{"id":"e2ae277f.cea408","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey8","topic":"cmnd/RfBridge/rfkey8","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":600,"wires":[]},{"id":"866f0df3.fbd51","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey7","topic":"cmnd/RfBridge/rfkey7","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":560,"wires":[]},{"id":"b9fa042d.859af8","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":560,"wires":[["866f0df3.fbd51"]]},{"id":"ef94f3d.4edc41","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":600,"wires":[["e2ae277f.cea408"]]},{"id":"42949be6.f069c4","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":520,"wires":[["866f0df3.fbd51"]]},{"id":"1724b816.f2dae8","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket1 On/off","group":"fc2f2879.ca14f8","order":15,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":180,"y":100,"wires":[["cce0e599.7753d8"]]},{"id":"2dd5b519.cf0ada","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket2 On/off","group":"fc2f2879.ca14f8","order":16,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":180,"y":260,"wires":[["e147a276.af17b"]]},{"id":"b190894a.45af98","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket3 On/off","group":"fc2f2879.ca14f8","order":17,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":180,"y":420,"wires":[["d3934097.a0d6a"]]},{"id":"7c9553f2.a1f12c","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket4 On/off","group":"fc2f2879.ca14f8","order":18,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":180,"y":580,"wires":[["2153677d.3e2ec8"]]},{"id":"159a8f08.263f21","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":1190,"y":100,"wires":[["4d2cd0cc.7c157"],["17f1e098.93ad9f"]]},{"id":"1d9521f1.53b97e","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey10","topic":"cmnd/RfBridge/rfkey10","qos":"2","retain":"","broker":"b0640582.a49538","x":1560,"y":120,"wires":[]},{"id":"83c3b0fb.cd413","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey9","topic":"cmnd/RfBridge/rfkey9","qos":"2","retain":"","broker":"b0640582.a49538","x":1550,"y":80,"wires":[]},{"id":"4d2cd0cc.7c157","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":80,"wires":[["83c3b0fb.cd413"]]},{"id":"17f1e098.93ad9f","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":120,"wires":[["1d9521f1.53b97e"]]},{"id":"b3acb73.9112148","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket5 On/off","group":"fc2f2879.ca14f8","order":14,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":1000,"y":100,"wires":[["159a8f08.263f21"]]},{"id":"bd33b831.e9f3a8","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":1190,"y":260,"wires":[["35d273b9.ddaffc"],["f5825eab.2f556"]]},{"id":"7d8e5d28.23a814","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey12","topic":"cmnd/RfBridge/rfkey12","qos":"2","retain":"","broker":"b0640582.a49538","x":1560,"y":280,"wires":[]},{"id":"57ac0ccb.424164","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey11","topic":"cmnd/RfBridge/rfkey11","qos":"2","retain":"","broker":"b0640582.a49538","x":1560,"y":240,"wires":[]},{"id":"35d273b9.ddaffc","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":240,"wires":[["57ac0ccb.424164"]]},{"id":"f5825eab.2f556","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":280,"wires":[["7d8e5d28.23a814"]]},{"id":"321594d6.cd72ac","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket6 On/off","group":"fc2f2879.ca14f8","order":14,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":1000,"y":260,"wires":[["bd33b831.e9f3a8"]]},{"id":"2f77ddc5.90ace2","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey13","topic":"cmnd/RfBridge/rfkey13","qos":"2","retain":"","broker":"b0640582.a49538","x":1560,"y":400,"wires":[]},{"id":"9c3cddc3.ca54d","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey14","topic":"cmnd/RfBridge/rfkey14","qos":"2","retain":"","broker":"b0640582.a49538","x":1560,"y":440,"wires":[]},{"id":"b37224f8.495ba8","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":1190,"y":420,"wires":[["9b517b14.dacb48"],["c31e33c1.ad813"]]},{"id":"9b517b14.dacb48","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":400,"wires":[["2f77ddc5.90ace2"]]},{"id":"c31e33c1.ad813","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":440,"wires":[["9c3cddc3.ca54d"]]},{"id":"24f017fd.046528","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket7 On/off","group":"fc2f2879.ca14f8","order":13,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":1000,"y":420,"wires":[["b37224f8.495ba8"]]},{"id":"c60358d3.8d7138","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey15","topic":"cmnd/RfBridge/rfkey15","qos":"2","retain":"","broker":"b0640582.a49538","x":1560,"y":560,"wires":[]},{"id":"350828ac.655ee8","type":"mqtt out","z":"85a0e2c7.3de75","name":"rfkey16","topic":"cmnd/RfBridge/rfkey16","qos":"2","retain":"","broker":"b0640582.a49538","x":1560,"y":600,"wires":[]},{"id":"aebec679.5ab078","type":"switch","z":"85a0e2c7.3de75","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":1190,"y":580,"wires":[["640931dc.d4c14"],["d2c61d3e.9630b"]]},{"id":"640931dc.d4c14","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":560,"wires":[["c60358d3.8d7138"]]},{"id":"d2c61d3e.9630b","type":"change","z":"85a0e2c7.3de75","name":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":600,"wires":[["350828ac.655ee8"]]},{"id":"25d5a06b.210d1","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket8 On/off","group":"fc2f2879.ca14f8","order":13,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":1000,"y":580,"wires":[["aebec679.5ab078"]]},{"id":"a2ebd0cf.27bdd","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":640,"wires":[["e2ae277f.cea408"]]},{"id":"8284ddc1.d8915","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":480,"wires":[["27bbe04e.77bb5"]]},{"id":"ba60eb83.4b95c8","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1390,"y":40,"wires":[["83c3b0fb.cd413"]]},{"id":"f093de6c.73531","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1390,"y":160,"wires":[["1d9521f1.53b97e"]]},{"id":"c3bfdb1a.3da768","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1390,"y":200,"wires":[["57ac0ccb.424164"]]},{"id":"890bc90.0052d38","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1390,"y":320,"wires":[["7d8e5d28.23a814"]]},{"id":"cec0bd12.7c803","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1390,"y":360,"wires":[["2f77ddc5.90ace2"]]},{"id":"48bbc301.34783c","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1390,"y":480,"wires":[["9c3cddc3.ca54d"]]},{"id":"9b6ca9d1.0a6838","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":40,"wires":[["e6e1fdc4.aad2b"]]},{"id":"68b7290a.1f1118","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":160,"wires":[["d983158b.e970e8"]]},{"id":"75cb1e74.b91b9","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":200,"wires":[["176ed701.494aa9"]]},{"id":"7957560f.2acd18","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":320,"wires":[["78c28256.128d9c"]]},{"id":"83be3b00.44b988","type":"inject","z":"85a0e2c7.3de75","name":"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":570,"y":360,"wires":[["b8be8cbb.b50e8"]]},{"id":"f3a51dca.efc73","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":220,"wires":[["d163b7a3.bb9c48"]]},{"id":"1408fffa.6a576","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":60,"wires":[["e07ddde5.c1ae9"]]},{"id":"883f22f2.f5fed","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":540,"wires":[["b9fa042d.859af8"]]},{"id":"72e8f63a.9934c8","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":60,"wires":[["4d2cd0cc.7c157"]]},{"id":"e5b82da3.0b1e6","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":220,"wires":[["35d273b9.ddaffc"]]},{"id":"8bbbd5f2.140c78","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":380,"wires":[["9b517b14.dacb48"]]},{"id":"c87235cf.86dac8","type":"inject","z":"85a0e2c7.3de75","name":"On","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":540,"wires":[["640931dc.d4c14"]]},{"id":"e3ccc391.bcf7f","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":140,"wires":[["5ebb9f0.1a7006"]]},{"id":"f26e4793.080618","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":300,"wires":[["cee09e4c.21d6b"]]},{"id":"b8016add.69fe38","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":620,"wires":[["ef94f3d.4edc41"]]},{"id":"257528d.30313d8","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":140,"wires":[["17f1e098.93ad9f"]]},{"id":"976a27b3.c8a938","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":300,"wires":[["f5825eab.2f556"]]},{"id":"7b4af0bf.6361b","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":460,"wires":[["c31e33c1.ad813"]]},{"id":"f55973ab.06d8","type":"inject","z":"85a0e2c7.3de75","name":"Off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1190,"y":620,"wires":[["d2c61d3e.9630b"]]},{"id":"b0640582.a49538","type":"mqtt-broker","z":"","name":"Server-Mqtt","broker":"server.fritz.box","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"fc2f2879.ca14f8","type":"ui_group","z":"","name":"Light","tab":"d651a8eb.fefb38","disp":true,"width":"6","collapse":false},{"id":"d651a8eb.fefb38","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

Viel Spaß mit dem Projekt

Ich hoffe bei euch hat alles wie beschrieben funktioniert. Falls nicht oder ihr Fragen oder Anregungen habt lasst es mich in den Kommentaren bitte wissen. Ich trage dies dann ggf. in den Artikel nach.
Auch Ideen für neue Projekte sind immer gerne willkommen. 🙂

P.S. Viele dieser Projekte - besonders die Hardwareprojekte - kosten viel Zeit und Geld. Natürlich mache ich das weil ich Spaß daran habe, aber wenn Du es cool findest, dass ich die Infos dazu mit Euch teile, würde ich mich über eine kleine Spende an die Kaffeekasse freuen. 🙂

Buy Me a Coffee at ko-fi.com       

8 Kommentare

  1. Guten Tag,

    erstmal vielen Dank für den Code.

    Ich habe hier nur 1 Problem, nach dem Importieren erscheinen bei mir nicht die Sockets 1 -8 , sondern unknown; ui switch.

    Es scheint so als fehlt Red Node das entsprechende Modul.

    Oder mache ich etwas falsch?!

    Welches muss noch installiert werden?

    Vielen Dank!

  2. Hi Fabian,

    erstmal vorab, deine Beiträge sind super Informativ und mit viel Herzblut geschrieben. TOP!

    Das mit dem Dashboard hatte ich mittlerweile auch schon herausgefunden.
    Ich werde mir nun mal die Anleitung dazu von dir durchlesen.

    Mal kurz zu meinem Projekt:
    Ich habe 3 RF PIR Sensoren und diverse RF Fernbedienungen hier.

    Diese sollen später Mal mehrere vorhandene Shellys im Garten über Node einschalten können.
    Die Codes habe ich schon einlernen können über Konsole aber auch über dein Flow.
    Mqtt Empfang der Codes klappt auch.
    Vielen Dank nochmal dafür.

    Was ich noch nicht hinbekomme, das die Shellys über Node eingeschaltet werden sobald ein Key empfangen wird.

    Vielleicht hast du hier noch ein Tip? Irgendwie fehlt mir hier die richtige Schnittstelle zwischen RF Bridge und Shellys.

    Vielen Dank!

    1. Hey Michael,
      vielen Dank. Freut mich zu lesen, dass sich die Arbeit gelohnt hat. 🙂
      Also wenn ich es richtig verstanden hast empfängst Du schon die Codes von den Funkfernbedienungen und willst dieses Signal nun “nur noch” an die Shellys weiterleiten?
      Hast du die Shellys mit Tasmota geflasht oder falls nicht den MQTT-Clienten (der Shellys) mit deinem Server verbunden? 🙂
      Falls ja, musst du ja eigentlich nur noch eine Weiterleitung einrichten, oder?
      Beste Grüße
      Fabian

  3. Hi,

    ja genau so ist das.

    Signale werden alle empfangen, anlernen klappt auch.

    Die Shellys hier im Haus, laufen alle auf original Firmware.

    Es ist beides möglich, per MQTT aber auch per Shelly Node sie anzusprechen / schalten.

    Hier bin ich gerade dabei auf MQTT umzustellen im Node, da dies einfach flexibler ist und noch mehr möglichkeiten eröffnet. Also 1 Test Shelly ist bereits am MQTT Server angemeldet, das funktioniert auch wunderbar.

    Was mir fehlt ist die Brücke zwischen beiden Systemen also wie du schon sagst die weiterleitung.

    Also ein Node was den entsprechenden RFKEY erhält und dann msg. on oder off sendet via MQTT.
    Die bestehende Alexa Home anbindung kann man ja dazwischen frickeln 🙂

    Ich stehe da irgendwie auf dem Schlauch.

    Vielen Dank!

    1. Hi Michael,
      wenn ich es richtig verstanden habe, brauchst du eigentlich nur die “change”-node. Diese empfängt eine nachricht und kann der msg.payload einen neuen Wert zuweisen.
      Im Prinzip könnte das so aussehen:
      [Einschaltbefehl von Fernbedienung]->[change node: msg.payload=on]->[Weiterleitung zu shelly]
      Das gleiche dann nochmal für den Ausschaltbefehl. 🙂
      Ich hoffe man kann nachvollziehen wie ich das meine. 🙂
      Beste Grüße
      Fabian

  4. Hi Fabian,

    nun endlich habe ich ein brauchbares Ergebniss erzielt sowohl über HTTP als auch über MQTT anwendbar.

    Ich musste noch einen Filter einbauen, der die Signale der RF Fernbedienung splittet.
    Da hier mehrere Signale bei einem Tastendruck gesendet werden.

    Du kannst dir das ja mal anschauen 😉

    Mit deinem Einverständnis darf der Flow gerne geteilt werden. Vielleicht ist es dem ein oder anderen eine Hilfe.

    Ich habe deine Anlern Nodes übernommen, da das super praktisch ist.
    Ich hoffe das ist ok.

    Nochmal Vielen Dank!

    Und der Flow:

    [{“id”:”a5966690.fab85″,”type”:”tab”,”label”:”Flow 2 RF Bridge”,”disabled”:false,”info”:””},{“id”:”8a54e2d8.b9da58″,”type”:”debug”,”z”:”a5966690.fab85″,”name”:””,”active”:true,”tosidebar”:true,”console”:false,”tostatus”:false,”complete”:”payload”,”targetType”:”msg”,”statusVal”:””,”statusType”:”auto”,”x”:770,”y”:1040,”wires”:[]},{“id”:”78c28256.128d9c”,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey4″,”topic”:”cmnd/RfBridge/rfkey4″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:240,”wires”:[]},{“id”:”176ed701.494aa9″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey3″,”topic”:”cmnd/RfBridge/rfkey3″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:180,”wires”:[]},{“id”:”d983158b.e970e8″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey2″,”topic”:”cmnd/RfBridge/rfkey2″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:120,”wires”:[]},{“id”:”e6e1fdc4.aad2b”,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey1″,”topic”:”cmnd/RfBridge/rfkey1″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:60,”wires”:[]},{“id”:”27bbe04e.77bb5″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey6″,”topic”:”cmnd/RfBridge/rfkey6″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:360,”wires”:[]},{“id”:”b8be8cbb.b50e8″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey5″,”topic”:”cmnd/RfBridge/rfkey5″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:300,”wires”:[]},{“id”:”e2ae277f.cea408″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey8″,”topic”:”cmnd/RfBridge/rfkey8″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:480,”wires”:[]},{“id”:”866f0df3.fbd51″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey7″,”topic”:”cmnd/RfBridge/rfkey7″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:290,”y”:420,”wires”:[]},{“id”:”42949be6.f069c4″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:420,”wires”:[[“866f0df3.fbd51”]]},{“id”:”233fbe11.5cd2da”,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey10″,”topic”:”cmnd/RfBridge/rfkey10″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:120,”wires”:[]},{“id”:”204c4bab.3ab5a4″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey9″,”topic”:”cmnd/RfBridge/rfkey9″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:630,”y”:60,”wires”:[]},{“id”:”f750bbd7.d8dbf8″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey12″,”topic”:”cmnd/RfBridge/rfkey12″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:240,”wires”:[]},{“id”:”fc1cfb8.b038608″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey11″,”topic”:”cmnd/RfBridge/rfkey11″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:180,”wires”:[]},{“id”:”a0163ac.409f048″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey13″,”topic”:”cmnd/RfBridge/rfkey13″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:300,”wires”:[]},{“id”:”159d7acc.0b8045″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey14″,”topic”:”cmnd/RfBridge/rfkey14″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:360,”wires”:[]},{“id”:”e570aeb8.182bd8″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey15″,”topic”:”cmnd/RfBridge/rfkey15″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:420,”wires”:[]},{“id”:”3ab75646.4111a2″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:”rfkey16″,”topic”:”cmnd/RfBridge/rfkey16″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:480,”wires”:[]},{“id”:”a2ebd0cf.27bdd”,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:480,”wires”:[[“e2ae277f.cea408”]]},{“id”:”8284ddc1.d8915″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:360,”wires”:[[“27bbe04e.77bb5”]]},{“id”:”ba60eb83.4b95c8″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:60,”wires”:[[“204c4bab.3ab5a4”]]},{“id”:”f093de6c.73531″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:120,”wires”:[[“233fbe11.5cd2da”]]},{“id”:”c3bfdb1a.3da768″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:180,”wires”:[[“fc1cfb8.b038608”]]},{“id”:”890bc90.0052d38″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:240,”wires”:[[“f750bbd7.d8dbf8”]]},{“id”:”cec0bd12.7c803″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:300,”wires”:[[“a0163ac.409f048”]]},{“id”:”48bbc301.34783c”,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”props”:[{“p”:”payload”,”v”:”2″,”vt”:”str”},{“p”:”topic”,”v”:””,”vt”:”string”}],”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:360,”wires”:[[“159d7acc.0b8045”]]},{“id”:”9b6ca9d1.0a6838″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:60,”wires”:[[“e6e1fdc4.aad2b”]]},{“id”:”68b7290a.1f1118″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:120,”wires”:[[“d983158b.e970e8”]]},{“id”:”75cb1e74.b91b9″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:180,”wires”:[[“176ed701.494aa9”]]},{“id”:”7957560f.2acd18″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:240,”wires”:[[“78c28256.128d9c”]]},{“id”:”83be3b00.44b988″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:300,”wires”:[[“b8be8cbb.b50e8”]]},{“id”:”83796195.4cbd78″,”type”:”change”,”z”:”a5966690.fab85″,”name”:”ON VIA HTTP”,”rules”:[{“t”:”set”,”p”:”payload”,”pt”:”msg”,”to”:”on”,”tot”:”str”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:660,”y”:700,”wires”:[[“b29c50c1.60af38”]]},{“id”:”aefa120e.08cec8″,”type”:”mqtt in”,”z”:”a5966690.fab85″,”name”:””,”topic”:”tele/RfBridge/RESULT”,”qos”:”2″,”datatype”:”auto”,”broker”:”2feb2429.245e84″,”x”:180,”y”:760,”wires”:[[“4412f309.c8dd0c”,”8a54e2d8.b9da58″]]},{“id”:”9ad5229.c043c6″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”ON”,”props”:[{“p”:”payload”},{“p”:”topic”,”vt”:”str”}],”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”on”,”payloadType”:”str”,”x”:650,”y”:740,”wires”:[[“b29c50c1.60af38”]]},{“id”:”b29c50c1.60af38″,”type”:”function”,”z”:”a5966690.fab85″,”name”:”turn relay on/off”,”func”:”var x = msg.payload;\nvar IP = \”192.168.178.103\”;\nmsg.url= \”http://\”+ IP + \”/relay/0\”;\n\nmsg.payload = \”turn=\” + x;\nreturn msg;”,”outputs”:1,”noerr”:0,”initialize”:””,”finalize”:””,”x”:880,”y”:760,”wires”:[[“e2fe56f9.77e258”]]},{“id”:”f381d688.c77088″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”OFF”,”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”off”,”payloadType”:”str”,”x”:650,”y”:780,”wires”:[[“b29c50c1.60af38”]]},{“id”:”e2fe56f9.77e258″,”type”:”http request”,”z”:”a5966690.fab85″,”name”:””,”method”:”POST”,”ret”:”obj”,”paytoqs”:”ignore”,”url”:””,”tls”:””,”persist”:false,”proxy”:””,”authType”:””,”x”:1070,”y”:760,”wires”:[[“8a54e2d8.b9da58”]]},{“id”:”4412f309.c8dd0c”,”type”:”switch”,”z”:”a5966690.fab85″,”name”:”FILTER RF SIGNAL”,”property”:”payload”,”propertyType”:”msg”,”rules”:[{“t”:”cont”,”v”:”\”RfKey\”:1″,”vt”:”str”},{“t”:”cont”,”v”:”\”RfKey\”:2″,”vt”:”str”}],”checkall”:”true”,”repair”:false,”outputs”:2,”x”:430,”y”:760,”wires”:[[“1e42d44f.ed73ec”],[“ae7ef696.85c208”]]},{“id”:”b722adfd.a9572″,”type”:”change”,”z”:”a5966690.fab85″,”name”:”OFF VIA HTTP”,”rules”:[{“t”:”set”,”p”:”payload”,”pt”:”msg”,”to”:”off”,”tot”:”str”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:660,”y”:820,”wires”:[[“b29c50c1.60af38”]]},{“id”:”faddf7fe.33081″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”name”:””,”topic”:”shellies/Nils/relay/0/command”,”qos”:”2″,”retain”:”false”,”broker”:”2feb2429.245e84″,”x”:1430,”y”:760,”wires”:[]},{“id”:”1e42d44f.ed73ec”,”type”:”change”,”z”:”a5966690.fab85″,”name”:”ON VIA MQTT”,”rules”:[{“t”:”set”,”p”:”payload”,”pt”:”msg”,”to”:”on”,”tot”:”str”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:660,”y”:660,”wires”:[[“faddf7fe.33081”]]},{“id”:”ae7ef696.85c208″,”type”:”change”,”z”:”a5966690.fab85″,”name”:”OFF VIA MQTT”,”rules”:[{“t”:”set”,”p”:”payload”,”pt”:”msg”,”to”:”off”,”tot”:”str”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:660,”y”:860,”wires”:[[“faddf7fe.33081”]]},{“id”:”481b88e6.de22d8″,”type”:”mqtt in”,”z”:”a5966690.fab85″,”name”:”Shelly ID Reader”,”topic”:”shellies/#”,”qos”:”2″,”datatype”:”auto”,”broker”:”2feb2429.245e84″,”x”:1080,”y”:940,”wires”:[[“c22df741.ef5f9”]]},{“id”:”31db797e.3f6f66″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”props”:[{“p”:”payload”,”v”:”2″,”vt”:”str”},{“p”:”topic”,”v”:””,”vt”:”string”}],”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:420,”wires”:[[“e570aeb8.182bd8”]]},{“id”:”f64ee4de.532a9″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning”,”props”:[{“p”:”payload”,”v”:”2″,”vt”:”str”},{“p”:”topic”,”v”:””,”vt”:”string”}],”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:470,”y”:480,”wires”:[[“3ab75646.4111a2”]]},{“id”:”c22df741.ef5f9″,”type”:”debug”,”z”:”a5966690.fab85″,”name”:””,”active”:true,”tosidebar”:true,”console”:false,”tostatus”:false,”complete”:”false”,”statusVal”:””,”statusType”:”auto”,”x”:1340,”y”:940,”wires”:[]},{“id”:”2feb2429.245e84″,”type”:”mqtt-broker”,”name”:”PI MQTT”,”broker”:”192.168.178.71″,”port”:”1883″,”clientid”:””,”usetls”:false,”compatmode”:true,”keepalive”:”60″,”cleansession”:true,”birthTopic”:””,”birthQos”:”0″,”birthPayload”:””,”closeTopic”:””,”closeQos”:”0″,”closePayload”:””,”willTopic”:””,”willQos”:”0″,”willPayload”:””}]

    1. Hey Michael,
      super, freut mich zu hören. Klar würde das gerne einbinden. Leider kann ich den Code nicht importieren. Ich glaube das liegt daran, dass die Kommentarfunktion hier einige der Werte filtert.
      Kannst du mir den Code nochmal über Pastebin oder gerne auch per E-Mail/Kontaktformular zukommen lassen? 🙂
      Vorab vielen Dank und beste Grüße
      Fabian

Kommentar hinterlassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.