Интеграция Larnitech связывает контроллер Larnitech с Home Assistant через локальный API2 (WebSocket, порт 2041). Облако и MQTT-брокер не нужны, изменения мгновенно доходят в обе стороны.
- Все элементы проекта появляются в Home Assistant, сгруппированные по комнатам (зонам) Larnitech.
- Устройства Home Assistant, выбранные в настройках интеграции, становятся элементами Larnitech: они видны в приложении Larnitech и доступны в сценариях и Blockly.
- Можно подключаться и через интернет, по адресу
SERIAL.in.larnitech.com:8443.
Поддерживаемые контроллеры
DE-MG, DE-MG.plus, DE-MG.knx, DE-MG.dali, Metaforsa, MF-14 (LT Setup 4.527 и новее).
Что получает Home Assistant
Светильники, диммеры, RGB и регулируемый белый; реле и краны воды; шторы и ворота; климат-контроллеры (режимы, уставки отопления и охлаждения, автоматизации как пресеты), кондиционеры, фанкойлы, клапаны отопления, вентиляция; датчики температуры, влажности, освещённости и CO₂; датчики движения, открытия и протечки; световые сцены; сценарии; настенные выключатели, пульты и ИК-приёмники (как события для автоматизаций). Служебные элементы не передаются.
Connection
- In LT Setup open Plugins → Home Assistant. If API access is off, press Enable API access. The page shows the controller address (local and over the internet), the port and the API key.
- Install HACS in Home Assistant if it is not installed yet.
- In HACS find Larnitech, install it and restart Home Assistant.
If it is not found, open ⋮ → Custom repositories, addhttps://github.com/larnitech/larnitech-hawith type Integration, install Larnitech and restart Home Assistant. - Press Add to Home Assistant on the plugin page, or open Settings → Devices & services → Add integration → Larnitech.
- Enter the address, port
2041and the API key from step 1.
Integration options
- Home Assistant devices in Larnitech: Home Assistant entities (lights, switches, covers, climate, locks, fans, sensors) that are registered on the controller as Larnitech items. Commands from Larnitech control them in Home Assistant.
- Hide element types: Larnitech item types that are not added to Home Assistant.
Services and events
larnitech_official.set_status: sends any status to an item, for exampleaddr: "585:17",status: {"state": "on", "level": 50}.larnitech_official.reload_devices: reloads the item list after the project was changed in LT Setup.- Wall switches, remotes and IR receivers fire the
larnitech_official_eventevent and appear as event entities.
Updating from version 1.1.x
Version 1.2.0 changed the integration domain from larnitech to larnitech_official.
- Remove the old Larnitech integration in Settings → Devices & services.
- Update to 1.2.0 in HACS and restart Home Assistant. Delete the
custom_components/larnitechfolder if it remains. - Add the integration again.
- In automations and scripts replace the services with
larnitech_official.*and the event withlarnitech_official_event.