Home Assistant

Revision as of 12:38, 5 November 2026 by Mark (talk | contribs) (ru)
Other languages:
English • ‎русский

Интеграция 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 и новее).

What Home Assistant gets

Lights, dimmers, RGB and tunable white; relays and water valves; blinds and gates; climate controllers (modes, heating and cooling setpoints, automations as presets), air conditioners, fancoils, heating valves, ventilation; temperature, humidity, illumination and CO₂ sensors; motion, door and leak sensors; light schemes; scripts; wall switches, remotes and IR receivers (as events for automations). Service items are not passed on.

Connection

  1. 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.
  2. Install HACS in Home Assistant if it is not installed yet.
  3. In HACS find Larnitech, install it and restart Home Assistant.
    If it is not found, open ⋮ → Custom repositories, add https://github.com/larnitech/larnitech-ha with type Integration, install Larnitech and restart Home Assistant.
  4. Press Add to Home Assistant on the plugin page, or open Settings → Devices & services → Add integration → Larnitech.
  5. Enter the address, port 2041 and 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 example addr: "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_event event and appear as event entities.

Updating from version 1.1.x

Version 1.2.0 changed the integration domain from larnitech to larnitech_official.

  1. Remove the old Larnitech integration in Settings → Devices & services.
  2. Update to 1.2.0 in HACS and restart Home Assistant. Delete the custom_components/larnitech folder if it remains.
  3. Add the integration again.
  4. In automations and scripts replace the services with larnitech_official.* and the event with larnitech_official_event.