LHA

LHA

Lightweight Lua-based home automation platform

12stars
3forks
Last commit: 28d ago
Repo age: 7y old

LHA is a lightweight, single-process home automation engine written in Lua. It provides a scheduler, an embedded HTTP server and an extensions system to connect gateways, record sensor history and compose automations using Blockly or Lua scripts.

Key Features

  • Single-process Lua engine with built-in scheduler and HTTP server
  • Exposes Thing Description JSON API (Web of Things) for device descriptions
  • Blockly visual scripting plus Lua extensions for advanced automations
  • Web-based UI built with Vue, includes dashboards and charts for historical data
  • Supports gateways and protocols such as Hue/ConBee and Z-Wave (via Z-Wave JS) and integrates with MQTT
  • Records device property values into time-based log files for history and charting
  • Extension system to add device mappings and protocol adapters
  • Very small footprint (~5 MB) and runs on small boards (Raspberry Pi) or general Linux/Windows systems

Use Cases

  • Bridge and orchestrate devices across ZigBee, Z-Wave and Hue ecosystems in a single UI
  • Build custom automations using Blockly or Lua to react to sensor data and control actuators
  • Collect and visualize time-series sensor data locally for home monitoring and analysis

Limitations and Considerations

  • Uses file-based time logs rather than a full database, which may be less convenient for very large datasets
  • Device support depends on extension mapping files; adding or adapting some devices may require editing JSON mappings or writing extensions
  • Single-process architecture and minimal footprint are geared toward small to medium deployments; very large, high-throughput installations may face performance constraints

LHA is suitable for users who want a compact, extensible home automation engine with local control, scripting flexibility and support for common gateway integrations. Its small size and Lua-based extension model make it easy to run on low-power hardware and to customize for specific device sets.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Home Assistant

Home Assistant

Open-source home automation platform prioritizing local control

84.2k
36.5k
Last commit: 17h ago

Open-source platform to control smart home devices, build automations and dashboards, with broad third-party integrations and local-first privacy.

Alternative to:
Google Home
Google Home
+15
Frigate

Frigate

NVR with real-time local object detection for IP cameras

29.5k
2.7k
Last commit: 2d ago

Self-hosted NVR for IP cameras with real-time local AI object detection, recording, and low-latency live viewing, with MQTT and Home Assistant integration.

Alternative to:
Blue Iris
Blue Iris
+10
Tasmota

Tasmota

Open source firmware for ESP8266/ESP32 smart home devices

24.1k
5k
Last commit: 20h ago

Alternative open source firmware for ESP8266/ESP32 IoT devices, providing local control via MQTT/HTTP/Web UI, OTA updates, and built-in automation rules and timers.

Alternative to:
SONOFF Cloud (eWeLink)
SONOFF Cloud (eWeLink)
+6
Node-RED

Node-RED

Flow-based low-code tool for building event-driven automations

22.6k
3.8k
Last commit: 10d ago

Open-source, browser-based low-code platform and Node.js runtime for wiring devices, APIs and services into event-driven flows for automation, IoT and integrations.

Alternative to:
IFTTT
IFTTT
+13
ThingsBoard

ThingsBoard

Open-source IoT platform for device management and dashboards

20.9k
6k
Last commit: 2d ago

Open-source IoT platform for device management, telemetry collection, rule-based processing, alarms, and real-time dashboards using standard IoT protocols.

Alternative to:
ThingsBoard Cloud
ThingsBoard Cloud
+10
Zigbee2MQTT

Zigbee2MQTT

Zigbee-to-MQTT bridge for connecting Zigbee devices to MQTT

14.6k
1.9k
Last commit: 16d ago

Self-hosted Zigbee-to-MQTT bridge that lets you control Zigbee devices without vendor gateways and integrate them with home automation platforms via MQTT.

Alternative to:
Tuya Zigbee Gateway
Tuya Zigbee Gateway
+16