Accéder au contenu principal


For this new article we will adapt a new device; the SMART RF & WIFI GATEWAY or SMART HOME MODEM (difficult to have the real name with this kind of generic product ...)

The shape of the stick and its theoretical abilities attracted me at first time in aliexpress, I was asking myself what kind of microcontroller handle the wifi and RF on this size.

A simple package with a short user manual and the USB Stick.

At the rear a link enable to download an app, but it is not the way I want to go.

If with a screw driver or a knife we open it, we can see a surprise !

It seems to have an ESP on it.

We can see also a buzzer, a button and 2 leds. At the right we see the 433mhz antenna with its decoder.

The part of the uC back that we can see looks like a lot with the back side of an ESP12

.We see also 4 small holes that remind us the kind of programming holes present on the SONOFF devices. Do they enable to flash the chip?

By checking with a multimeter and seeing the pinout we can verify that the first one is connected to GND (black), second one to RX (yellow), third one to TX (orange).
Regarding VCC power we will use a separate power supply through the USB plug.

Once this check done I connected an FTDI following this principle:

Image result for esp12e pinout

I tried to upload many times without success, after rechecking the flashing prerequisites of the ESP12 I saw that GPIO0 must be at connected to ground, and it is not the cas per default of this board.

Let's connect GPIO0 to GND and see what happens

And it is flashed!!

Let's go in deep into this flashing process:
  1. Connect the FTDI to the board and the ground to GPIO0
  2. Connect the FTDI to your computer
  3. Power the board with an external power source through USB
  4. Open your arduino IDE or platformio
  5. With platformio  type the following command:  platformio run --target erase
  6. With the arduino IDE :Erase flash "All flash content"  & DOUT mode
  7. And now you can flash it with OpenMQTTGateway
The board is an ESP8266, here is the configuration used with PIO in the platformio.ini file:

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

The RF receiver use the GPIO5, after some test we can see that:
the buzzer is on GPIO15, 
the blue LED on GPIO14
the red LED on GPIO16.

But I didnt found  which pin the button is connected to ...

After some tests of sending RF signals the device doesn't seems to support it.

Indeed I can't see any dedicated circuit for sending.

Nevertheless this ESP8266 board with an integrated RF receiver is quite interesting and fully compatible with OpenMQTTGateway.


  1. Hi there, first thanks for all the great work you spend into this project. I'm new to OpenMqttGateway and with this great instructions I got the binary version successful flashed on the WIFI GATEWAY. As I would like to use the KAKU protocol I bought this device as it's listed to support that. KAKU is according to my reading only supported with RF2 or pilight protocol - which does not exist pre-build. I compiled my own version of RF2 and pilight (everything is duplicated from the generic esp8266 RF2/pilight section except of -DRF_RECEIVER_PIN=5 that parameter). I could not get the device to receive any signal on pilight or RF2 - only with the pre-build rf firmware it worked. Wondering if I'm doing something wrong or if the device does simply not support pilight or RF2.

  2. Hi Herbert,
    This device should support KAKU with RF2 gateway as there is no separate decoding chip.

  3. Ce commentaire a été supprimé par l'auteur.

    1. Hi, Do you have another ESP with an RF receiver, so as to check if flashed with RF2 you are receiving your KAKU signals.

  4. I have a raspberry pi with an pilight instance which is receiving the KAKU signal from the switch. I don't have another ESP with 433 receiver available


Enregistrer un commentaire

Posts les plus consultés de ce blog

433toMQTTto433 - Bidirectional ESP8266 NodeMCU gateway between RF 433Mhz signal and MQTT

The goal  is to act as a gateway between 433Mhz sensors and a MQTT broker or between the MQTT broker and 433Mhz actuators, It enables to: receive MQTT data from a topic and send RF 433Mhz signal corresponding to the received MQTT data  publish MQTT data to a different topic related to received 433Mhz signal  It can be an interesting part in an home automation system so as to interface sensors and actuators (wall sockets) with software like openhab . List of compatible sensors here The interest of putting this gateway to an ESP8266 and not on a raspberry pi is to be able to manage security actions at gateway level (power on a siren, cut power to certain devices) following RF data received by sensors without being dependent to the PI for security related actions. [EDIT] all infos are now centralized into  the github repository  take a look at it you will find up to date info about OpenMQTTGateway You need: Software: Mosquitto Arduino IDE latest version (tested ok with 1.6.10

Get your BLE sensors data into Home Assistant in 5 minutes

You can now upload your board directly from the web browser!  So let's imagine you want to read data from a sensor like a Mi Flora, an LYWSD03MMC, a weight scale, or any other BLE sensor from this list  Plug an ESP32 dev board to your computer USB port Go to this website: Select esp32dev-ble Click the install button Depending on your board you may have to press the BOOT button Choose the port that the ESP is connected to. Wait until the process is complete. Release the BOOT button That's it, OMG is now loaded into your ESP32 board without Arduino IDE, platformIO or a binary flasher. Here are the steps in images: Now comes the Home Assistant part: Add the MQTT integration and activate auto discovery Create a user and a password (Configuration->Users) without administrator right for the gateway Well, this is enough for Home Assistant. So let's now connect both: Check the Wifi Access points available with your smartph

SONOFF RF BRIDGE + Pilight or How to extend the supported protocols by our little bridge

With version V0.9 of OpenMQTTGateway  @steadramon  &  @puuu  (the ESP library creator) enabled by their work to integrate Pilight library on OMG. Permiting to increase significantly the list of RF protocols of OMG . But now that we have this interesting possibility and with the goal of OMG of beiing multi boards compatible, why not trying to put Pilight on a Sonoff RF Bridge . So as to do this test I ordered a new one so as to be on the same hardware as most of the users (my other RF Bridge is a demonstration old one) So as to decode RF signals the Sonoff RF Bridge has a special dedicated chip (EFM8BB1)  that communicate with the esp8285 with a serial connection. If we want to increase the number of RF protocols compatibles on the device without modifying the hardware, the only software based solution is to hack the  EFM8BB1. This hack is available and made by @ Portisch . The list of protocol is interesting but at the moment not as big as Pilight one. Maybe I will t