That $12 smart plug you bought? It sends your data to a server in China and stops working if the company shuts down. Tasmota fixes that. Flash open-source firmware onto your Wi-Fi devices and they talk directly to Home Assistant. Local, fast, private, and yours forever.
Jump to a section
Tasmota is open-source firmware created by Theo Arends that replaces the stock firmware on thousands of Wi-Fi smart devices. Instead of your smart plug phoning home to some cloud server, it talks directly to Home Assistant over your local network. The result? Faster response times, complete privacy, and devices that work even when your internet is down.
No cloud, no accounts, no data leaving your home. Everything stays on your network.
No round-trip to the cloud means sub-second response times for switches and automations.
When Tuya or SmartLife kill their servers, your devices keep working. You own the firmware.
Flash a $8 Sonoff Basic and you have a local smart relay. Try doing that with commercial gear.
Both are excellent open-source firmware options for ESP-based devices. But they solve different problems. Here is the honest comparison.
The real answer? Most Home Assistant power users run both. Tasmota on their commercial devices (smart plugs, switches, bulbs) and ESPHome on their custom sensor projects. They are not competitors; they are complementary tools.
Not every device is worth the effort. These are the proven choices that the community has been using for years, sorted by how easy they are to flash.
Athom Smart Plug (EU/US/UK)
Ships with Tasmota already installed. Plug in, configure Wi-Fi, done. Energy monitoring included.
Athom Light Bulb (E27/E14)
RGBCW bulbs with Tasmota pre-installed. Available in warm white, cool white, and color variants.
Athom Mini Relay / Switch Module
Tiny relay boards for behind-the-switch installations. Tasmota ready out of the box.
Sonoff Basic R2 / Mini R2
The classic Tasmota device. Flash via the Tasmota web installer at tasmota.github.io/install. Supports DIY mode for easy OTA.
Sonoff S31 / S26 Smart Plug
Smart plugs with energy monitoring (S31). Well-documented flashing process with serial header access.
Sonoff TH16 / TH Elite
Temperature and humidity monitoring relay. Great for controlling heaters or fans based on sensor readings.
Tuya / SmartLife devices (older models)
Many older Tuya devices use ESP8266 chips. Newer ones have switched to non-ESP chips that do not support Tasmota. Check the chip before buying.
BlitzWolf Smart Plugs
Decent energy monitoring plugs that need serial flashing. Popular in the EU market. Models with BW-SHP prefix are well-documented.
Important note about newer Tuya devices: Since 2022, many Tuya manufacturers have switched from ESP8266 chips to non-flashable alternatives (like Beken BK7231 or Realtek RTL8720). Always verify the chip inside before buying a device specifically to flash with Tasmota. The Tasmota Device Templates Repository is your best friend here.
Three methods, from easiest to most involved. Start with Method 1 and only go deeper if your device requires it.
Works with Chrome or Edge. Plug your device into USB, visit tasmota.github.io/install, select your device, and click Install. The browser flashes the firmware directly. Takes about 2 minutes.
Works for: Any ESP device connected via USB. Sonoff devices with exposed headers, NodeMCU boards, ESP32 dev boards.
Newer Sonoff devices support DIY mode. You enable it through the eWeLink app, then flash Tasmota over Wi-Fi without opening the device. The catch: not all Sonoff models support this, and the process can be finicky.
Steps: Enable DIY mode in eWeLink > Connect device to your network > Use the Tasmota web installer or a tool like SonOTA > Device reboots with Tasmota.
The universal method that works on any ESP device. You open the case, connect 4 wires (3.3V, GND, TX, RX) from a USB-to-serial adapter to the chip, put it in flash mode, and upload Tasmota. Sounds scary, but it is straightforward once you have done it.
What you need:
Two ways to get your Tasmota devices into Home Assistant. Both work great, but the native integration is now the recommended approach.
Home Assistant has a built-in Tasmota integration that auto-discovers devices. It still uses MQTT under the hood, but handles the configuration automatically.
Setup steps:
SetOption19 0SetOption114 1The older method using generic MQTT auto-discovery. Still works, but the native integration gives you better entity naming and device grouping.
Setup steps:
SetOption19 1# Configure MQTT broker
MqttHost 192.168.1.100
MqttUser homeassistant
MqttPassword your_password
# Enable native Tasmota integration (recommended)
SetOption19 0
SetOption114 1
# Set device name and friendly name
DeviceName Kitchen Plug
FriendlyName1 Kitchen Coffee Maker
# Enable power monitoring (if supported)
PowerDelta1 10
TelePeriod 60
Once your Tasmota devices are in Home Assistant, the real fun begins. Here are practical automations that people actually use every day.
Use a Tasmota smart plug with energy monitoring to detect when an appliance (iron, curling iron, space heater) has been on too long. Turn it off automatically and send a notification.
automation:
trigger:
- platform: state
entity_id: switch.iron_plug
to: "on"
for: "01:00:00"
action:
- service: switch.turn_off
target:
entity_id: switch.iron_plug
- service: notify.mobile_app
data:
message: "Iron was on for over an hour. Turned it off."
A Tasmota plug with energy monitoring detects when your washing machine draws less than 5W (meaning the cycle is finished). No more forgetting wet laundry in the machine.
automation:
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_power
below: 5
for: "00:03:00"
condition:
- condition: state
entity_id: switch.washing_machine_plug
state: "on"
action:
- service: notify.mobile_app
data:
message: "Washing machine is done! Time to move the laundry."
Wire a Sonoff Mini behind your existing light switch. The physical switch still works (toggle mode), but now you can also control the light from your phone, voice, or automations.
automation:
trigger:
- platform: sun
event: sunset
offset: "-00:30:00"
action:
- service: switch.turn_on
target:
entity_id: switch.porch_light_relay
Tasmota plugs with energy monitoring report real-time wattage and total kWh. Combine that with the HA energy dashboard to track exactly how much each appliance costs you per month.
# In Tasmota console, set reporting interval
TelePeriod 60
PowerDelta1 10
# Then in HA, add the device to
# Settings > Dashboards > Energy
A Tasmota outdoor plug controls your holiday lights. They turn on at sunset, off at 11 PM, but you can override from your phone when you have guests over. Even works when your internet is down because everything is local.
automation:
- trigger:
platform: sun
event: sunset
action:
service: switch.turn_on
target:
entity_id: switch.outdoor_lights
- trigger:
platform: time
at: "23:00:00"
action:
service: switch.turn_off
target:
entity_id: switch.outdoor_lights
Want more automation ideas? Check out our 30 best Home Assistant automations guide.
One of Tasmota's killer features is rules: automations that run directly on the device, even without Home Assistant. This means your critical automations keep working no matter what.
Make your device remember its state and turn back on after a power outage:
PowerOnState 1
On a Sonoff TH with a temperature sensor, turn a fan on above 28C and off below 25C. Runs entirely on the device:
Rule1
ON AM2301#Temperature>28 DO Power1 1 ENDON
ON AM2301#Temperature<25 DO Power1 0 ENDON
Rule1 1
Automatically turn off after 30 minutes, no matter what turns it on:
Rule1 ON Power1#state=1 DO RuleTimer1 1800 ENDON
ON Rules#Timer=1 DO Power1 0 ENDON
Rule1 1
Keep firmware updated
Tasmota updates are easy. Just go to the device web UI > Firmware Upgrade > Start Upgrade. It pulls the latest version over the air. Do this every few months for security patches and new features.
Apply templates from blakadder.com
After flashing, your device needs a "template" that tells Tasmota which GPIO pins do what. Search your device model at templates.blakadder.com, copy the template, paste it into the Tasmota console. One command and your device works perfectly.
Use a dedicated IoT VLAN
Put your Tasmota devices on a separate Wi-Fi network (VLAN) with no internet access. They only need to reach your MQTT broker on the local network. This is the gold standard for smart home security.
Backup your device config
Before any firmware update, go to Configuration > Backup Configuration in the Tasmota web UI. Download the .dmp file. If anything goes wrong, you can restore your entire setup in seconds.
Consider Athom pre-flashed devices
If you do not want to flash devices yourself, Athom sells plugs, bulbs, and relay modules with Tasmota pre-installed. Slightly more expensive, but zero hassle. Available on AliExpress and their own store.
Here is a realistic weekend plan to go from zero to Tasmota-powered smart home.
Order an Athom pre-flashed smart plug (~$10)
Skip the flashing for your first device. Get it working, understand the concepts, then graduate to flashing your own later.
Set up Mosquitto MQTT broker in Home Assistant
Install it as an add-on, create a user, done. Takes 5 minutes.
Connect the plug, configure MQTT, add to HA
Power on the plug, connect to its Wi-Fi hotspot, set your network credentials, configure MQTT. Enable the Tasmota integration in HA.
Build your first automation
Start with the washing machine notification or auto-off timer. Something practical that makes your life better immediately.
Explore and expand
Add the plug to your energy dashboard. Try flashing a Sonoff Basic yourself. Check out more smart plug options.
Not sure if your current devices work with Home Assistant?
Run a Free Device Scan๐ก MQTT Guide
Set up Mosquitto and master MQTT topics.
ESPHome Guide
Build custom devices with ESP32 boards.
๐ Smart Plugs
Best plugs for Home Assistant with energy monitoring.
Energy Monitoring
Track power usage across your whole home.
๐ค 30 Automations
Best automation ideas for your smart home.
Cloud-Free Smart Home
Build a smart home that works without internet.
Starter Kit
Everything you need to get started with HA.
๐ฆ Installation Guide
Install Home Assistant on any hardware.