Local-First Residential Lighting Control with Edge-IoT Integration: Design, Implementation, and Analysis of Remote–Local Interference
In smart lighting systems, separating wall control from network supervision can preserve residential lighting operation during network outages, but remote processing may still affect local responsiveness. This paper presents the design, implementation, and analysis of a low-cost, local-first lighting controller deployed in a Lebanese residence. An Arduino Mega 2560 interprets single, double, triple, and long presses from 19 wall pushbuttons and controls 32 solid-state relay channels, including 23 loaded lighting circuits. The pushbuttons operate at 5 V DC, with mains switching confined to the electrical panel. An ESP32-C3 bridge running ESPHome supports integration with Home Assistant and provides connectivity to the HomeLab Dashboard (HLDB), a custom web application; the bridge and HLDB form an edge layer inside the residence, while output authority remains with the Mega. Software-in-the-loop evaluation of the firmware examined gesture recognition, command handling, and persistence. A timed simulation identified interference between remote reporting and wall-input processing, blocking button sampling for up to 272 ms. Bench measurements on a hardware replica confirmed the 0.4 s single-click delay and the electrical interface. A 30-day audit of one household recorded 133 remote requests, of which 83.5% requested switching lights off. The firmware, simulation harness, scripts, and results accompany the manuscript.
Authors
- Oussama Accouche (ORCID: https://orcid.org/0000-0001-7759-5362)
Institutions
- American University of the Middle East (KW)
Publication Details
- Journal
- IoT
- Published
- 2026-11-29
- DOI
- https://doi.org/10.3390/iot7040105
- Primary Topic
- IoT-based Smart Home Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00