mega
andvikt/mega_hacs · vv1.1.7
MegaD HomeAssistant integration
In Apple Home through HomeKit Bridge
What HomeKit Bridge makes of each kind of entity this integration creates, read from its source code. A device only gets the ones that apply to it.
| Entity | Shows up as | Note |
|---|---|---|
light | Light | |
switch | Switch or outlet | |
binary_sensor | Sensor (motion, contact, leak, smoke…) | |
sensor | Sensor (temperature, humidity, air quality…) |
What people report
Russian MegaD controllers work through the integration, but the maintainer is mostly inactive. Binary-sensor invert and expander input states are recurring complaints.
- Works1
- Partly works2
- Requested1
- Won’t be supported1
| Device | In Home Assistant | In Apple Home | What they said | Source |
|---|---|---|---|---|
| MegaD-2561 controller | Works Local | Works with 16I-XT expander ports once the INT port is configuredSaved copyОписание MegaD 2561 + расширитель MegaD-16I-XT. Датчик движения подключен к порту 6 расширителя. При включении, датчик движения находится в состоянии ON, при обнаружении движения переходит в состояние OFF. Значения корректны в интерфейсе меги, но не отражаются в Hass: 1. При инициализации, состяние binary_sensor'а - off 2. При обнаружении движения, равно как и по таймауту - состояние не меняется. Версии систем Enviroment: Hass OS + Raspberry HA version: core-2021.8.8 mega_hacs version: 1.0.8 megad firmware version: 4.51b7 используется mqtt: false Ожидаемое поведение Исходное состояние сенсора … Excerpt saved from GitHub on 2026-10-23. | Issue #54 · 2021-08 | |
| MegaD-16I-XT input expander | Partly works Local | Port states wrong at startup unless the INT port notifies the serverSaved copyОписание К 2561 подключены 2 расширителя 16I-XT к портам 31 и 32. Интеграция неверно определяет состояние сенсоров. Версии систем Enviroment: raspberry/linux/windows/macos/docker HA version: 2023.7.3 mega_hacs version: 1.32.1 megad firmware version: 4.59b7 используется mqtt: false Screenshots LOG 2023-07-27 13:46:38.227 DEBUG (MainThread) [custom_components.mega.mega-43] poll 2023-07-27 13:46:38.228 DEBUG (MainThread) [custom_components.mega.mega-43] request: http://192.168.1.43/sec/?pt=31&cmd=get 2023-07-27 13:46:38.253 DEBUG (MainThread) [custom_components.mega.mega-43] response … Excerpt saved from GitHub on 2026-10-23. | Issue #150 · 2023-07 | |
| MegaD-16U-XT PWM expander | Partly works Local | PWM ports imported as dimmable even if set otherwise; PWM-off PR still openSaved copyСтолкнулся с такой проблемой - порты универсальных расширителей с поддержкой ШИМ, в моем случае MegaD-16U-XT импортировались в home assistant с поддержкой диммирования, а настроены в самом MegaD они были как switch (Type - SW), т.к. установлены туда модули с обычными реле. При этом из HA было невозможно ими управлять, т.к. включение даже на 100% посылало команду с максимальным значением для ШИМ порта (4095 вроде), вместо 1. Поэтому MegaD не реагировала на эти команды Я добавил возможность выключить вручную поддержку ШИМ у портов через кастомизацию в конфиге для доменов light и switch путем … Excerpt saved from GitHub on 2026-10-23. | PR #172 · 2024-03 | |
| OPT3001 I2C light sensor and access-control readers | Requested | Asked to be added; still openSaved copyВозможно ли добавить - Датчик освещенности OPT3001 (цифровой интерфейс I2C), и считыватели СКУД. Excerpt saved from GitHub on 2026-10-23. | Issue #154 · 2023-09 | |
| MegaD binary sensor invert (motion sensor on P31) | Won’t be supported | Invert only works on relays, not binary sensors; owner has no timeSaved copyОписание Не могу понять причину по которой не инвертируются значения с бинарных датчиков. Проблема с датчиком движения на порту P31 ID:200 Версии систем Enviroment: linux HA version: 2022.9.2 mega_hacs version: 1.1.4 megad firmware version: 4.56b9 используется mqtt: false Ожидаемое поведение При получении значения ON, при invert: true должно выставляться off в HA Screenshots ``` 2022-09-13 21:41:40.002 DEBUG (MainThread) [custom_components.mega.200] poll 2022-09-13 21:41:40.002 DEBUG (MainThread) [custom_components.mega.200] request: http://192.168.100.200/sec/?cf=7&stime=21:41:40 2022-09-13 … Excerpt saved from GitHub on 2026-10-23. | Issue #126 · 2022-09 |
Gathered from GitHub issues, pull requests, discussions and docs, and from r/homeassistant. These are individual reports, so check the linked thread and the date before you buy.
How it connects
Connection not stated
The integration doesn’t declare how it connects.
Details
| Installs (analytics) | 45 (0.01%) |
|---|---|
| GitHub stars | 135 |
| Latest version | v1.1.7 (2024-03-12) |
| Set up in the UI | Yes |
| Maintainers | @andvikt |
Notable forks
Forks with stars, or with code pushed at least 90 days after the original’s last push. Useful when the original goes quiet.
| Fork | Stars | Last push | Description |
|---|---|---|---|
| Pshatsillo/mega_hacs Newer code | ★ 22 | 2025-09-16 | MegaD HomeAssistant integration |
| stas251/mega_hacs Newer code | ★ 4 | 2026-03-13 | MegaD HomeAssistant integration - для тех у кого престала работать интеграция после обновления 2026.3.1 |
| anpavlov/mega_hacs Newer code | ★ 1 | 2024-10-22 | MegaD HomeAssistant integration |
| volodymyr-matyash/mega_hacs Newer code | ★ 1 | 2026-08-16 | MegaD HomeAssistant integration |
| den-dmitriev/mega_hacs Newer code | ★ 0 | 2026-05-25 | MegaD HomeAssistant integration |
In ReReHome
Whatever HomeKit Bridge shares reaches Apple Home as normal HomeKit accessories behind your Home Assistant bridge, so ReReHome shows and controls them like any other.
Bridges get their own settings page listing the accessories behind them.
Sources
- Documentation: https://github.com/andvikt/mega_hacs
- Source code: https://github.com/andvikt/mega_hacs
- Issues: https://github.com/andvikt/mega_hacs/issues
- HACS: https://hacs.xyz