Skip to content

πŸ’‘ Smart TASMOTA Switch ready for Home Assistant! Automate your home with energy-saving MQTT controls. πŸ‡§πŸ‡¬πŸ‡¬πŸ‡§ Dual language | YAML powered | Plug & play

License

Notifications You must be signed in to change notification settings

Bacard1/TASMOTA-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BANNER

πŸ€– OLD "SONOFF" WITH NEW TASMOTA + HASS INTEGRATION

License: MIT GitHub last commit hacs_badge

Home Assistant Donate via PayPal Script

Π‘ΡŠΠ»Π³Π°Ρ€ΡΠΊΠΈ Deutch English

This repository provides a complete and ready-to-use configuration for integrating TASMOTA-powered smart switches into Home Assistant. It includes automation examples, MQTT configuration tips, and YAML templates designed to simplify the setup and control of your smart switches.

The goal of this project is to offer energy-efficient, easy-to-configure, and reliable automation for everyday smart home scenarios. Whether you're turning on lights, managing appliances, or just learning how to use TASMOTA with Home Assistant, this repository gives you a solid foundation.

πŸ“Œ Features:

Hass-ready YAML scripts for switch control

Automation for device states

MQTT integration setup

Energy monitoring examples

Bulgarian and English support

πŸ“¦ Contents


πŸ•·οΈ TASMOTA (Software):

Flashing SONOFF devices gives you full local control, and the ability to integrate them into Home Assistant ensures you won’t miss the cloud functionality they originally come with.

βš™οΈ [Sonoff BasicR2][sonoff]:

Sonoff BasicR2 This is the device I will flash with TASMOTA, and the reasons are:
- It takes too long to go from offline to online
- Huge delay when switching
- Often requires reconfiguration

Caution

Before proceeding, disconnect the ["Sonoff BasicR2"][sonoff] from the power supply!!!


πŸ”— [AZDelivery TTL Serial Adapter][azd]

AZDelivery TTL Serial Adapter AZDelivery TTL Serial Adapter is the tool that will be used to connect, communicate, and flash the Sonoff BasicR

πŸ’Ύ Drivers:

Before connecting, you need to install the following drivers: "CP2102 drivers:", "CH342, CH343, CH9102 drivers:", and "CH340, CH341 drivers:". After installation, restart your operating system before proceeding.

🧩 Installation:

Caution

Before continuing, make sure the ["Sonoff BasicR2"][sonoff] is disconnected from the power supply!!!

Note

To connect the ["Sonoff BasicR2"][sonoff] to the ["AZDelivery TTL Serial Adapter"][azd], you will need access to the circuit board of the ["Sonoff BasicR2"][sonoff], meaning you’ll have to disassemble it!

Check the wiring diagram in the image below!

πŸ†’WIRING DIAGRAM

Wiring Diagram

Warning

Note that RX <--> TX are swapped. If you follow the diagram, you won’t have communication issues with the ["Sonoff BasicR2"][sonoff].

πŸ’Š Flashing Tool:

  • Tasmota Web Installer - Flash Tasmota using a Chromium-based browser for ESP82xx and ESP32
  • Tasmotizer - Flashing and firmware download tool for ESP82xx only. (Windows, Linux, or Mac)
  • ESP-Flasher - GUI flasher for Tasmota based on ESPTOOL.py for ESP82XX and ESP32. (Windows, Linux, or Mac)
  • Esptool.py - Official flashing tool from Espressif for ESP82xx and ESP32.

πŸ’‰ Firmware:

Download the latest version of the file named "tasmota.bin"

For this project, I used the Tasmota Web Installer, which doesn’t require manual firmware download. It offers a selection of firmware to choose from:

demo Tasmota Web Installer

TASMOTA Integration and Configuration in Home Assistant:

Installing this add-on is quite easy and is no different than installing any other Home Assistant add-on.

  • Click the Home Assistant My button below to open the add-on in your Home Assistant instance.

TO ADD-ON

  • Open the add-on in your Home Assistant instance.

  • Click the "Install" button to install the add-on.

  • Start the "TasmoAdmin" add-on.

  • Check the "TasmoAdmin" logs to see if everything went smoothly.

  • By default, the username is "admin" and the password is "password".

TasmoAdmin

Integration is just as easy. Click the button below:

ADDONS

TO INTEGRATION

Note

This integration will fully connect Home Assistant to all devices added via the TASMOTA add-on. Restart Home Assistant and enjoy full control of your devices.

Tip

If you liked this project, you can find more interesting projects made by me HERE.
If you have any difficulties or questions, don’t hesitate to contact me.

About

πŸ’‘ Smart TASMOTA Switch ready for Home Assistant! Automate your home with energy-saving MQTT controls. πŸ‡§πŸ‡¬πŸ‡¬πŸ‡§ Dual language | YAML powered | Plug & play

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published