MQTT Publish to RF Bridge

Hi,

I have a sounder working with 433MHZ and i managed to integrate it with rf bridge flashed with tasmota using button 4. Through the console of the rf bridge if i paste the command cmnd/RF_Bridge/RfKey4 the sounder would be activated.

I’ve configured mosquito to be integrated with Rf Bridge and senors which are using 433mhz are being correctly sent to home assistant.

So far so good.

The issue that i’m having when i try to trigger RfKey 4. This command isn’t being sent to my RF Bridge, and I can confirm it from the console of the RF Bridge. I’m using the following code in the automation section.

action:
  - service: mqtt.publish
    data:
      topic: cmnd/RF_Bridge/RfKey4
      payload: " "

Any Ideas whats the issues. The receiving part form the RF Bridge to Home Assistant is OK the issue is send from Home Assistant to RF Bridge.

Thanks,

Kindest Regards,
Etienne

payload is optional. If you’re going to send an empty message, why not just leave that off ?

action:
  - service: mqtt.publish
    data:
      topic: cmnd/RF_Bridge/RfKey4

Do you have MQTTExplorer installed somewhere in the nextwork? It’s really useful in debugging mqtt things. I’d install that (or some similar tool) and just see if the message is making it to the broker.

1 Like

Thanks for your reply. Thats my issue that the message isn’t arriving on the broker. Do i need to create an MQTT device under the configuration.yaml ? I only configured the device under the mosquito MQTT

Yep. If the same device is the broker, you can use localhost for the broker ip address.

mqtt:
  broker: localhost
  username: !secret mqtt_user
  password: !secret mqtt_pass

Still nothing :frowning: is there a way to enable debug logs on the mosquito broker basically i’m using a third party client to test mqtt and stiill the same so the issue isnt related with home assistant. Its more to do with Mosquitto

In configuration.yaml :

logger:
  default: error
  logs:
    homeassistant.components.mqtt: debug

Shows a lot of information !

Oh, and check your tasmota console, if it does not expect RF_Bridge/cmnd/RfKey4

Hi,

Took a TCPDUMP and no traffic is being sent to tasmota so something wrong is happening on the broker.

Are you using real mosquitto or the add-on ?

Hi,

Yes i’m using the addon… Basically i managed to find whats the issues.

The topic that i need to send it not cmnd/RF_Bridge/RfKey4 but RF_Bridge/cmnd/Rfkey4 the name of the bridge device first then then cmnd.

What putted me off is that if i run cmnd/RF_Bridge/RfKey4 in the console it works without any issue.

Regards,
Etienne