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" {
Channels:
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

Where to Buy All Your Inspection Gear

The most dangerous thing to say in a company is “We’ve always done it that way.”

What the internet can teach us about EV adoption

Thinking About System? 5 Reasons It's Time To Quit!

DataDownload: Amazon is back in NYC in a big way! China bans all deepfakes…

Why Apple Will Win The Augmented Reality Race

8 Points to Plan for a Vibrant Future

It Could’ve Been Like Muhammed Ali’s Comeback Ur — Slashdot Meets The Crossroads Years Later

 slashdot effect

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
TheSmartHomeJourney

TheSmartHomeJourney

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

More from Medium

Yuser. Relation of new token standard to the current reward system

New! Select an Organization when uploading

The Inflation Series, Pt 3: Bringing Down the House

The one little-known hack that will BREAK your screen addiction!