Hey in this post I will tell and show you what Tasmota is, as well as the easiest way to flash compatible devices with a new tool called Tasmotizer.

What is Tasmota?

If you are new in the Smart Home & IoT world you probably wonder what Tasmota is?

With one sentence – It is an alternative open source firmware that allows you to locally control your ESP8266 based devices using MQTT, HTTP or Web Interface. 

What is ESP8266 device then?

This probably leads to your next question, What is ESP8266 device? The ESP8266 is a low-cost Wi-Fi microchip with full TCP/IP stack and microcontroller capability.  So an ESP8266 device is simply a device with ESP8266 chip inside it.

To demonstrate you the best what Tasmota is, I’ll just flash a D1 Mini device to show you and after that we will continue to talk about Tasmota and Tasmotizer

Prerequisites

To flash a device with Tasmota you will need:

These two were must haves, next items are kind of optional and depending of the device that you want to flash you may need them as well:

  • Serial-to-USB Adapter (optional) – To upload Tasmota firmware on an ESP8266 device without USB, you need a serial-to-usb adapter to start the initial communication with that device. Fortunately these adapters are really cheap. The FTDI FT232RL adapter below is exactly the same as main adapter and it works great, so if you want to buy one I highly recommend it.
  • Soldering Tools (optional) – Some ESP8266 devices doesn’t have USB ports on them and the only way to flash them is to hold several tiny wires for a minute without moving anything or eventually you can solder these wires, so you don’t have to do Houdini tricks.
  • Wires (optional)
    • Jumper wires
      • With soldering or not – You will need some kind of wires. Jumper wires (also called DuPont wires) will do the job and in some cases are more practical than soldering and desoldering

With that being said let’s start flashing. 

Steps to execute:

  • Go to GitHub site (github.com) and download:
    • Tasmota firmware, generally you need tasmota.bin file – https://github.com/arendst/Tasmota/releases
    • Tasmotizer – https://github.com/tasmota/tasmotizer
      • For Windows – download & start the EXE file from here – https://github.com/tasmota/tasmotizer/releases
      • For Linux & MacOS (you need pip3 installed on your system)
        • From terminal execute: 
          • pip3 install tasmotizer 
          • and then simply run tasmotizer.py (to find tasmotizer.py on MacOS you can use: find / -name tasmotizer.py)
  • Connect your ESP8266 device to your computer either:
    • Directly via the USB port on the device – as with the D1 mini or NodeMCU.
    • Or using Serial-to-USB adapter and connecting:
      • VCC on Serial-to-USB adapter to VCC on ESP8266 based device.
      • GND on Serial-to-USB adapter to GND on ESP8266 based device.
      • RX on Serial-to-USB adapter to TX on ESP8266 based device.
      • TX on Serial-to-USB adapter to RX on ESP8266 based device.
      • You also have to put the ESP8266 device in flash mode by holding down the board button as you insert the VCC pin (or by connecting GPIO0 to GND with a wire) and then you can let go. 
  • Start Tasmotizer then click Refresh button to find the newly attached device.
  • Click Open button and chose your firmware, in general this is tasmota.bin file that you downloaded in the first step.
  • Check the “Backup original firmware” tick and finally click on the Tasmotize! button.
  • Restart your ESP8266 device and connect to the WIFI hotspot that your device will create for initial configuration.
  • After successful connection to the device WIFI, you can enter your real/local/home WIFI SSID and password click save – the device will auto restart and will connect your home WIFI.
  • Find the assigned IP of the device by either log in to your router or by using any kind of network scanner.
  • Enter the IP of the device in a Web Browser and you will open the Tasmota web interface from where you can configure your device as I’m showing in the video.

You may ask yourself why to bother installing Tasmota? 

Here are some things that can make you join the Tasmota team:

  • Privacy – Everything stays locally in your home network and no information is sent to the Cloud.
  • OTA updates – once Tasmota is installed you can update it over-the-air afterwards.
  • Templates for easy device configuration – When you flash a Tasmota device chances are that there is already a template for your device that you could apply and everything will be immediately configured.
  • You can enable automations using timers, rules or scripts.
  • Integration with home automation solutions – you can locally control Tasmota devices from your Home Assistant, Node-Red, OpenHab, you name it.
  • Tasmota supports up to two WIFI access points.
  • Wemo and Hue emulation – Tasmota devices can emulate themselves in order Amazon Alexa, to be able to find and control them.

You can also attach the following sensors on ESP8266 devices flashed with Tasmota :

  • Motion sensors,
  • Temperature and humidity sensors,
  • Smoke detectors,
  • Relays and so on and so on.

Any sort of engagement on this site and my YouTube channel does really help out a lot with the YouTube algorithm, so make sure you hit the subscribe, Like and Bell buttons If you enjoy this video post.

Enter your questions in the comments section below, if you have an Idea for my next video – please share it there as well – all of this will help me a lot. Also feel free to add me on Twitter by searching for KPeyanski. I post there pretty much daily. 

If you like my work check my other posts here

I really hope that you find this information useful and you now know what Tasmota is and how to flash an ESP8266 device.

Thank you for reading, stay safe and see you next time.

Happy New 2020 Year,

Kiril


4 Comments

Pace Bonner · 29/01/2020 at 6:16 am

Love your software. Made flashing so much easier. How can I donate?

    Kiril Peyanski · 30/01/2020 at 8:26 am

    Thank you. The software is not mine. I’m just showing how you can work with it. Later today I’ll create a support section in the site.

Austin Bossart · 06/04/2020 at 2:06 am

Thank you for the article, you are an inspiration to us all.

Cash · 22/05/2020 at 4:53 am

I just cant get past the apparent problem of a Python version less than 3.6. I have installed python3.8.3 and made it my default version.

pi@raspberrypi:/usr/bin $ python –version
Python 3.8.3

pi@raspberrypi:~ $ pip3 install tasmotizer
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with ‘-m pip’ instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting tasmotizer
Using cached https://www.piwheels.org/simple/tasmotizer/tasmotizer-1.1-py3-none-any.whl (195 kB)
ERROR: Package ‘tasmotizer’ requires a different Python: 3.5.3 not in ‘>=3.6’

It’s probably a configuration problem on my end but I’m unable to resolve with my expertise (lack of). Any help would be appreciated.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.