LHA
Lightweight Lua-based home automation platform
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:
Similar Services

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

Frigate
NVR with real-time local object detection for IP cameras
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.
Tasmota
Open source firmware for ESP8266/ESP32 smart home devices
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.

Node-RED
Flow-based low-code tool for building event-driven automations
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.


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

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