HowTo: Node Red - Intégrer le pont RF Sonoff 433Mhz

Dans les deux articles Pont RF Flash Sonoff 433Mhz avec micrologiciel Tasmota et Tasmota - Configurez le pont RF Sonoff 433Mhz et les prises d'apprentissage explique comment préparer le pont RF Sonoff pour une utilisation avec le micrologiciel Tasmota. L'avantage est que vous pouvez désormais contrôler le pont RF directement depuis NodeRed, même sans le service basé sur le cloud de Sonoff.

À quoi pourrait ressembler le contrôle réel du pont RF de NodeRed est expliqué dans l'article suivant.


Consignes de sécurité

Je sais que les notes suivantes sont toujours un peu ennuyeuses et semblent inutiles. Malheureusement, de nombreuses personnes qui savaient "mieux" ont perdu des yeux, des doigts ou d'autres choses à cause d'une négligence ou se sont blessées. La perte de données est presque négligeable en comparaison, mais même celles-ci peuvent être vraiment ennuyeuses. Par conséquent, veuillez prendre cinq minutes pour lire les consignes de sécurité. Parce que même le projet le plus cool ne vaut pas une blessure ou d'autres problèmes.
https://www.nerdiy.de/sicherheitshinweise/

Liens d'affiliation/publicitaires

Les liens vers des boutiques en ligne répertoriés ici sont des liens dits d'affiliation. Si vous cliquez sur un tel lien d'affiliation et effectuez un achat via ce lien, Nerdiy.de recevra une commission de la boutique en ligne ou du fournisseur concerné. Le prix ne change pas pour vous. Si vous effectuez vos achats via ces liens, vous aidez Nerdiy.de à pouvoir proposer d'autres projets utiles à l'avenir. 🙂 


Conditions préalables

Articles utiles :
Pour que vous puissiez accepter cette configuration, NodeRed doit bien entendu déjà être installé. De plus, le pont RF Sonoff devrait déjà être préparé.
Comment préparer ceci et un RaspberryPi puis installer NodeRed dessus est décrit dans les articles suivants.
RaspberryPi - configuration pour les nerdiys !
RaspberryPi – La première configuration !
RaspberryPi - Contrôlez le RaspberryPi via SSH

NodeRed – Installer NodeRed sur le RaspberryPi
NodeRed – Installer de nouveaux nœuds
NodeRed - importer et exporter le code du nœud
Pont RF Flash Sonoff 433Mhz avec micrologiciel Tasmota
Tasmota - Configurez le pont RF Sonoff 433Mhz et les prises d'apprentissage
NodeRed - Créer une interface utilisateur avec des nœuds de tableau de bord

Outil requis :
-Non-

Matériel requis :

Dans la liste suivante, vous trouverez toutes les pièces dont vous avez besoin pour mettre en œuvre cet article.


Connectez-vous à l'interface de configuration de NodeRed

Avant de pouvoir modifier votre configuration NodeRed, vous devez - si activé - vous connecter d'abord à l'interface de configuration NodeRed.

Vue de la boîte de dialogue de connexion. Ici, vous devez entrer les données de connexion que vous avez spécifiées lors de la configuration de la connexion. Vous trouverez des informations à ce sujet dans l'article NodeRed - configurer la connexion de l'utilisateur.

Importer le code du nœud

Le code de nœud suivant contient la configuration qui vous permet de contrôler jusqu'à huit prises sans fil. Les commandes d'allumage et d'extinction de chaque prise sont affectées à un « bouton radio » (voir les autres articles RF Bridge mentionnés).

Lorsque vous appuyez sur l'un des commutateurs du tableau de bord, l'un ou l'autre bouton radio est enfoncé.
Une fonction de formation est également disponible dans l'éditeur. Pour ce faire, il faut appuyer sur le nœud d'injection « startLearning » à côté des « rfkeys » concernés. Le processus d'apprentissage se déroule ensuite comme décrit dans l'article Tasmota - Configurez le pont RF Sonoff 433Mhz et les prises d'apprentissage décrit à partir de.

Vue des interrupteurs sur le tableau de bord.
Vue de la configuration du nœud dans l'éditeur.

Code nœud :

