Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
User guide SRFB
Sonoff RF Bridge gateway
Level of complexity: low
Receiving data from RF signal
Subscribe to the base topic "home" with mosquitto:
sudo mosquitto_sub -t home/# -v
Generate your RF signals by pressing a remote button or other and you will see :
This is the raw value extracted from the RF module of the Sonoff bridge. The data are in hexadecimal and correspond to the details below: https://www.itead.cc/wiki/images/5/5e/RF_Universal_Transeceive_Module_Serial_Protocol_v1.0.pdf
OpenMQTTGateway process these datas to extract the following decimal values that can be reused to reproduce a signal (raw value can also be reused).
This is the decimal value to use (same as ZgatewayRF).
Code synchronisation time.
Low level time.
High level time.
The home/SRFBtoMQTT, Tsyn, Thigh and Tlow values enables you to know the advanced parameters of your signal.
NOTE: currently the device doesn't receive correct values from Switches remote control
Send data by MQTT to convert it on RF signal
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB -m 1315156`
This command will send by RF the code 1315156 and use the default parameters: Repeat = 1 Low time= 320 High time= 900 SYNC = 9500
Send data by MQTT with advanced RF parameters
RF bridge sending support four advanced parameters; Repeat, Low time, High time & Sync if you want to repeat your signal sending put into you topic RPT_2, 2 means 2 repetitions of signal
if you want to use a low time of 315 put inside your topic Tlow_315
if you want to use a high time of 945 put inside your topic Thigh_945
if you want to use a sync time of 9123 put inside your topic Tsyn_9123
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB/Tlow_315/Thigh_845/Tsyn_9123 -m 33151562
will make RF Bridge send a signal with the use of listed parameters 315, 845, 9123...
sudo mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB/Raw -m 267A013603B6140551 will make RF Bridge send a signal with the use of advanced parameters defined in the raw string
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB -m 33151562
will make RF Bridge send a signal with the use of default parameters