skillfed

HATasmota

Python module to help parse and construct Tasmota MQTT messages.

hatasmota v0.10.1 77.3K downloads/30d#14,543 on PyPI26
Permissive license MIT Active released

What it is and what it does

HATasmota is a Python library for parsing and constructing MQTT messages compatible with Tasmota, the open-source firmware for smart home devices. It sits between your Python application and Tasmota devices communicating over MQTT, handling message serialization and deserialization so you don't have to manually construct protocol-compliant payloads.

The package depends on voluptuous for schema validation and aiohttp for async HTTP operations, making it suitable for integration into async Python applications. It targets Python 3.13 and later, reflecting a modern Python stance. With low install friction and active maintenance, it's designed as a lightweight bridge for home automation and IoT projects that need to speak Tasmota's MQTT dialect.

Use it for:

  • Build a home automation controller that sends commands to Tasmota devices and parses their status updates over MQTT.
  • Integrate Tasmota smart home devices into a larger Python-based home assistant or orchestration system.
  • Parse incoming Tasmota MQTT telemetry and state messages for logging, analytics, or conditional automation.
  • Construct properly formatted MQTT payloads to control Tasmota relays, sensors, and other peripherals without manual protocol work.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Parses and constructs Tasmota MQTT messages, enabling Python applications to communicate with Tasmota smart home devices over MQTT.

Yes, if you are building a Python application that needs to communicate with Tasmota devices over MQTT. The package has low install friction, permissive licensing, active maintenance, no known vulnerabilities, and solves a specific integration problem. The Python 3.13 requirement is a hard constraint—verify your environment supports it before installing.

Install

hatasmota on PyPI

pip

pip install hatasmota

uv

uv add hatasmota

poetry

poetry add hatasmota

Installing HATasmota

Before you install

Low friction: pure-Python wheel with only two runtime dependencies (voluptuous and aiohttp). Repository is active with recent commits and no archived status, though the package has modest visibility at 26 stars.

License in practice

MIT license is permissive—you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install hatasmota
import hatasmota
# Use voluptuous and aiohttp to validate and send Tasmota MQTT messages

Requires Python 3.13 or later.

Verify before relying

  • Whether the package handles all Tasmota MQTT message types and edge cases in practice
  • Performance characteristics with high-volume MQTT message streams
  • Compatibility with specific Tasmota firmware versions

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.13)
Install friction low — pure-Python wheel
Runtime dependencies 2 — voluptuous, aiohttp
Maintenance actively maintained — 339 days since the last release
Last repo commit
First released
Downloads 77,271/month — #14,543 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: hatasmota-0.10.1-py2.py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules

Tags

tasmota mqtt parsersmart home mqtt messagestasmota device communicationmqtt message constructionhome automation mqtt librarytasmota protocol handler
mqttsmart-homeiot

More Python Modules packages