Sonoff and tasmota

Good day all i am new to this and hope someone can help me set this up i have done a basic setup for 2 switches. I am trying to make it work like a 2 way switch with the ui i get it right so that they work at the same time but when i fiscally press the buttons nothing happens only one switch on any help would be appreciated. Fyi this is my 1st nodered project

[
{
"id": "8765833d3a37a777",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env":
},
{
"id": "ea9bd8bf5edb84af",
"type": "mqtt-broker",
"name": "Home",
"broker": "localhost",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "4a49fd29f6334af2",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "61d2850bbd4d5909",
"type": "ui_base",
"theme": {
"name": "theme-light",
"lightTheme": {
"default": "#0094CE",
"baseColor": "#0094CE",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": true,
"reset": false
},
"darkTheme": {
"default": "#097479",
"baseColor": "#097479",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": false
},
"customTheme": {
"name": "Untitled Theme 1",
"default": "#4B7930",
"baseColor": "#4B7930",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
},
"themeState": {
"base-color": {
"default": "#0094CE",
"value": "#0094CE",
"edited": false
},
"page-titlebar-backgroundColor": {
"value": "#0094CE",
"edited": false
},
"page-backgroundColor": {
"value": "#fafafa",
"edited": false
},
"page-sidebar-backgroundColor": {
"value": "#ffffff",
"edited": false
},
"group-textColor": {
"value": "#1bbfff",
"edited": false
},
"group-borderColor": {
"value": "#ffffff",
"edited": false
},
"group-backgroundColor": {
"value": "#ffffff",
"edited": false
},
"widget-textColor": {
"value": "#111111",
"edited": false
},
"widget-backgroundColor": {
"value": "#0094ce",
"edited": false
},
"widget-borderColor": {
"value": "#ffffff",
"edited": false
},
"base-font": {
"value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
}
},
"angularTheme": {
"primary": "indigo",
"accents": "blue",
"warn": "red",
"background": "grey",
"palette": "light"
}
},
"site": {
"name": "Node-RED Dashboard",
"hideToolbar": "false",
"allowSwipe": "false",
"lockMenu": "false",
"allowTempTheme": "true",
"dateFormat": "DD/MM/YYYY",
"sizes": {
"sx": 48,
"sy": 48,
"gx": 6,
"gy": 6,
"cx": 6,
"cy": 6,
"px": 0,
"py": 0
}
}
},
{
"id": "f8ebd8f9631165f5",
"type": "ui_group",
"name": "Passage",
"tab": "4a49fd29f6334af2",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "e65585610fa56181",
"type": "mqtt out",
"z": "8765833d3a37a777",
"name": "PassageLight",
"topic": "cmnd/PassageSW1/POWER1",
"qos": "2",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "ea9bd8bf5edb84af",
"x": 480,
"y": 200,
"wires":
},
{
"id": "e3d71b49883c2338",
"type": "mqtt in",
"z": "8765833d3a37a777",
"name": "PassageLight",
"topic": "stat/PassageSW1/POWER1/",
"qos": "2",
"datatype": "auto-detect",
"broker": "ea9bd8bf5edb84af",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 70,
"y": 200,
"wires": [
[
"784e0420709ba160"
]
]
},
{
"id": "784e0420709ba160",
"type": "ui_switch",
"z": "8765833d3a37a777",
"name": "PassageLight",
"label": "switch",
"tooltip": "",
"group": "f8ebd8f9631165f5",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "ON",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "OFF",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 260,
"y": 280,
"wires": [
[
"e65585610fa56181",
"8fc424ada7396103"
]
]
},
{
"id": "8fc424ada7396103",
"type": "mqtt out",
"z": "8765833d3a37a777",
"name": "PassageLight",
"topic": "cmnd/PassageSW2/POWER1",
"qos": "2",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "ea9bd8bf5edb84af",
"x": 480,
"y": 380,
"wires":
},
{
"id": "b84e91c4453f903d",
"type": "mqtt in",
"z": "8765833d3a37a777",
"name": "PassageLight",
"topic": "stat/PassageSW2/POWER1",
"qos": "2",
"datatype": "auto-detect",
"broker": "ea9bd8bf5edb84af",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 70,
"y": 360,
"wires": [
[
"784e0420709ba160"
]
]
}
]

Sorry - I can't import your NR flow.
Might be a good idea to read this and try again.

