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
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
RF_RECEIVER_GPIO 4 and RF_EMITTER_GPIO 5
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.
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\local.eagle.app.v6.common.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
Denis
(Baia Mare:-)
Sorry but is the first time that I use Platform.io
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 ?
Ok… bu in this case I don’t understand how platform.io understand that I want PiLight
I program it with default_envs = rfbridge and now I can see in my MQTT broker some topics:
home/OpenMQTTGateway_SRFB/SYStoMQTT
home/OpenMQTTGateway_SRFB/LWT
home/OpenMQTTGateway_SRFB/version
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.
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
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.
Now in my MQTT broker I receive: {"message":{"unit":65034,"battery":1,"state":"closed"},"protocol":"iwds07","length":"","repeats":2,"status":2}
…from a remote that I have at home alarm
I receive all the dor sensor, and I received also in Node-Red node test
So it’s like it’s work
The olnly think that I don’t receive is the car gate remote… and I know it’s 433mHz
…but is not the right place here in this thread.
So now I’ll wait that R8H will arrive and I think then I will watch this thread in order
to try to make it work
It is normal, most of the time car gate use a rolling code system (at each press the code is different) to avoid hacking. It should feel you safer also
I have 2 Digoo DG-R8H. I can get the proper information using nexus433 on RaspberryPi…
Client mosqsub|30542-paul-Insp received PUBLISH (d0, q0, r0, m0, ‘nexus433/sensor/da01/state’, … (72 bytes))
nexus433/sensor/da01/state { “temperature”: 22.7, “humidity”: 75, “battery”: “100”, “quality”: 66 }
But as denisj, I would prefer to use Open MQTT Gateway with Sonoff RF Bridge.
So, I followed your the instructions in this tread (thanks a lot) and I got my RF Bridge working receiving door sensors but I am not getting the Digoo DG-R8H information…
Did I missed something?
1technophile asking to test code on an esp8266 (PrologueDecoder)
Is this something I should use?
Hi Paul,
1tecnophile promise me that when will find some time in order to test OMG with DG-R8H,
and develope it, he will tell us how to update the firmware of RF Bridge.
Maybe we can help him… but I’m Cobol programmer and I don’t know how to make test.
Watching =)
I have the hacked Sonoff +OMG working with the R8S but also have some R8H waiting for OMG compatibility.
I can provide testing assistance.
Enjoy the summer and keep us posted. Cheers.