MHA allows to integrate an Micropython based device with Home Assistant using MQTT.
- 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
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 | β |
Example | Description |
---|---|
Binary sensor | Using the binary sensor as a door contact sensor. |
Here is the list of platform on which the library was tested:
- Micropython
- Python3
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.