Power over power — cheap smart devices under your full control with Tasmota

Sonoff — smart devices for cheap

  • 1 channel relays (Sonoff Basic R2 for around 5€) which can be build into lamps for example
  • 2 channel relays (Sonoff Dual R2 for around 8€) which can control 2 devices or something like a motor
  • multi channel relays ( 4CHR2/PROR2) for even more devices
  • Switches that can measure the energy consumption (POWR2 for around 13€)
  • A wall plug (S20 for around 10€)
  • Wall switches
  • A 433Mhz RF Bridge
  • and many more devices

The catch — cloud control

Tasmota to the rescue

How to flash Tasmota

That is all you need to make those Sonoff devices your own
Tasmotizer makes the flashing process super easy
Opening a Sonoff switch

How to control the tasmotized Sonoff

// if your network is open to anyone else it might be a good idea to enable security and user/password features
Bridge mqtt:broker:mosquitto [host="localhost", port=1883, secure=false, clientID="openHAB2"] {
// ... MQTT Things
Tasmota main screen
Tasmota setup
Tasmota MQTT settings
Bridge mqtt:broker:mosquitto [host="localhost", port=1883, secure=false, clientID="openHAB2"] {    // sonoff items
Thing topic sonoffLamp "Leselampe" @ "Wohnzimmer" {
Type switch : power "Power" [ stateTopic="sonoffs/tele/sonoff-steckdose-1/POWER", commandTopic="sonoffs/cmnd/sonoff-steckdose-1/POWER"]
Type string : reachable "Erreichbar" [ stateTopic="sonoffs/tele/sonoff-steckdose-1/LWT" ]
Type number : rssi "WiFi Signal" [ stateTopic="sonoffs/tele/sonoff-steckdose-1/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI" ]
Switch Sonoff2 				    "Leselampe [MAP(de.map):%s]" <light>     (grLight)   ["Lighting"] 	{ channel="mqtt:topic:mosquitto:sonoffLamp:power" }
Switch Sonoff2_Reachable "Leselampe ist: [MAP(reachable.map):%s]" <network> { channel="mqtt:topic:mosquitto:sonoffLamp:reachable" }
Number Sonoff2_Signal "Leselampe Sendestärke: [%s]" <qualityofservice> { channel="mqtt:topic:mosquitto:sonoffLamp:rssi" }
sitemap main label="Overview" {
Frame label="Rooms" {
Text label="Bedroom" icon="bedroom" {
Frame label="Reading light" {
Switch item=Sonoff2
Text item=Sonoff2_Reachable
Text item=Sonoff2_Signal
// ...

What can we do now?




I am a DIY, smart home and automation enthusiast. I am sharing my journey here and on my blog thesmarthomejourney.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why we should be prepared to welcome the next industrial revolution

city street with network connections

“We’ve started a movement for people to take 5 minutes a day to stop, breathe & think” With Jamie…

Quantum Computing for Dummies- Part 1

The Segway’s Inventor Has a New Project: Manufacturing Human Organs

Google Pixel 4a 5G Review and Accessories : Better Than Google Pixel 5

Digital Divide & Equity

Google, Apple pull down Chinese apps banned in India from app stores

San Diego Smart Streetlights and the Surveillance Dance

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


I am a DIY, smart home and automation enthusiast. I am sharing my journey here and on my blog thesmarthomejourney.com

More from Medium

Tom signs off on an incredible career, but what is next for Tampa Bay?

Was 2021 rough on my ISA investments?

The Enemy Suffers Big Losses as the Resistance Continues

CBB Betting from Liam Blutman Day 2