Github Devices Community Docs Blog

Sonoff RF Bridge 433 + Digoo DG-R8H 433MHz

Hi there all,
I just want to buy 8 pieces of the Digoo DG-R8H 433MHz
but before buy this I just want to ask someone… Can I link this sensor to the Sonoff RF Bridge please ?

If yes… what firmware I must put in the Sonoff ? (now I have Tasmota)
And the last one… I must to modify the hardware of Sonoff RF like here ?.. please say yes :slight_smile:

Thanks in advance all

I have 12 pieces of the DG-R8H, but I never got them to work with the sonoff RF-bridge ( or an esp8266 with OpenMqttGateway ) They work great with a RFLink.

Thanks a lot for reply.
I also have a RFLink in my box, I don’t know if is still good cause I take it about 2 years ago.
I don’t like it cause must be connect to some other box.

What I need is something that can stand alone and send MQTT data via WiFi.

Maybe I’ll study to make a temp and umidity sensor from open comunity.

I ask just cause Digoo DG-R8H is nice and the cost is ok.
But if nobody can make it work with OMG… well I’ll think to some else hardware.

Anyway if that gui from RFLink have make it work, I think also OMG can.
Just nee the just person :slight_smile:

Thanks again

You can attach a esp8266 to your rflink to make it talk over WiFi.

I think that this is what I can do:

  1. Install OMG in the Sonoff RF and make it work with Digoo DG-R8H
  2. Install OMG in the Sonoff RF and make a temp. humidity sensor by my self
  3. Make an OMG by myself and make a temp. humidity sensor by my self
  4. Install a ethernet module on the RfLink and upload it with OMG :slight_smile:

First I will looking for point 1. …maybe someone will make work Digoo DG-R8H with OMG.

Thanks again

If you have some patience and would like to test I may integrate it during the coming weeks.

Thanks a lot… of course I’ll wait and of course I’ll make every type of test that I can
But I’m not a guru of this thinks, I’m just a Cobol programmer :slight_smile:
So I begin to buy the pieces.

And in the mean time I just want to ask you… I must make some hardware mod. on the Sonoff RF please.
I have read in one of your blog post, that if I mod. the Sonoff RF I’lll receive more type of protocols.
It’s better if I make this mod please ?

Thanks a lot again

I have and use Sonoff RF Bridge (hardware modded with OMG Pilight), Digoo R8H, Arduino MEGA(with RFLink) and Wemos D1 mini (with OMG RF).

As far as I know, currently you can not get readings from R8H using OMG, it only works with RFLink.

So if your goal is to use R8H, then you need a board flashed with RFLink and not Sonoff RF Bridge. There are ways to connect RFLink via WiFi as pointed out earlier.

If you don’t care if it’s R8H or another sensor and all you need is temperature/humidity readings via MQTT, you might be better off building something like BRUH sensor - possibly using Wemos D1 mini and flashed with ESPHome (I believe there are plenty of options and guides around). That way you don’t need Sonoff RF bridge as your sensor will use WiFi, not RF signal to transfer data.

Another thing - don’t use Digoo R8S unless you’re going to power it from a power adaptor as it will change its ID every time you replace batteries and it sucks.

1 Like

Thanks a lot Ahmad for your answer.
But I think is better if we can make work this sensor with OMG for some reasons.

To make it work via WiFi, the RFLink need to much boards for my opinion.
The Bruh sensor is great but it use WiFi power and so is not great to use it with battery
The last reason but same important is that with this sensor work on OMG
I think is good think for OMG community grow :slight_smile:

Thanks again

So I make the hardware modification on the Sonoff RF Bridge (mine is R2 V1) :

I downloaded the OpenMQTTGateway_sources and the rfbridge-libraries
and I put all 2 in the ArduinoIde “libraries” folder
I uncoment "#define ZgatewayPilight “Pilight” and I change the pin’s in the config_RF.h

Now I don’t know witch board I must choose from Tools menu cause if I try to compile it give me the error:

Board generic (platform esp8266, package esp8266) is unknown
Error compiling for board Generic ESP8266 Module.

Thanks a lot for the help

