Skip to content

RF gateway (433mhz/315mhz)

Protocols, modules and library

RTL_433 covers OOK protocols detailed here and supports auto-discovery following Home Assistant convention. The other libraries/modules are more for advanced users.

BoardProtocolsAssembly/Soldering required
Heltec LORA V2 433MhzRTL_433, receiving onlyNo
LILYGO® LoRa32 V2.1_1.6.1 433 MhzRTL_433, receiving onlyNo
ESP32 + SX127XRTL_433, receiving onlyYes
ESP32 + CC1101RTL_433, RF(RCSwitch), RF2(KaKu), PilightYes
ESP8266 + Basic RF modules (SRX, STX, XD RF, FS1000ARF(RCSwitch), RF2(KaKu), PilightYes
ESP8266 + CC1101 (might have lower range than with SRX/STX above)RF(RCSwitch), RF2(KaKu), PilightYes
ESP32 + Basic RF modules (SRX, STX, XD RF, FS1000ARF(RCSwitch), RF2(KaKu), PilightYes

TIP

If you want to try the RTL_433 module with a combination or a board outside of this list, verify that it has an SX1278 or a SX1276

Heltec LORA V3 is not compatible with RTL_433 library as it is based on an SX1262 module.

Assembly/soldering required parts

ModulePurposeCompatible modulesReceiver SwitchingWhere to Buy
SRX882 or SRX882S (recommended)433Mhz ReceiverRF(RCSwitch), RF2(KaKu), PilightSupported-
STX882 (recommended)433Mhz TransmitterRF(RCSwitch), RF2(KaKu), PilightSupported-
CC1101433Mhz TransceiverRTL_433, RF(RCSwitch), RF2(KaKu), PilightSupported-
SX1276/SX1278433Mhz TransceiverRTL_433Not Supported-
LilyGo/Heltec433Mhz TransceiverRTL_433Not Supported-

SRX STX Pinout

BoardReceiver PinEmitter Pin
ESP8266D2/D1/D8RX/D2
ESP3227/2612
RF BRIDGE--
RF BRIDGE DIRECT HACK45
SONOFF RFR34-
RF WIFI GATEWAY5-

Connect the Emitter and Receiver to a 5V or 3.3V supply source, check datasheet of your modules to confirm (3.3V for CC1101), and the ground of your supply source to the ground of your board.

TIP

With SRX882S receiver connect the CS pin to 3.3V

CC1101 Pinout

BoardReceiver Pin(GDO2)Emitter Pin(GDO0)SCKVCCMOSIMISOCSNGND
ESP8266D2/D1/D8RX/D2D53V3D7D6D8GND
ESP32D27D12D183V3D23D19D5GND

To use the CC1101 module, ZradioCC1101 must be uncomment in the User_config.h or added to the build_flags.

More information about the CC1101 wiring.

Please note that with OMG we are recommending CC1101 GDO2 to be connected to ESP32 D27 and GDO0 to be connected to D12, this is different than the LSatan diagram. This is due to the ESP32 using D2 as part of the boot process.

If you want to use custom SPI pins for the CC1101 module, you can define the following variables in your User_config.h or as build_flags in platformio.ini:

  • RF_CC1101_SCK: SPI clock pin (SCK)
  • RF_CC1101_SCK: SPI clock pin (SCK)
  • RF_CC1101_MISO: SPI MISO pin (Master In Slave Out)
  • RF_CC1101_MOSI: SPI MOSI pin (Master Out Slave In)
  • RF_CC1101_CS: SPI chip select pin (CSN)

When all these variables are defined, OpenMQTTGateway will use your custom pinout for the CC1101 connection. This is useful if your board does not use the default pins or if you want to avoid conflicts with other devices.

ESP32 Hardware setup

Addon_RF

ESP8266 Hardware setup

The default receiver pin is D2 (gpio 4). Avoid D3 (gpio 0): it is a boot strapping pin, a receiver holding it low at reset forces the ESP8266 into flash mode and the board never starts.

With SRX882 some users reported issues on D2, use D1 instead in this case and modify config_RF.h accordingly.

Addon_RF

SONOFF RF Bridge Hardware setup

Per default there is no need on modifying the RF Bridge hardware, unless you don't want to use the provided RF controller (EFM8BB1). Indeed if you want to extend the protocols supported by the bridge you can bypass this controller and use the ESP8255 capacities to decode RF Signal. The RF processing can be achieved after the modification by either RF, RF2 or Pilight gateways.

SONOFF RFR3 Hardware setup

Connect GPIO4 of the ESP8255 to the pin D0 of SYN470

WIFI RF GATEWAY Hardware setup

This board doesn't require any hardware modifications.