Skip to main content

MicroPython Home Assistant integration 🏠

MHA allows to integrate an Micropython based device with Home Assistant using MQTT.

Features

  • Two-way communication (state reporting and command execution)
  • MQTT discovery (device is added to the Home Assistant panel automatically)
  • MQTT Last Will and Testament
  • Support for custom MQTT messages (publishing and subscribing)
  • Auto reconnect with MQTT broker
  • Reporting availability (online/offline states) of a device

Supported HA types

Home Assistant type Supported
Alarm control panel ❌
Binary sensor ✅
Button ❌
Camera ❌
Cover ❌
Device tracker ❌
Device trigger ❌
Event ❌
Fan ❌
Humidifier ❌
Image ❌
HVAC ❌
Lawn mower ❌
Light ❌
Lock ❌
Number ❌
Scene ❌
Select ❌
Sensor ❌
Siren ❌
Switch ❌
Update ❌
Tag scanner ❌
Text ❌
Vacuum ❌
Valve ❌
Water heater ❌

Examples

Example Description
Binary sensor Using the binary sensor as a door contact sensor.

Compatible platform

Here is the list of platform on which the library was tested:

  • Micropython
  • Python3

Donate

If you think this project is helpful to you, you can donate to us to encourage the project to continue to develop and become more complete.

  • PayPal

    Donate

  • WeChat

  • Alipay

Metadata

Release files for micropython-home-assistant 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for micropython-home-assistant 0.1.0
File Size Uploaded
micropython_home_assistant-0.1.0.tar.gz 190.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for micropython-home-assistant 0.1.0
File Interpreter ABI Platform
micropython_home_assistant-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 204.6 kB

Release files / micropython_home_assistant-0.1.0.tar.gz

Download URL micropython_home_assistant-0.1.0.tar.gz
Size 190.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3fe6bef641da1c017b170d10bddc487019ed2855cbd2b7e09f270246d3226c54
BLAKE2b-256 checksum
How to use checksums
56f53419ec65b8ec47a52d15f1e131a49d3696da7637299db9899c5656423526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / micropython_home_assistant-0.1.0-py3-none-any.whl

Download URL micropython_home_assistant-0.1.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6a40d462891a2694c6afc6bce49602c83241d92af65f70412d780326a81011c
BLAKE2b-256 checksum
How to use checksums
c3b77fef5d68781fb4bb30ccdff84422bf8b0f09980772b4a6f1d2f384c771f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page