To export a Node-RED flow, you can use the built-in export feature, which allows you to save your flows as a JSON file. This JSON file can be imported into another Node-RED instance or shared with others. Here's how you can do it:

  1. Open Node-RED: Make sure you have Node-RED running and access it through your web browser.

  2. Access the Node-RED Editor: Open the Node-RED editor in your web browser by navigating to the appropriate URL (usually http://localhost:1880 or the URL of your Node-RED server).

  3. Select the Flow: In the Node-RED editor, select the flow or flows that you want to export. You can click and drag your mouse to select multiple nodes or click on a blank space in the workspace to deselect any selected nodes.

  4. Open the Export Dialog:

    • Right-click on one of the selected nodes or the blank workspace.
    • Click on the "Export" option in the context menu.
  5. Choose the Export Type:

    • You will see several export options. Choose the one that suits your needs:
      • Clipboard: This option copies the selected flow to your clipboard as JSON text.
      • File: This option allows you to save the selected flow as a JSON file to your local machine.
  6. Export to Clipboard:

    • If you chose "Clipboard," the JSON representation of your flow will be copied to your clipboard. You can then paste it into a text editor or share it with others.
  7. Export to File:

    • If you chose "File," a file dialog will open. Choose a location on your local machine to save the JSON file and provide a name for the file.
  8. Save the JSON File:

    • Click the "Save" or "Export" button to save the JSON file to your specified location.

Your Node-RED flow is now exported as a JSON file. You can share this file with others or import it into another Node-RED instance using the import feature. To import a flow, open the Node-RED editor, right-click on the workspace, and select "Import." Then, choose the JSON file you exported and follow the import instructions.

[{"id":"8765833d3a37a777","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"ea9bd8bf5edb84af","type":"mqtt-broker","name":"Home","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"4a49fd29f6334af2","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"61d2850bbd4d5909","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey","palette":"light"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"f8ebd8f9631165f5","type":"ui_group","name":"Passage","tab":"4a49fd29f6334af2","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"e65585610fa56181","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW1/POWER1","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":1000,"y":200,"wires":[]},{"id":"e3d71b49883c2338","type":"mqtt in","z":"8765833d3a37a777","name":"PassageLight","topic":"stat/PassageSW1/POWER1/","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":70,"y":200,"wires":[["784e0420709ba160"]]},{"id":"784e0420709ba160","type":"ui_switch","z":"8765833d3a37a777","name":"PassageLight","label":"switch","tooltip":"","group":"f8ebd8f9631165f5","order":0,"width":0,"height":0,"passthru":false,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"OFF","offvalueType":"str","officon":"","offcolor":"","animate":false,"className":"","x":520,"y":280,"wires":[["e65585610fa56181","8fc424ada7396103"]]},{"id":"8fc424ada7396103","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW2/POWER1","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":1000,"y":360,"wires":[]},{"id":"b84e91c4453f903d","type":"mqtt in","z":"8765833d3a37a777","name":"PassageLight","topic":"stat/PassageSW2/POWER1","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":70,"y":360,"wires":[["784e0420709ba160"]]}]

[edited by Mod] to show how to post code, click edit pencil, then select raw, to see what to do in future.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json

sorry realy strugling here

Edited for you, please click pencil edit icon on post, then select raw, to see how to post code in future.


The result is a line containing three backticks above your code and another below it.

Or here on some devices

1 Like
[{"id":"8765833d3a37a777","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"ea9bd8bf5edb84af","type":"mqtt-broker","name":"Home","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"4a49fd29f6334af2","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"61d2850bbd4d5909","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey","palette":"light"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"f8ebd8f9631165f5","type":"ui_group","name":"Passage","tab":"4a49fd29f6334af2","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"e65585610fa56181","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW1/POWER1","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":1000,"y":200,"wires":[]},{"id":"e3d71b49883c2338","type":"mqtt in","z":"8765833d3a37a777","name":"PassageLight","topic":"stat/PassageSW1/POWER1/","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":70,"y":200,"wires":[["784e0420709ba160"]]},{"id":"784e0420709ba160","type":"ui_switch","z":"8765833d3a37a777","name":"PassageLight","label":"switch","tooltip":"","group":"f8ebd8f9631165f5","order":0,"width":0,"height":0,"passthru":false,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"OFF","offvalueType":"str","officon":"","offcolor":"","animate":false,"className":"","x":520,"y":280,"wires":[["e65585610fa56181","8fc424ada7396103"]]},{"id":"8fc424ada7396103","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW2/POWER1","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":1000,"y":360,"wires":[]},{"id":"b84e91c4453f903d","type":"mqtt in","z":"8765833d3a37a777","name":"PassageLight","topic":"stat/PassageSW2/POWER1","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":70,"y":360,"wires":[["784e0420709ba160"]]}]

You have to set the switch node to respond to input then bypass the switch to the opposite mqtt node
Example untested

[{"id":"e3d71b49883c2338","type":"mqtt in","z":"8765833d3a37a777","name":"PassageLight","topic":"stat/PassageSW1/POWER","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":150,"y":200,"wires":[["784e0420709ba160","8fc424ada7396103"]]},{"id":"784e0420709ba160","type":"ui_switch","z":"8765833d3a37a777","name":"PassageLight","label":"switch","tooltip":"","group":"f8ebd8f9631165f5","order":0,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"topic","topicType":"msg","style":"","onvalue":"ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"OFF","offvalueType":"str","officon":"","offcolor":"","animate":false,"className":"","x":340,"y":260,"wires":[["e65585610fa56181","8fc424ada7396103"]]},{"id":"8fc424ada7396103","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW2/POWER","qos":"0","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":560,"y":320,"wires":[]},{"id":"b84e91c4453f903d","type":"mqtt in","z":"8765833d3a37a777","name":"PassageLight","topic":"stat/PassageSW2/POWER","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":150,"y":320,"wires":[["784e0420709ba160","e65585610fa56181"]]},{"id":"e65585610fa56181","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW1/POWER","qos":"0","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":560,"y":200,"wires":[]},{"id":"ea9bd8bf5edb84af","type":"mqtt-broker","name":"Home","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"f8ebd8f9631165f5","type":"ui_group","name":"Passage","tab":"4a49fd29f6334af2","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"4a49fd29f6334af2","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

Unsure of the Tasmote mqtt payloads, may be someone else can confirm this info.

First step - I'd put some debug nodes (set to show complete message) on the MQTT-In nodes.
Then we can see what's arriving and advise you on how to filter out what you need.

debug

oky looks the same now

Try this... and see what you get..

[{"id":"8765833d3a37a777","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"e65585610fa56181","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW1/POWER1","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":720,"y":220,"wires":[]},{"id":"e3d71b49883c2338","type":"mqtt in","z":"8765833d3a37a777","name":"Passage_SW1_Light","topic":"stat/PassageSW1/POWER1/","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":240,"y":200,"wires":[["784e0420709ba160","e4fce5edfb64a6e3","6a405ff7fcb41194"]]},{"id":"784e0420709ba160","type":"ui_switch","z":"8765833d3a37a777","name":"PassageLight","label":"switch","tooltip":"","group":"f8ebd8f9631165f5","order":0,"width":0,"height":0,"passthru":false,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"OFF","offvalueType":"str","officon":"","offcolor":"","animate":false,"className":"","x":480,"y":260,"wires":[["e65585610fa56181","8fc424ada7396103"]]},{"id":"8fc424ada7396103","type":"mqtt out","z":"8765833d3a37a777","name":"PassageLight","topic":"cmnd/PassageSW2/POWER1","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ea9bd8bf5edb84af","x":720,"y":280,"wires":[]},{"id":"b84e91c4453f903d","type":"mqtt in","z":"8765833d3a37a777","name":"Passage_SW2_Light","topic":"stat/PassageSW2/POWER1","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":240,"y":320,"wires":[["784e0420709ba160","91d710489193ee12"]]},{"id":"e4fce5edfb64a6e3","type":"debug","z":"8765833d3a37a777","name":"Debug_SW1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":160,"wires":[]},{"id":"91d710489193ee12","type":"debug","z":"8765833d3a37a777","name":"Debug_SW2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":320,"wires":[]},{"id":"6a405ff7fcb41194","type":"function","z":"8765833d3a37a777","name":"status indicator","func":"if (msg.payload == \"ON\")\n    {\n     node.status({fill:\"red\",shape:\"dot\",text:\"SW1 - is ON\"});\n    }\nelse if (msg.payload === \"OFF\")\n    {\n     node.status({fill:\"green\",shape:\"ring\",text:\"SW1 is OFF\"});\n    }\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":200,"wires":[[]]},{"id":"ea9bd8bf5edb84af","type":"mqtt-broker","name":"Home","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"f8ebd8f9631165f5","type":"ui_group","name":"Passage","tab":"4a49fd29f6334af2","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"4a49fd29f6334af2","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

By-the-way... in my setup I use ... POWER not POWER1 as the topic in the MQTT-In nodes.
tasmota_POWER

There also seem so be an extra / on end of one of the in topics.

1 Like

Well spotted.

so i have done this it still does the same also just fyi the swiches are 3 lever switches

i would like if posibles to share via teamviewer

We need info from the debugs.
Run this flow, then hit your physical switches.
Then show us the info from the debug node.

[{"id":"0740e416ea2d6aa0","type":"debug","z":"8765833d3a37a777","name":"debug 335","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":370,"y":200,"wires":[]},{"id":"e3d71b49883c2338","type":"mqtt in","z":"8765833d3a37a777","name":"all stat messages","topic":"stat/#","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":160,"y":200,"wires":[["0740e416ea2d6aa0"]]},{"id":"ea9bd8bf5edb84af","type":"mqtt-broker","name":"Home","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

You can paste screenshots straight into the post window. Or use the upload icon/button
OR

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

no sorry not doing enything

Alter the topic to just #
e.g.

[{"id":"e3d71b49883c2338","type":"mqtt in","z":"8765833d3a37a777","name":"all stat messages","topic":"#","qos":"2","datatype":"auto-detect","broker":"ea9bd8bf5edb84af","nl":false,"rap":true,"rh":0,"inputs":0,"x":160,"y":200,"wires":[["0740e416ea2d6aa0"]]},{"id":"0740e416ea2d6aa0","type":"debug","z":"8765833d3a37a777","name":"debug 335","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":370,"y":200,"wires":[]},{"id":"ea9bd8bf5edb84af","type":"mqtt-broker","name":"Home","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

If this is not receiving anything then your tasmota devices are not connected to the mqtt broker.

We really need more info than one liners responses.
images etc so we can see what you see.