Home Assistant MQTT integration for MicroPython
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for micropython_home_assistant-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe6bef641da1c017b170d10bddc487019ed2855cbd2b7e09f270246d3226c54 |
|
MD5 | 3f44f5d5d61b37d5840d8511d6edcd06 |
|
BLAKE2b-256 | 56f53419ec65b8ec47a52d15f1e131a49d3696da7637299db9899c5656423526 |
Close
Hashes for micropython_home_assistant-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6a40d462891a2694c6afc6bce49602c83241d92af65f70412d780326a81011c |
|
MD5 | 66da66202a83e68c0233acc2ade42747 |
|
BLAKE2b-256 | c3b77fef5d68781fb4bb30ccdff84422bf8b0f09980772b4a6f1d2f384c771f3 |