Skip to content

About

Home Assistant MQTT integration for MicroPython

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
Switch The LED that's controlled by the Home Assistant.

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

About

Home Assistant MQTT integration for MicroPython

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages