{"id":15286922,"url":"https://github.com/lbuque/micropython-home-assistant","last_synced_at":"2025-04-12T08:32:49.576Z","repository":{"id":233275627,"uuid":"786347480","full_name":"lbuque/micropython-home-assistant","owner":"lbuque","description":"Home Assistant MQTT integration for MicroPython","archived":false,"fork":false,"pushed_at":"2025-02-19T16:29:50.000Z","size":191,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T18:51:18.328Z","etag":null,"topics":["esp32","home-assistant","micropython","mqtt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lbuque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-14T07:07:38.000Z","updated_at":"2025-02-19T16:29:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f28f4ec-2cb0-4db4-ad77-1228f10ae66a","html_url":"https://github.com/lbuque/micropython-home-assistant","commit_stats":null,"previous_names":["lbuque/micropython-home-assistant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbuque%2Fmicropython-home-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbuque%2Fmicropython-home-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbuque%2Fmicropython-home-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbuque%2Fmicropython-home-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbuque","download_url":"https://codeload.github.com/lbuque/micropython-home-assistant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248539784,"owners_count":21121233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","home-assistant","micropython","mqtt"],"created_at":"2024-09-30T15:19:07.463Z","updated_at":"2025-04-12T08:32:49.552Z","avatar_url":"https://github.com/lbuque.png","language":"Python","funding_links":["https://paypal.me/lbuque?country.x=C2\u0026locale.x=zh_XC"],"categories":[],"sub_categories":[],"readme":"# MicroPython Home Assistant integration 🏠\n\nMHA allows to integrate an Micropython based device with Home Assistant using MQTT.\n\n## Features\n\n* Two-way communication (state reporting and command execution)\n* MQTT discovery (device is added to the Home Assistant panel automatically)\n* MQTT Last Will and Testament\n* Support for custom MQTT messages (publishing and subscribing)\n* Auto reconnect with MQTT broker\n* Reporting availability (online/offline states) of a device\n\n## Supported HA types\n\n| Home Assistant type     | Supported |\n| ----------------------- | :--------: |\n| [Alarm control panel][] |     ❌     |\n| [Binary sensor][]       |     ✅     |\n| [Button][]              |     ❌     |\n| [Camera][]              |     ❌     |\n| [Cover][]               |     ❌     |\n| [Device tracker][]      |     ❌     |\n| [Device trigger][]      |     ❌     |\n| [Event][]               |     ❌     |\n| [Fan][]                 |     ❌     |\n| [Humidifier][]          |     ❌     |\n| [Image][]               |     ❌     |\n| [HVAC][]                |     ❌     |\n| [Lawn mower][]          |     ❌     |\n| [Light][]               |     ❌     |\n| [Lock][]                |     ❌     |\n| [Number][]              |     ❌     |\n| [Scene][]               |     ❌     |\n| [Select][]              |     ❌     |\n| [Sensor][]              |     ❌     |\n| [Siren][]               |     ❌     |\n| [Switch][]              |     ✅     |\n| [Update][]              |     ❌     |\n| [Tag scanner][]         |     ❌     |\n| [Text][]                |     ❌     |\n| [Vacuum][]              |     ❌     |\n| [Valve][]               |     ❌     |\n| [Water heater][]        |     ❌     |\n\n[Alarm control panel]: https://www.home-assistant.io/integrations/alarm_control_panel.mqtt/\n[Binary sensor]: https://www.home-assistant.io/integrations/binary_sensor.mqtt/\n[Button]: https://www.home-assistant.io/integrations/button.mqtt/\n[Camera]: https://www.home-assistant.io/integrations/camera.mqtt/\n[Cover]: https://www.home-assistant.io/integrations/cover.mqtt/\n[Device tracker]: https://www.home-assistant.io/integrations/device_tracker.mqtt/\n[Device trigger]: https://www.home-assistant.io/integrations/device_trigger.mqtt/\n[Event]: https://www.home-assistant.io/integrations/event.mqtt/\n[Fan]: https://www.home-assistant.io/integrations/fan.mqtt/\n[Humidifier]: https://www.home-assistant.io/integrations/humidifier.mqtt/\n[Image]: https://www.home-assistant.io/integrations/image.mqtt/\n[HVAC]: https://www.home-assistant.io/integrations/climate.mqtt/\n[Lawn mower]: https://www.home-assistant.io/integrations/lawn_mower.mqtt/\n[Light]: https://www.home-assistant.io/integrations/light.mqtt/\n[Lock]: https://www.home-assistant.io/integrations/lock.mqtt/\n[Number]: https://www.home-assistant.io/integrations/number.mqtt/\n[Scene]: https://www.home-assistant.io/integrations/scene.mqtt/\n[Select]: https://www.home-assistant.io/integrations/select.mqtt/\n[Sensor]: https://www.home-assistant.io/integrations/sensor.mqtt/\n[Siren]: https://www.home-assistant.io/integrations/siren.mqtt/\n[Switch]: https://www.home-assistant.io/integrations/switch.mqtt/\n[Update]: https://www.home-assistant.io/integrations/update.mqtt/\n[Tag scanner]: https://www.home-assistant.io/integrations/tag.mqtt/\n[Text]: https://www.home-assistant.io/integrations/text.mqtt/\n[Vacuum]: https://www.home-assistant.io/integrations/vacuum.mqtt/\n[Valve]: https://www.home-assistant.io/integrations/valve.mqtt/\n[Water heater]: https://www.home-assistant.io/integrations/water_heater.mqtt/\n\n## Examples\n\n| Example                                    | Description                                       |\n| ------------------------------------------ | ------------------------------------------------- |\n| [Binary sensor](examples/binary_sensor.py) | Using the binary sensor as a door contact sensor. |\n| [Switch](examples/switch.py) | The LED that's controlled by the Home Assistant. |\n\n## Compatible platform\n\nHere is the list of platform on which the library was tested:\n\n- Micropython\n- Python3\n\n## Donate\n\nIf 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.\n\n- PayPal\n\n    [![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://paypal.me/lbuque?country.x=C2\u0026locale.x=zh_XC)\n\n- WeChat\n\n    ![](./assets/img/weixin.jpg)\n\n- Alipay\n\n    ![](./assets/img/alipay.jpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbuque%2Fmicropython-home-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbuque%2Fmicropython-home-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbuque%2Fmicropython-home-assistant/lists"}