The various methods of switching the Sonoff RF flashed with tasmota firmware

There are a number of ways to switch the Sonoff RF flashed with the tasmota firmware.

Make sure you have set-up the Sonoff RF for use with Mosquitto if you want thebelow Mosquitto MQTT commands to work.

All 4 of the below commands can be issued on the linux command line with curl and mosquitto installed.  With them we can switch the Sonoff RF to a known state:

  • curl -s http://your_sonoff_rf_ip_address/cm?cmnd=Power%20Off > /dev/null
  • curl -s http://your_sonoff_rf_ip_address/cm?cmnd=Power%20On > /dev/null
  • mosquitto_pub -h your_sonoff_rf_ip_address -t “your_topic_here/cmnd/sonoff/POWER” -m “ON” -q 1 -r
  • mosquitto_pub -h your_sonoff_rf_ip_address q-t “your_topic_here/cmnd/sonoff/POWER” -m “ON” -q 1 -r

Or we can simply place the following in our web browser and they will work from there too

  • http://your_sonoff_rf_ip_address/cm?cmnd=Power%20Off
  • http://your_sonoff_rf_ip_address/cm?cmnd=Power%20On

Or we can navgate to the IP address of our Sonoff RF and

  • switch it using the Toggle button on it’s home web page.

Or we can can pair the Sonoff RF with a 433MHz remote and

  • switch it using one button Toggle functionality.

So all together we have 8 ways we can switch the Sonoff RF.

It would be nice if the 433MHz remote paired with the Sonoff RF was able to switch to a known state of Off or On since Toggle being useful relies on us knowing the previous state of the switch, and we don’t always. The current 433 MHz radio firmware on the Sonoff RF is only currently capiable of Toggle. With a purpose of having On and Off functionality available I have undertaken a tear down of the Sonoff RF 433MHz card. Perhaps a new more useul forware can be flashed.

The Sonoff RF consists of two cards. The 433MHz card and the ESP8266EX card. Each has a seperate firmware, but they work together to

  • control the relay switch
  • light the onboard LED’s
  • send out a switching MQTT state.

The 33 pin Expressif ESP8266EX chip (Wi-Fi, network, flash memory & logic), and the Silicon labs BB10-F2G chip in a QFN20 package (433MHz logic control & 2KB flash memory) communicate via SPI or I2C. Only one of these chips them will be doing the relay switching, LED operating and status updates for MQTT.

It is more than likely that the control chip is the ESP8266EX. The BB10-F2G likely just communicates a Toggle request and incoming radio updates to the ESP8266EX via I2C or SPI, which then controls everything.


This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s