[{"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","nom": "rfkey4","topic":"cmnd/RfBridge/rfkey4","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y" :280,"wires":[]},{"id":"176ed701.494aa9","type":"sortie mqtt","z":"85a0e2c7.3de75","name":"rfkey3"," topic":"cmnd/RfBridge/rfkey3","qos":"2","retain":"","broker":"b0640582.a49538","x":730,"y":240,"fils ":[]},{"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","na me":"deletePayload","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str "}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":280, "fils":[["78c28256.128d9c"]]},{"id":"cce0e599.7753d8","type":"interrupteur","z":"85a0e2c7.3de75","nom":"" ,"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":"","courtier":" 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":"st r"}],"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":"","propriété" :"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":"","courtier":"b064058 2.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","rul es":[{"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 activé/désactivé","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 activé/désactivé","group":"fc2f2879.ca14f8","order":16,"width":0,"height":0,"passthru":true,"decouple":"false"," sujet":"","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 activé/désactivé","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 activé/désactivé","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":"interrupteur" ,"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":"","courtier":"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":"se t","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"", "de":"","à":"","reg":false,"x":1380,"y":120,"wires":[["1d9521f1.53b97e"]]},{"id ":"b3acb73.9112148","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket5 activé/désactivé","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":"","courtier": "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":"","étiquette" :"Socket6 activé/désactivé","group":"fc2f2879.ca14f8","order":14,"width":0,"height":0,"passthru":true,"decouple":"false", "sujet":"","style":"","onvalue":"true","onvalueType":"bool","o nicon":"","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":"sortie mqtt","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":"chaîne"}],"action":"","propriété ":"","de":"","à":"","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":"", "de":"","à":"","reg":false,"x":1380,"y":440,"wires":[["9c3cddc3.ca54d"]]},{"id ":"24f017fd.046528","type":"ui_switch","z":"85a0e2c7.3de75","name":"","label":"Socket7 activé/désactivé","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,"fils ":[]},{"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,"sorties":2,"x":1190,"y":580,"fils ":[["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 activé/désactivé","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":"","charge utile" :"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":"","charge utile ":"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":"start Apprendre","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","sujet":""," 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","nom" :"startLearning","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","on ce":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":"Sur","sujet":"","charge utile":" ","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":220,"fils ":[["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":"Sur","sujet":"","payload":"","payloadType":"date","repeat":"","crontab":"","une fois ":false,"onceDelay":0.1,"x":370,"y":540,"wires":[["b9fa042d.859af8"]]},{"id":"72e8f63a.9934c8","type ":"injecter","z":"8 5a0e2c7.3de75","name":"Sur","sujet":"","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":"Sur","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":"Sur","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":"","une fois" :false,"onceDelay":0. 1,"x":370,"y":140,"wires":[["5ebb9f0.1a7006"]]},{"id":"f26e4793.080618","type":"inject","z ":"85a0e2c7.3de75","name":"Désactivé","sujet":"","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":"Désactivé","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":"Désactivé","topic":"","charge utile" :"","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":"Désactivé", "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":"","une fois ":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":"Lumière","tab":"d651a8eb.fefb38","disp":true,"width":" 6","collapse":false},{"id":"d651a8eb.fefb38","type":"ui_tab","z":"","name":"Accueil","icon":"tableau de bord "}]

Amusez-vous avec le projet

J'espère que tout a fonctionné comme décrit. Si ce n'est pas le cas ou si vous avez des questions ou des suggestions, faites-le moi savoir dans les commentaires. Je les ajouterai à l'article si nécessaire.
Les idées de nouveaux projets sont toujours les bienvenues. 🙂

PS Beaucoup de ces projets - en particulier les projets matériels - coûtent beaucoup de temps et d'argent. Bien sûr, je le fais parce que j'aime ça, mais si vous pensez que c'est cool que je partage l'information avec vous, je serais heureux d'un petit don au fonds du café. 🙂

Achetez-moi un café sur ko-fi.com       

8 commentaires

  1. Bonne journée,

    tout d'abord merci pour le code.

    Je n'ai qu'un seul problème ici, après importation, les sockets 1 à 8 n'apparaissent pas pour moi, mais inconnus ; commutateur d'interface utilisateur.

    Il semble que Red Node manque le module correspondant.

    Ou est-ce que je fais quelque chose de mal ? !

    Lesquelles doivent encore être installées ?

    Merci beaucoup!

  2. Salut Fabien,

    Tout d'abord, vos messages sont super informatifs et écrits avec beaucoup de passion. HAUT!

    J'avais déjà compris cela avec le tableau de bord.
    Je vais lire vos instructions sur la façon de procéder.

    Un peu sur mon projet :
    J'ai 3 capteurs RF PIR et diverses télécommandes RF ici.

    Ceux-ci devraient ensuite pouvoir allumer plusieurs Shellys existants dans le jardin via Node.
    J'ai déjà pu apprendre les codes via la console mais aussi via votre flow.
    Mqtt recevant les codes fonctionne également.
    Merci encore pour cela.

    Ce que je ne peux pas encore faire, c'est que les Shellys s'allument via Node dès qu'une clé est reçue.

    Peut-être avez-vous une autre astuce ici? D'une manière ou d'une autre, il me manque la bonne interface entre RF Bridge et Shellys.

    Merci beaucoup!

    1. Salut Michel,
      Merci beaucoup. Content de lire que le travail a payé. 🙂
      Donc si j'ai bien compris, vous recevez déjà les codes des télécommandes radio et maintenant vous souhaitez « juste » transmettre ce signal aux Shelly ?
      Avez-vous flashé le Shellys avec Tasmota ou sinon connecté le client MQTT (du Shellys) à votre serveur ? 🙂
      Si c'est le cas, tout ce que vous avez vraiment à faire est de mettre en place une redirection, n'est-ce pas ?
      Cordialement
      Fabien

  3. Salut,

    Oui, c'est exactement comme ça.

    Les signaux sont tous reçus, l'apprentissage fonctionne aussi.

    Les Shellys ici dans la maison fonctionnent tous sur le firmware d'origine.

    Il est à la fois possible de les adresser/basculer via MQTT mais aussi via Shelly Node.

    Ici, je suis en train de passer à MQTT dans le nœud, car c'est simplement plus flexible et ouvre encore plus de possibilités. Donc 1 test Shelly est déjà enregistré sur le serveur MQTT, ça marche à merveille.

    Ce qui me manque, c'est le pont entre les deux systèmes, comme vous l'avez dit, le transfert.

    Ainsi, un nœud qui reçoit le RFKEY correspondant, puis msg. on ou off envoie via MQTT.
    Vous pouvez bricoler avec la connexion Alexa Home existante entre les deux 🙂

    Je suis un peu coincé là.

    Merci beaucoup!

    1. Salut Michael,
      Si j'ai bien compris, vous n'avez en fait besoin que du nœud « changement ». Celui-ci reçoit un message et peut attribuer une nouvelle valeur au msg.payload.
      En principe, cela pourrait ressembler à ceci :
      [Power on command from remote control]->[change node: msg.payload=on]->[Redirect to shelly]
      Idem pour la commande d'arrêt. 🙂
      J'espère que vous pouvez comprendre ce que je veux dire. 🙂
      Cordialement
      Fabien

  4. Salut Fabien,

    enfin, j'ai obtenu un résultat utilisable applicable sur HTTP ainsi que sur MQTT.

    J'ai également dû ajouter un filtre qui sépare les signaux de la télécommande RF.
    Étant donné que plusieurs signaux sont envoyés avec une seule touche.

    Vous pouvez y jeter un œil 😉

    Avec votre consentement, le flux peut être partagé. Peut-être que cela sera utile à l'un ou à l'autre.

    J'ai repris vos nœuds d'apprentissage car c'est super pratique.
    J'espère que c'est bon.

    Merci encore!

    Et le débit :

    [{"id":"a5966690.fab85″",type":"tab",","label":"Flow 2 RF Bridge",","disabled":false,"info":""},{"id": "8a54e2d8.b9da58", "type": "debug", "z": "a5966690.fab85", "nom": "" "actif": vrai, "tosidebar": vrai, "console": faux," 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":"", "courtier":"2feb2429.245e84″,"x":290,"y":240,"fils":[]} ,{"id":"176ed701.494aa9″",type":"mqtt out","z":"a5966690.fab85″,"nom":"rfkey3″,"sujet":"cmnd/RfBridge/rfkey3″ , "qos": "2", "retain": "", "courtier":"2feb2429.245e84″,"x":290,"y":180,"fils":[]},{"id" :”d983158b.e970e8″,”type”:”mqtt out”,”z”:”a5966690.fab85″,”nom”:”rfkey2″,”sujet”:”cmnd/RfBridge/rfkey2″,”qos”: ”2″,”conserver”:””,”courtier”:”2feb2429.245e84″,”x”:290,”y”:120,”fils”:[]},{“id”:”e6e1fdc4.aad2b ”,”type”:”mqtt out”,”z”:”a5966690.fab85″,”nom”:”rfkey1″,”sujet”:”cmnd/RfBridge/rfkey1″,”qos”:”2″,” conserver": "", " courtier": " 2feb2429.245e84 ", " x ": 290, " y ": 60, " fils ": []}, {" id ": " 27bbe04e.77bb5 ", " type " :"mqtt out", "z":"a5966690.fab85″,"nom":"rfkey6″,"sujet":"cmnd/RfBridge/rfkey6″,"qos":"2″,"retain":"" ","courtier":"2feb2429.245e84″,"x":290,"y":360,"fils":[]},{"id":"b8be8cbb.b50e8″,"type":"mqtt out" ","z":"a5966690.fab85″,"nom":"rfkey5″,"sujet":"cmnd/RfBridge/rfkey5″,"qos":"2″,"retain":"""broker": ”2feb2429.245e84″,”x”:290,”y”:300,”wires”:[]},{“id”:”e2ae277f.cea408″,”type”:”mqtt out”,”z” : ”a5966690.fab85″,”nom”:”rfkey8″,”sujet”:”cmnd/RfBridge/rfkey8″,”qos”:”2″,”retain”:””,”courtier”:”2feb2429.245e84″ , "x": 290, "y": 480, "fils": []}, {" id": "866f0df3.fbd51", "type": "mqtt out", "z": "a5966690.fab85" , " nom " : " rfkey7 ", " sujet " : " cmnd/RfBridge/rfkey7 ", " qos " : " 2 ", " conserver " : " " " courtier " : " 2feb2429.245e84 ", " x " : 290, "y": 420, "wires": []}, {" id": "42949be6.f069c4", "type": "inject", "z": "a5966690.fab85", "name":" startLearning", "répéter": "", "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″,"nom":"rfkey10″,"sujet":"cmnd/RfBridge/rfkey10″,"qos":"2″,"retain":""","courtier":"2feb2429 .245e84″, "x": 640, "y": 120, "wires": []}, {" id": "204c4bab.3ab5a4", "type": "mqtt out", "z":" a5966690 .fab85″, « nom » : « rfkey9″ », « sujet » : « cmnd/RfBridge/rfkey9″ », « qos » : « 2″ », « conserver » : » », « courtier » : « 2feb2429.245e84″ », x": 630, "y": 60, "wires": []}, {" id": "f750bbd7.d8dbf8", "type": "mqtt out", "z": "a5966690.fab85", nom":"rfkey12″,"sujet":"cmnd/RfBridge/rfkey12″,"qos":"2″,"retain":""","courtier":"2feb2429.245e84″,"x":640, "y": 240, "wires": []}, {" id": "fc1cfb8.b038608", "type": "mqtt out", "z": "a5966690.fab85", "name":" rfkey11 ″, « sujet » : « cmnd/RfBridge/rfkey11″ », « qos » : « 2″ », « conserver » : » » « courtier » : « 2feb2429.245e84″ », « x » : 640, « y » : 180 , "fils":[]}, {"id":"a0163ac.409f048″,"type":"mqtt out","z":"a5966690.fab85″,"nom":"rfkey13″,"sujet" :"cmnd/RfBridge/rfkey13″,"qos":"2","retain":""",courtier":"2feb2429.245e84″",x":640,"y":300,"fils": []},{"id":"159d7acc.0b8045″",type":"mqtt out","z":"a5966690.fab85″,"nom":"rfkey14″,"sujet":"cmnd/RfBridge /rfkey14″,”qos”:”2″,”retain”:””,”broker”:”2feb2429.245e84″,”x”:640,”y”:360,”wires”:[]},{ « id » : « e570aeb8.182bd8 », « type » : « mqtt out », « z » : « a5966690.fab85 », « nom » : « rfkey15 », « sujet » : « cmnd/RfBridge/rfkey15″ », qos":"2″,"conserver":"","courtier":"2feb2429.245e84″,"x":640",y":420",fils":[]},{"id":" 3ab75646.4111a2″, « type » : « mqtt out », « z » : « a5966690.fab85 », « nom » : « rfkey16 », « sujet » : « cmnd/RfBridge/rfkey16″ », « qos » : » 2 ″,”conserver”:””,”courtier”:”2feb2429.245e84″,”x”:640,”y”:480,”fils”:[]},{“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, ”fils”:[[“27bbe04e.77bb5”]]},{“id”:”ba60eb83.4b95c8″,”type”:”inject”,”z”:”a5966690.fab85″,”name”:”startLearning ”,”répéter”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str” , "x": 470, "y": 60, "fils": [[" 204c4bab.3ab5a4"]]}, {" id": "f093de6c.73531", "type": "injecter", "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,”sujet”:””,”payload”:”2″,”payloadType”:”str”,,”x”:470,”y”:180,”wires”:[[“fc1cfb8.b038608” ]]},{"id":"890bc90.0052d38″,"type":"inject","z":"a5966690.fab85″,"nom":"startLearning",",répéter":"",",crontab " :        240,"fils":[["f750bbd7.d8dbf8"]]},{"id":"cec0bd12.7c803″,"type":"injecter","z":"a5966690.fab85″,"nom": "startLearning", "repeat": "", "crontab": "" "once": false, "onceDelay": 0.1, "topic": "", "payload": "2", "payloadType":" str", "x": 470," y ": 300," fils ": [[" a0163ac.409f048"]]}, {" id ":" 48bbc301.34783c ", " type ": " injecter ", " z":"a5966690.fab85″,"name":"startLearning","props":[{"p":"payload",",v":"2″,"vt":"str"},{" p":"topic",",v":"",",vt":"string"}],",repeat":"",",crontab":"","once":false,"onceDelay":0.1, ”sujet”:””,”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," fils ”:[[“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, "fils": [[" d983158b.e970e8"]]}, {" id": "75cb1e74.b91b9", "type": "injecter", "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, "sujet": "", "payload": "2", "payloadType": "str", "x": 130, "y": 240, "wires": [[" 78c28256.128d9c"]] },{"id":"83be3b00.44b988″", type":" injecter", "z":" a5966690.fab85″, "nom": "startLearning", "répéter":"", "crontab": ””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:”2″,”payloadType”:”str”,”x”:130,”y”:300, ”fils”:[[“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":"""propriété":""","de":"""à":"""reg":false"x":660"y":700"fils" :[[“b29c50c1.60af38”]]},{“id”:”aefa120e.08cec8″,”type”:”mqtt in”,,”z”:”a5966690.fab85″,”name”:””,” sujet": "tele/RfBridge/RESULT", "qos": "2", "type de données": "auto", "broker": "2feb2429.245e84", "x": 180, "y": 760," fils » :[[« 4412f309.c8dd0c », »8a54e2d8.b9da58″]]},{« id » : »9ad5229.c043c6″ », type » : « injecter », « z » : « a5966690.fab85″ », name": "ON", "props": [{" p": "payload"},{" p": "topic", "vt": "str"}], "repeat":"", "crontab " :        740,"fils":[["b29c50c1.60af38"]]},{"id":"b29c50c1.60af38″",type":"fonction","z":"a5966690.fab85″,"nom": "activer/désactiver le relais", "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”:”injecter” , "z": "a5966690.fab85", "nom": "OFF", "répéter": "" "crontab": "" "once": false, "onceDelay": 0.1, "topic":" ","payload":"off","payloadType":"str","x":650,"y":780,"wires":[["b29c50c1.60af38"]]},{"id": "e2fe56f9.77e258", "type": "demande http", "z": "a5966690.fab85", "nom": "" "méthode": "POST", "ret": "obj", "paytoqs" ”:”ignore”,”url”:””,”tls”:””,”persist”:false,”proxy”:””,”authType”:””,”x”:1070,”y”: 760, "fils": [[" 8a54e2d8.b9da58"]]}, {" id": "4412f309.c8dd0c", "type": "switch", "z": "a5966690.fab85", "nom": ”FILTER RF SIGNAL”,,”property”:”payload”,,”propertyType”:”msg”,,”rules”:[{“t”:”cont”,,”v”:”\”RfKey\”:1″, ”vt”:”str”},{“t”:”cont”,”v”:”\”RfKey\”:2″,”vt”:”str”}],”checkall”:”true”, "réparation": faux, "sorties": 2, "x": 430, "y": 760, "fils": [[" 1e42d44f.ed73ec"], [" ae7ef696.85c208 "]]}, {" id ”:”b722adfd.a9572″,”type”:”change”,”z”:”a5966690.fab85″,”name”:”OFF VIA HTTP”,”rules”:[{“t”:”set”, ”p”:”charge utile”,,”pt”:”msg”,,”to”:”off”,,”tot”:”str”}],”action”:””,”propriété”:””,”de ”:””,”to”:””,”reg”:false,”x”:660,”y”:820,”wires”:[[“b29c50c1.60af38”]]},{“id”: "faddf7fe.33081", "type": "mqtt out", "z": "a5966690.fab85", "nom": "", "sujet": "shellies/Nils/relay/0/command", "qos ”:”2″,”retain”:”false”,,”broker”:”2feb2429.245e84″,”x”:1430,”y”:760,”wires”:[]},{“id”:” 1e42d44f.ed73ec", "type":" changement ", "z":" a5966690.fab85 ", " nom ": " SUR VIA MQTT ", " règles ": [{ " t ": " set ", " p " :"charge utile", "pt": "msg", "à": "on", "tot":"str"}], "action":"""propriété":""","de":" ”,”to”:””,”reg”:false,”x”:660,”y”:660,”wires”:[[“faddf7fe.33081”]]},{“id”:”ae7ef696. 85c208″, "type": "change", "z": "a5966690.fab85", "nom": "OFF VIA MQTT", "rules": [{" t": "set", "p":" payload", "pt":" msg ", "to":"off", "tot":"str"}], "action":"""propriété":"""de":"", "à":"", "reg": false, "x": 660, "y": 860, "wires": [[" faddf7fe.33081"]]}, {" id": "481b88e6.de22d8" , "tapez": "mqtt dans", "z": "a5966690.fab85", "nom": "Shelly ID Reader", "sujet": "shellies/#", "qos": "2", "type de données ”:”auto”,“courtier”:”2feb2429.245e84″,”x”:1080,”y”:940,”wires”:[[“c22df741.ef5f9”]]},{“id”:”31db797e .3f6f66″, "type": "injecter", "z": "a5966690.fab85", "nom": "startLearning", "props": [{" p": "charge utile", "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," fils ”:[[“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″,”nom”:””,”active”:true,”tosidebar”:true,”console”:false,”tostatus”:false,”complete”:”false” , "statusVal": "", "statusType": "auto", "x": 1340, "y": 940, "wires": []}, {" id": "2feb2429.245e84", "type" :"mqtt-broker", "nom": "PI MQTT", "broker":" 192.168.178.71 ", " port ": " 1883 ", " clientid ": " " " usetls ": false " compatmode " :true",keepalive":"60″,"cleansession":true,"birthTopic":"","birthQos":"0" : ”0″,”closePayload”:””,”willTopic”:””,”willQos”:”0″,”willPayload”:””}]

    1. Salut Michel,
      super, content de l'entendre. Bien sûr, je voudrais inclure cela. Malheureusement, je ne peux pas importer le code. Je pense que c'est parce que la fonction de commentaire filtre certaines des valeurs ici.
      Pouvez-vous me renvoyer le code via pastebin ou via e-mail/formulaire de contact ? 🙂
      Un grand merci d'avance et meilleures salutations
      Fabien

Kommentar hinterlassen

Votre adresse e-mail ne sera pas publiée. Erforderliche Felder sind mit * markiert

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.