{"id":28858170,"url":"https://github.com/fsolardev/litehouse","last_synced_at":"2026-05-07T13:48:31.699Z","repository":{"id":300103478,"uuid":"1005212044","full_name":"fsolardev/LiteHouse","owner":"fsolardev","description":"Maturitní práce z roku 2025 na Gymnáziu v Šumperku","archived":false,"fork":false,"pushed_at":"2025-06-19T22:13:30.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-19T22:31:48.090Z","etag":null,"topics":["html-css-javascript","json","python","raspberrypi"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fsolardev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-19T21:29:19.000Z","updated_at":"2025-06-19T22:13:33.000Z","dependencies_parsed_at":"2025-06-19T22:42:26.864Z","dependency_job_id":null,"html_url":"https://github.com/fsolardev/LiteHouse","commit_stats":null,"previous_names":["fsolardev/litehouse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fsolardev/LiteHouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsolardev%2FLiteHouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsolardev%2FLiteHouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsolardev%2FLiteHouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsolardev%2FLiteHouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fsolardev","download_url":"https://codeload.github.com/fsolardev/LiteHouse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsolardev%2FLiteHouse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260862913,"owners_count":23074182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-css-javascript","json","python","raspberrypi"],"created_at":"2025-06-20T02:05:26.464Z","updated_at":"2026-05-07T13:48:31.694Z","avatar_url":"https://github.com/fsolardev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiteHouse\n\n**LiteHouse** is a smart home lighting control system designed as a graduation project in 2025 at **Gymnázium Šumperk**. The project enables real-time control of WiFi-enabled devices such as **WLED**, **Tasmota**, and **OpenBeken** using a modern web interface and MQTT communication protocol. Unlike systems such as **HomeAssistant**, which consume significant memory and CPU resources on Raspberry Pi devices, LiteHouse is designed to be minimal, fast, and focused purely on smart lighting control using MQTT.\n\n---\n\n## 🧠 Project Description\n\nThe system is built to run smoothly on Raspberry Pi devices, making it ideal for low-power, always-on smart home hubs. It has been tested on:\n\n- Raspberry Pi 4 Model B (8GB of RAM)\n\nThe system is split into a frontend and backend that communicate over REST API and MQTT. Users can:\n\n- Control individual devices\n- Adjust color and brightness\n- Toggle power\n- Create and save scenes\n- Apply scenes dynamically\n- Use the system on mobile and desktop with responsive UI\n\nThis project demonstrates practical use of MQTT protocols, Flask backend, and dynamic web control for embedded systems.\n\n---\n\n## ✨ Features\n\n- Real-time control of WLED, Tasmota, and OpenBeken devices\n- Per-device control for power, RGB color, and brightness\n- Scene saving and applying (with persistent JSON storage)\n- Mobile-friendly interface with touch and haptic support\n- Automatic recognition of device types from settings\n- Modular architecture for easy device extension\n- Full control via local network without cloud dependency\n\n---\n\n## 🛠️ Technologies Used\n\n- **Python 3**\n- **Flask** (REST API backend)\n- **paho-mqtt** (MQTT communication)\n- **HTML/CSS/JS** frontend\n- **iro.js** (color picker)\n- **Tasmota / WLED / OpenBeken** devices\n- **Raspberry Pi** (recommended for deployment)\n\n---\n\n## 🗂️ File Structure\n\n```\nLiteHouse/\n│\n├── backend/\n│   ├── app.py               # Flask API server\n│   ├── main.py              # Scene control and MQTT logic\n│   ├── mqtt_handler.py      # Device-specific MQTT command mapping\n│   ├── settings.json        # Configuration of devices and MQTT broker\n│   ├── scenes.json          # Scene storage (power, color, brightness)\n│   └── requirements.txt         # Python dependencies\n│\n├── frontend/\n│   ├── index.html           # Main UI\n│   ├── script.js            # UI logic, API calls\n│   ├── styles.css           # UI styles\n│   └── iro.min.js           # Color picker library\n└──\n```\n\n---\n\n## ⚙️ Setup Instructions\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/fsolardev/litehouse.git\ncd litehouse/backend\n```\n\n### 2. Set Up Virtual Environment (Optional but recommended)\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n### 3. Configure Devices and MQTT Broker\n\nEdit the `settings.json` file:\n\n```json\n{\n  \"mqtt\": {\n    \"broker\": \"192.168.x.x\",\n    \"port\": 1883,\n    \"username\": \"leave_blank_if_not_requiered\",\n    \"password\": \"leave_blank_if_not_requiered\"\n  },\n  \"devices\": [\n    {\n      \"id\": \"wled_device\",\n      \"name\": \"WLED Desk\",\n      \"type\": \"WLED\",\n      \"topic\": \"wled_device\"\n    }\n  ]\n}\n```\nChatGPT will always help you with the configuration of your devices ;)\n\n### 4. Run the Backend Server\n\n```bash\npython app.py\n```\n\nIt will run on: `http://\u003craspberry-pi-ip\u003e:5000`\n\n### 5. Open the Web Interface\n\nIn your browser open the url `frontend/` folder and open `index.html` in a browser (Chrome recommended).  \nFor mobile, deploy via `nginx` or similar local HTTP server if needed.\n\n---\n\n## 🚦 Scene Control Logic\n\n- Scene data (power, color, brightness) is saved in `scenes.json`\n- Scenes can be applied without reloading the page\n- When applying a scene:\n  - If device is **OFF**, only a power command is sent\n  - If device is **ON**, all properties are applied\n\n---\n\n## ⚠️ Limitations\n\n- Only supports RGB lights with MQTT-based protocols\n- Currently designed for local network use only\n- No login/authentication layer\n- Layout for only 3 devices at once\n\n---\n\n## 📚 Educational Value\n\nThis project demonstrates integration of:\n\n- IoT principles and MQTT\n- Frontend-to-backend communication via REST\n- JSON-based persistence\n- Hardware integration with WLED / Tasmota\n- Modular software architecture in Python\n\n---\n\n## 🚧 Upcoming Features\n\nThe following features are planned for future releases of **LiteHouse**:\n\n- **🎙 Voice Control**  \n  Voice commands using offline speech recognition with customizable aliases per user. (only for Raspberry Pi 5 - 16GB RAM)\n\n- **🧩 Web UI for Device Management**  \n  Add and remove smart devices directly through the web interface without editing configuration files manually.\n\n- **⚙️ Web-Based Device Configuration**  \n  Easily configure MQTT topics, device names, and types directly from the browser.\n\n---\n\n## 🏫 Author \u0026 Acknowledgements\n\nCreated by a student (me) of **Gymnázium Šumperk** in 2025 as a **maturitní projekt** (graduation project).  \nThanks to open-source contributors of WLED, Tasmota, and others for inspiration and technical references.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsolardev%2Flitehouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffsolardev%2Flitehouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsolardev%2Flitehouse/lists"}