HATasmota
Python module to help parse and construct Tasmota MQTT messages.
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 hatasmotauv
uv add hatasmotapoetry
poetry add hatasmotaInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
tuya-device-sharing-sdkA Python SDK for Tuya's Open API that handles…
permissive · top 15,000 on PyPI
meross-iotA Python library for controlling Meross IoT…
permissive · top 15,000 on PyPI
pyoverkizAn asynchronous Python client for the OverKiz…
permissive · top 15,000 on PyPI
pylutron-casetaA Python API for controlling Lutron Caséta…
permissive · top 15,000 on PyPI
pymysensorsPython API for communicating with MySensors…
permissive · top 15,000 on PyPI
tb-paho-mqtt-clientProvides an MQTT client library implementing…
copyleft · top 15,000 on PyPI
pymammotionPyMammotion provides a Python API to control…
copyleft · top 15,000 on PyPI
tb-mqtt-clientPython client SDK for ThingsBoard IoT platform,…
permissive · top 15,000 on PyPI
dsmr-parserParses Dutch Smart Meter Requirements (DSMR)…
permissive · top 15,000 on PyPI
aiohomematicAn async Python library for controlling and…
permissive · top 15,000 on PyPI