Skip to content

maxbec/diyHue

 
 

Repository files navigation

diyHue - A Hue bridge emulator

license CommitActivity

Discourse

JoinSlack SlackStatus

Build Status DockerPulls

arm version badge arm-size-batch

amd version badge amd size badge

This project emulates a Philips Hue Bridge that is able to control ZigBee lights (using Raspbee module, original Hue Bridge or IKEA Trådfri Gateway), Mi-Light bulbs (using MiLight Hub), Neopixel strips (WS2812B and SK6812) and any cheap ESP8266 based bulb by replacing the firmware with a custom one. It is written in Python and will run on all small devices such as the Raspberry Pi. Arduino sketches are provided for the Hue Dimmer Switch, Hue Tap Switch and Hue Motion Sensor. Lights are two-way synchronized so any change made from original Philips/Trådfri sensors and switches will also be applied to the bridge emulator.

diyHue ecosystem

Master-Refactor Details

This is the newest version of diyHue and has numerous changes compares to the old version. Understand that using this version can result in things breaking! As breaking changes are made here, they will be listed below. If something does break and it is not listed below, please make an issue with debug logs so we can look into it!

  1. Config is incompatible with the master branch (can be migrated by comparing the old and new config manually)
  2. Config is now stored under /config so please use that when mounting the config directory in Docker.
  3. All other installation methods besides Docker are unsupported. Docker is available on most platforms including Raspberry Pi.

Getting Started

All documentation and instructions can be found over at diyhue.readthedocs.io

Requirements

or

  • Docker ;-)

Recommendation

  • Hue Essentials phone app for remote control and entertainment effects.
  • WS2812 Strip + Wemos D1 mini board for cool entertainment affects.
  • RaspberryPi 3B connected via ethernet port to your network for bridge emulation (avoid using 2 interfaces in the same time).

Working HUE features

  • Control lights (all functions)
  • Control groups (all functions)
  • Scenes (all functions)
  • Routines
  • Wake up
  • Go to sleep
  • Switches (custom esp8266 switches)
  • Autodiscover lights
  • Hue entertainment

Working devices and applications

  • Amazon Alexa (control only the lights)
  • Logitech Harmony
  • Trådfri Gateway
  • Hue Bridge (original + other emulators)
  • Home Assistant
  • Domoticz
  • Openhab
  • Philips Ambilight TV's
  • Kodi Hue Ambilight
  • Jeedom
  • Hue Sync for PC
  • Deconz
  • Zigbee2mqtt see mqtt

Working smartphone applications

  • Hue (official application)
  • Hue Essentials - recommended
  • hueManic
  • OnSwitch
  • HueSwitcher
  • LampShade

Not working

  • Home & Away future from Hue app (requires remote api)
  • Google Home (requires remote api)
  • Eneco Toon (very likely it uses cloud service detection)

Supported lights and devices

To Do

  • esp8266 alarm horn (+schematic)
  • Alarm (email notification + eps8266 horn)

Support

If you need help with diyHue you can get support from other users, aswell as the maintainer.

JoinSlack For fast and live Support.

Discourse Our Board might already have your fix and answer ready. Have a look!

Since Slack is faster at providing live Support but not as good when it comes to save and show known Issues, we kindly ask you to open a Topic at our Discourse group. This will provide Help for others in the future.

Note: Please provide some Logs to make it easier for all of us. Enable Debug by manually starting diyHue with additional --debug true argument.

diyHue is Opensource and maintained by volunteers in their free time. You are welcome to contribute and become a recognised member of the diyHue community.

Stability

All the lights in my house are controlled by this solution so the stability is very important to me as there is no turning back to classic illumination (all switches were replaced with Ikea Trådfri Remotes and holes covered). However, I don't use all the functions, so I'm unable to perform full tests on every change. What I do currently use is Deconz with all Trådfri devices (lights + sensors), Xiaomi Motion Sensor, native ESP8266 bulbs, ESP8266 + WS2812B strips, and Xiaomi YeeLight color bulbs.

Please post on our Slack team any other device/application that you find to work with this emulator.

Check the docs for more details.

Youtube Demo

We push updates fast so if you want to be notified, just watch this repo.

Contributions are more than welcome!

Hue living color light project for 3D printing: Thingiverse 2773413

qtHue

You also may want to see my new project qtHue that provides a simple user interface for controlling the lights. qtHue

Credits

About

Main diyHue software repo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.5%
  • Python 19.8%
  • C 6.7%
  • Other 1.0%