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.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| micropython_home_assistant-0.1.0.tar.gz | 190.9 kB | Without provenance | Details for micropython_home_assistant-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| micropython_home_assistant-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for micropython_home_assistant-0.1.0-py3-none-any.whl |
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
|
Security for micropython-home-assistant 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.