Bug? Probably not, but unsure


#1

So, I have everything up and running, upgraded to paid subscription because everything was going well. I have a couple of SMALux 4 port wifi power strips with 4 USB ports also. I successfully flashed Tasmota on them and am able to operate them fine in ST. I can get the first outlet of each power strip to work through gbridge, but none of the others. From what I read, the way to turn the outlets on/off is to use the outlet number after power or POWER. It works fine in HA, but when I set it up in gbridge with the 1,2,3,4 after power/POWER, I get nothing from the gbridge in my logger.

Here is an example from my config:

  • platform: mqtt
    name: “SMALux12”
    command_topic: “gBridge/uXXX/cmnd/smalux1/power2”
    state_topic: “gBridge/uXXX/stat/smalux1/POWER2”
    qos: 1
    payload_on: “ON”
    payload_off: “OFF”
    retain: false
    Here is how I have it configured on the gbridge:

Thoughts?


#2

Hi,

there is probably a topic mismatch inbetween gBridge and your tasmota setup. Try using the command line client mosquitto_sub to check whether gBridge is actually sending data on the topics you’ve configured:

mosquitto_sub --username your-mqtt-username --pw your-mqtt-password --capath /etc/ssl/certs/ --host mqtt.gbridge.io --port 8883 --topic gBridge/u{userid}/# -d -v

Do you receive data on the topic you are expecting there?


#3

Ok, I ran the command you requested, and I am able to see the messages coming in in the correct format and I have verified my switch.yaml coding, so I’m confused why it isn’t working.

Here is the result of the command when turning off, then on my device:

Client mosqsub|250-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/d0/grequest', ... (7 bytes))
gBridge/u961/d0/grequest EXECUTE
Client mosqsub|250-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/cmnd/smalux1/power1', ... (1 bytes))
gBridge/u961/cmnd/smalux1/power1 0
Client mosqsub|250-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/d0/grequest', ... (7 bytes))
gBridge/u961/d0/grequest EXECUTE
Client mosqsub|250-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/cmnd/smalux1/power1', ... (1 bytes))
gBridge/u961/cmnd/smalux1/power1 1

Here is my config from the device:

And here is my config from switch.yaml:

  • platform: mqtt
    name: “Saltwater Pump”
    command_topic: “gBridge/u961/cmnd/smalux1/power1”
    state_topic: “gBridge/u961/stat/smalux1/POWER1”
    qos: 1
    payload_on: “ON”
    payload_off: “OFF”
    retain: false

Any ideas?


#4

Further testing…when I have my gbridge set up like this:
image
and then trigger on or off, I get two messages back from gbridge:

Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/d0/grequest', ... (7 bytes))
gBridge/u961/d0/grequest EXECUTE
Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/cmnd/outlet3/power', ... (1 bytes))
gBridge/u961/cmnd/outlet3/power 1
Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/stat/outlet3/POWER', ... (2 bytes))
gBridge/u961/stat/outlet3/POWER ON

Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/d0/grequest', ... (7 bytes))
gBridge/u961/d0/grequest EXECUTE
Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/cmnd/outlet3/power', ... (1 bytes))
gBridge/u961/cmnd/outlet3/power 0
Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/stat/outlet3/POWER', ... (3 bytes))
gBridge/u961/stat/outlet3/POWER OFF

But, once I add the 1 after power/POWER to specify the relay, I still get the cmnd response, but I do not get the stat response:
image

Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/d0/grequest', ... (7 bytes))
gBridge/u961/d0/grequest EXECUTE
Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/cmnd/outlet3/power1', ... (1 bytes))
gBridge/u961/cmnd/outlet3/power1 1

Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/d0/grequest', ... (7 bytes))
gBridge/u961/d0/grequest EXECUTE
Client mosqsub|40-core-ssh received PUBLISH (d0, q0, r0, m0, 'gBridge/u961/cmnd/outlet3/power1', ... (1 bytes))
gBridge/u961/cmnd/outlet3/power1 0

This appears to be a bug to me. Correct me if I am wrong?