Problems with a athom 3gang switch

Good evening,
i need help to bring my Athom switch to work, this is already flashed to Tasmota last version and should switch 3 Gosund SP111 Plugs also on Tasmota.


On the picture you can see what i did already.
Schalter_1 is the Athom, Drucker_oben and Drucker_unten are 2 of the Gosund Plugs, it is possible to switch the Drucker_oben with the button1 on the switch, but it is not possible to switch Drucker_unten with the second one.
Both debugs shows fals and true in boolean.
I have not a real chance to configure the second chanel in another way, because the topic will be the same everytime.
May somebody can help me, because i am complete new in nodered.
If any other information is needed i will send it as fast as possible
Thanks for any help
Cord

Please show us the output from your debug nodes switch_1 and switch_2 when you press button 1 and button 2.

Since the Gosund plugs are flashed with Tasmota, there should be a web interface for each.
Please show us a screen capture of the page displayed when you enter the Gosunds' IP address.
It should look something like this

Post your flow with "vorformatierter Text"

tippe oder fĂĽge den Code hier ein

Thx for the answer


i hope this is ok

@stefan24
inside this flow are also 2 additional Gosund to test them after flashing.

[
    {
        "id": "81c6fa4b197c3ccd",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "6d7c2ef8af74f907",
        "type": "Tasmota Switch",
        "z": "81c6fa4b197c3ccd",
        "broker": "06d1cce264ae7488",
        "device": "Drucker_oben",
        "name": "",
        "outputs": 1,
        "uidisabler": false,
        "fullTopic": "Steckdose_1%prefix%/%topic%/",
        "cmndPrefix": "",
        "statPrefix": "",
        "telePrefix": "",
        "qos": 1,
        "retain": false,
        "notopic": false,
        "x": 900,
        "y": 140,
        "wires": [
            []
        ],
        "inputLabels": [
            "switch2"
        ]
    },
    {
        "id": "9c9c529e5311e027",
        "type": "Tasmota Switch",
        "z": "81c6fa4b197c3ccd",
        "broker": "06d1cce264ae7488",
        "device": "Schalter_1",
        "name": "",
        "outputs": 3,
        "uidisabler": false,
        "fullTopic": "Schalter_Buero%prefix%/%topic%/",
        "cmndPrefix": "",
        "statPrefix": "",
        "telePrefix": "",
        "qos": 1,
        "retain": false,
        "notopic": false,
        "x": 630,
        "y": 180,
        "wires": [
            [
                "00743512f7c3944b",
                "6d7c2ef8af74f907"
            ],
            [
                "671af514d511365e",
                "5b8544f37208eaa0",
                "69159f2d3c65e96b"
            ],
            [
                "d4ee88bec18f2e8d"
            ]
        ],
        "outputLabels": [
            "POWER1",
            "POWER2",
            "POWER3"
        ],
        "info": "``{\r\n  \"device\": \"Schalter_1\",\r\n  \"name\": \"WLAN-Schalter\",\r\n  \"channels\": [\r\n    {\r\n      \"id\": 1,\r\n      \"name\": \"Steckdose 1\",\r\n      \"type\": \"outlet\",\r\n      \"tasmota_topic\": \"cmnd/sonoff/POWER1\"\r\n    },\r\n    {\r\n      \"id\": 2,\r\n      \"name\": \"Steckdose 2\",\r\n      \"type\": \"outlet\",\r\n      \"tasmota_topic\": \"cmnd/sonoff/POWER2\"\r\n    },\r\n    {\r\n      \"id\": 3,\r\n      \"name\": \"Steckdose 3\",\r\n      \"type\": \"outlet\",\r\n      \"tasmota_topic\": \"cmnd/sonoff/POWER3\"\r\n    }\r\n  ]\r\n}\r\n"
    },
    {
        "id": "00743512f7c3944b",
        "type": "debug",
        "z": "81c6fa4b197c3ccd",
        "name": "switch_1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 20,
        "wires": []
    },
    {
        "id": "671af514d511365e",
        "type": "debug",
        "z": "81c6fa4b197c3ccd",
        "name": "switch_2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 60,
        "wires": []
    },
    {
        "id": "717164fc0f59ecb2",
        "type": "inject",
        "z": "81c6fa4b197c3ccd",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 810,
        "y": 460,
        "wires": [
            [
                "5b8544f37208eaa0"
            ]
        ]
    },
    {
        "id": "b6b575fb6b0a0dd0",
        "type": "inject",
        "z": "81c6fa4b197c3ccd",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 810,
        "y": 520,
        "wires": [
            [
                "5b8544f37208eaa0"
            ]
        ]
    },
    {
        "id": "5b8544f37208eaa0",
        "type": "Tasmota Switch",
        "z": "81c6fa4b197c3ccd",
        "broker": "06d1cce264ae7488",
        "device": "Drucker_unten",
        "name": "",
        "outputs": 1,
        "uidisabler": false,
        "fullTopic": "Steckdose_2%prefix%/%topic%/",
        "cmndPrefix": "",
        "statPrefix": "",
        "telePrefix": "",
        "qos": 1,
        "retain": false,
        "notopic": false,
        "x": 900,
        "y": 300,
        "wires": [
            []
        ],
        "inputLabels": [
            "switch2"
        ]
    },
    {
        "id": "d4ee88bec18f2e8d",
        "type": "debug",
        "z": "81c6fa4b197c3ccd",
        "name": "switch_3",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 220,
        "wires": []
    },
    {
        "id": "9f292d46f1929baf",
        "type": "inject",
        "z": "81c6fa4b197c3ccd",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 450,
        "y": 140,
        "wires": [
            [
                "9c9c529e5311e027"
            ]
        ]
    },
    {
        "id": "7ad76d9a62e1e797",
        "type": "inject",
        "z": "81c6fa4b197c3ccd",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 450,
        "y": 200,
        "wires": [
            [
                "9c9c529e5311e027"
            ]
        ]
    },
    {
        "id": "52ae2d4854fd5930",
        "type": "Tasmota Switch",
        "z": "81c6fa4b197c3ccd",
        "broker": "06d1cce264ae7488",
        "device": "Steckdose3",
        "name": "",
        "outputs": 1,
        "uidisabler": false,
        "fullTopic": "Steckdose3%prefix%/%topic%/",
        "cmndPrefix": "",
        "statPrefix": "",
        "telePrefix": "",
        "qos": 1,
        "retain": false,
        "notopic": false,
        "x": 1610,
        "y": 60,
        "wires": [
            []
        ]
    },
    {
        "id": "9880685a6cbfe0e8",
        "type": "Tasmota Switch",
        "z": "81c6fa4b197c3ccd",
        "broker": "06d1cce264ae7488",
        "device": "Steckdose4",
        "name": "",
        "outputs": 1,
        "uidisabler": false,
        "fullTopic": "Steckdose4%prefix%/%topic%/",
        "cmndPrefix": "",
        "statPrefix": "",
        "telePrefix": "",
        "qos": 1,
        "retain": false,
        "notopic": false,
        "x": 1610,
        "y": 120,
        "wires": [
            []
        ]
    },
    {
        "id": "69159f2d3c65e96b",
        "type": "debug",
        "z": "81c6fa4b197c3ccd",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1100,
        "y": 180,
        "wires": []
    },
    {
        "id": "06d1cce264ae7488",
        "type": "tasmota-mqtt-broker",
        "name": "Steuer",
        "broker": "192.168.69.61",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "keepalive": "60",
        "cleansession": true
    }
]

I have to add another post, because i am not allowed to put more than two

I am a bit confused by your Tasmota full topic Steckdose_1%prefix%/%topic%/ since I never change my devices' full topic from %prefix%/%topic%/.
However, I believe that the status shown on your screen capture proves that the config matches in node and device.

Do your true/false inject directly to Drucker_unten work?

Check the topic output from Schalter_1; change the debug nodes to display the full message.

Good morning
in the description it seems i have to chnge the full topic to an own name on any node. if its not like this i will leave it.
Yes the inject works fine in Drucker_unten


This is the full message.
Cord

The message emitted from Schalter_1 has

{
payload: "true",
topic :"switch2"
}

while your direct inject to Drucker_unten has

{
payload: "true",
topic :""
}

Does it make a difference if your injects also set the topic?

If i change to "switch2" it stopps working.
Seems you find something, but how to change it?

There is a setting in the switch node "Don't set topic in output messages".
Perhaps ticking that in Schalter_1 will resolve it?

2 Likes

Thank you for this
easiest solution
Cord

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.