I*m completely new to the mqtt/RF stuff. I am trying to use the RF Bridge to receive signals from motion/door sensor and switch lights.
I flashed the Sonoff RF bridge with omg 0.91 (build it in the Arduino IDE, flashed with ESP Easy). I configure omg on the bridge and it is in my wifi network. I have a mosquitto server running on a raspberry pi. If I listen for mqtt messages with “sudo mosquitto_sub -t +/# -v”, I only get
But when I activate a sensor (door sensor or motion sensor), I get no mqtt message. On the RF bridge blinks a red led, but that’s all. Am I missing something? Do I have to pair the RF sensors with the bridge or something like that?
thanks for confirming my doubt, the “offline” message doesn’t seemhttp://drzzs.com/sonoff-rf-bridge/right to me. But the gateway is connected to my wifi (visible in my router) and since I get that message, I would assume that the connection to the broker works too.
What I did now was to take the bin from http://drzzs.com/sonoff-rf-bridge/. Its quite an old version (from last year), but now I get the following:
Also, I’m receiving mqtt messages from the rf devices.
So I think I made an error when compiling the .bin with Arduino IDE. All I did there was to comment all addons and modules except ZgatewaySRFB. Do I have to do more than that?
You must have a MQTT broker configured to this method works. I’m using Raspberry Pi with Openhab.
On the software, you connect to the MQTT Broker IP (in my case is the Raspberry Pi IP) and then subscribe on MQTT.fx to the follow topic: home/OpenMQTTGateway/SRFBtoMQTT
You should be able to see the inputs from the sensors this way.
I tried to flash ESP8266_OpenMQTTGateway_V091_RF.ino.bin (and to be safe the other bins too), but then the bridge doesn’t appear with its own WIFI network (and not in my wifi network either). Or do I have to supply the WIFI information with the ESP Easy Flasher?
Well, don’t ask me why, but after playing a bit with the Arduino IDE, setting the WIFI/mqtt data in the user_config.h, it finally works! I also did the upload with Arduino IDE instead of ESP Easy.
Just one last question concerning the OTA update, do I have to do anything to activate it? I don*t see the RF Bridge in the Arduino IDE as a Port.