A menu bar and iPhone app that shows your home as a live 3D model and controls its lights and air conditioners via Smart Life, Home Assistant, Hue and Apple Home.
diyhue/diyHue
A Python emulator of the Philips Hue Bridge that lets Hue-compatible apps and smart home systems control many non-Hue lights and devices locally.
Open-source alternative to:Philips Hue Bridge
- Stars
- 1,832
- Forks
- 298
- Open issues
- 106
- Last commit
- 14 days ago
What is it?
diyHue emulates a Philips Hue Bridge so that apps and smart home systems expecting a Hue Bridge can control lights from other sources. It can drive ZigBee lights through a Raspbee, Deconz or IKEA Trådfri gateway, MiLight bulbs, WS2812B and SK6812 LED strips, and ESP8266-based bulbs and switches running custom firmware.
The software is written in Python and is designed to run continuously on small hardware such as a Raspberry Pi, or in Docker. It works with a range of clients, including Hue Essentials, Home Assistant, Openhab, Domoticz and Amazon Alexa for light control. Everything runs on the local network, with no cloud connection required.
The project supports Hue groups, scenes, and entertainment mode, and it can be set up to start automatically. Documentation is hosted on readthedocs.
Key features
- 01Emulates a Philips Hue Bridge for Hue-compatible apps and smart home systems.
- 02Controls ZigBee, MiLight, WS2812B/SK6812 LED strips and ESP8266-based lights.
- 03Supports groups, scenes, and Hue entertainment functions.
- 04Runs locally without a cloud connection.
- 05Runs on small devices like the Raspberry Pi or in Docker.
Use cases
- Controlling non-Hue LED strips or bulbs from the official Hue app or Hue Essentials.
- Running a local, cloud-free lighting hub on a Raspberry Pi for Home Assistant.
- Bridging ZigBee or MiLight lights into Alexa or other Hue-compatible systems.
Quick start
- 1
Install the Python modules listed in requirements.txt
pip install -r requirements.txt - 2
Or run diyHue with Docker using the published image
docker pull diyhue/core - 3
Read the full setup instructions in the documentation
Things to know
- Meant to run 24/7 on a small always-on device such as a Raspberry Pi.
- Requires extra system packages such as coap-client and faketime, or Docker.
- Some features, such as remote API access, are not supported.
- Licensing is listed as NOASSERTION, so check the LICENSE file before reuse.
Topics
FAQ
- What is diyHue?
- A Python emulator of the Philips Hue Bridge that lets Hue-compatible apps and smart home systems control many non-Hue lights and devices locally. diyHue emulates a Philips Hue Bridge so that apps and smart home systems expecting a Hue Bridge can control lights from other sources. It can drive ZigBee lights through a Raspbee, Deconz or IKEA Trådfri gateway, MiLight bulbs, WS2812B and SK6812 LED strips, and ESP8266-based bulbs and switches running custom firmware.
- Is diyHue free to use? What license does it have?
- diyHue is open source under the Other license. Check the license terms before using it in commercial products.
- Is diyHue still maintained?
- Actively maintained. The last commit to diyHue was on Oct 23, 2026.
- What can I use diyHue for?
- Controlling non-Hue LED strips or bulbs from the official Hue app or Hue Essentials. Running a local, cloud-free lighting hub on a Raspberry Pi for Home Assistant. Bridging ZigBee or MiLight lights into Alexa or other Hue-compatible systems.
- How do I install diyHue?
- Install the Python modules listed in requirements.txt: pip install -r requirements.txt Or run diyHue with Docker using the published image: docker pull diyhue/core Read the full setup instructions in the documentation
- Where can I get diyHue?
- The source code and installation instructions are on GitHub: https://github.com/diyhue/diyHue
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Open-source ESP32 firmware for controlling addressable RGB LED strips, 2D matrices and HUB75 panels over WiFi.
A configuration-driven system that turns ESP32, ESP8266, BK72xx and RP2040 microcontrollers into smart devices controlled from Home Assistant and other home automation systems.
Alternative firmware for ESP8266 and ESP32 boards that adds web-based setup, OTA updates, local automation and MQTT, HTTP, Serial or KNX control.
Official Xiaomi integration that brings Xiaomi IoT smart devices into Home Assistant via Xiaomi Cloud or a local central hub gateway.
Python library and miiocli command-line tool for controlling Xiaomi smart home devices over the miIO and MIoT protocols.