I have solve all problems with the board under ArduinoIde
but then it give me a lot of error about “libs not found”.

So I read some docs that tell me that is better if I use Visual Studio with PlatformIO.
So I installed all, then I downloaded again the OMG version 0.9.4
then I modified the User_config.h (wifi,mqtt)
then I uncomment the record: #define ZgatewayPilight “Pilight”
then I define t 4 and 5 PIN in config_RF.h
then I click the Build icon…
It give me the error:

Building in release mode
Compiling .pio\build\rfbridge\src\main.ino.cpp.o
Generating LD script .pio\build\rfbridge\ld\
Compiling .pio\build\rfbridge\liba9e\PubSubClient_ID89\PubSubClient.cpp.o
Archiving .pio\build\rfbridge\lib7a8\libArduinoJson_ID64.a
Compiling .pio\build\rfbridge\liba04\ArduinoLog\ArduinoLog.cpp.o
Compiling .pio\build\rfbridge\libde6\ESP8266WiFi\BearSSLHelpers.cpp.o
Compiling .pio\build\rfbridge\libde6\ESP8266WiFi\CertStoreBearSSL.cpp.o
Compiling .pio\build\rfbridge\libde6\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pio\build\rfbridge\libde6\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pio\build\rfbridge\libde6\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
D:/OpenMQTTGateway-0.9.4/main/ZgatewayPilight.ino:36:24: fatal error: ESPiLight.h: No such file or directory

Someone can help me please to flash the Sonoff RF ?
Thanks in advance
(Baia Mare:-)

Would it be possible to test the code below on an esp8266 ?

It could be a first step for the r8s integration.

With platformio you don’t need to modify user_config.h. Just uncomment the env you want to build.

Sorry but is the first time that I use
I have restart all from beginning and I only change the WiFi and MQTT
credentials and settings in the user_config.h
Then I click the build icon… now I’m here from about 20 minutes to wait that finish work.
I don’d understand what it do all this time.

So next step will be to uncomment the env in the platformio.ini file ?
Then… what I uncomment ? the “default_envs = rfbridge” or the “default_envs = esp32dev-pilight” ?
…or all two ?

Thanks a lot again

The rfbridge does not contain an esp32.

Ok… bu in this case I don’t understand how understand that I want PiLight

I program it with default_envs = rfbridge and now I can see in my MQTT broker some topics:

But if I push some rf433 remote from my alarm there is no updates in the MQTT.
Maybe it’s work… but I don’t know ?

I think I’m missing something… cause in this blog page you tell us to uncomment the:
#define ZgatewayPilight “Pilight”
in the user_config.h file.

Can you let me know the right way please ?

Thanks a lot again

Nobody can help me please ?

Here is an evironment description that you should add to your .ini file:

platform = ${com.esp8266_platform}
board = esp8285
lib_deps =
build_flags =
board_build.flash_mode = dout

Once done you can add also the call at the begining of the ini file:
default_envs = rfbridge-pilight

These are the instructions for Arduino IDE not for platformio.

At final, and to come back to this thread subject I don’t know yet if I’m going to add the R8H to Pilight or RCSwitch or with another way. So you may load Pilight but you would have to reload a different version later.

This is not a problem… the first time is more difficult :slight_smile:

Thanks a lot for the piece of source code.
I modified, build and upload the code… and everything was ok until I test it.
But I think my Sonoff RF now it’s broke.
Cause is not work anymore. Not MQTT topics, no WiFi link (cause no ping)
No WiFi manager… nothing.
I’ll need more time to test and understand what’s wrong.
And if I can’t make it work I think I’ll make a new OMG using NodeMcu (cause I have some boards at home)

In your opinion… is better SonoffRF or NodeMCU + radio please ?
And in the mean time… witch radio hardware is best quality in order to linked to the NodeMcu please ?
I’ll buy it and wait to arrive the shipping.

Thanks a lot again

If you are able to upload the ESP is still alive, did you try to erase the flash memory?

NodeMCU are easier to upload and update but you will need a box.
RFBridge as a box but is limited by its internal decoder if you don’t modify it.

You can take the superheterodyne ones linked below (affiliated links) :