Custom Component: Emulated Hue Bridge with Color Control

A few months ago I wanted my Harmony Hub to be able to control the color of my Yeelight (which is exposed to the hub via Emulated Hue Bridge). I found a link a modified EHB component that had color control, great right? Well sadly it didnt work (mostly likely due to it being outdated).

So i attempted to combine the modifications of the modifed component with the changes of the latest EHB and, to my surprise, i got it to work!

Now its months later and its worked great ever since so i’ve had the idea of sharing it with the community.

Installation:

  1. Download the custom component (from here)
  2. Go to config/custom_components (create the custom_components folder if it doesn’t exist)
  3. Extract the downloaded .zip file to that folder (so you end up with an emulated_hue folder within the custom_components folder)
  4. Restart HA and enjoy!

Even though i’ve been using HA for over a year now, i’m still fairly new to the creation of custom components but i’ll still try my best to answer any questions.

Credit goes to whoever originally created the custom EHB component that added color control (i’ll try and find out who so i can better credit them).

Thanks!

2 Likes

Nice, finally my Hue Iris ist working with its colors via Alexa!
But unfortunately, my Osram bulbs don’t seem to be changed in their temperature :frowning: Can you look into that? Thank you! :slight_smile:

@EthanBezz Is this still working for you. I am totally new in HA, and I followed your instructions but still in harmony there is only possibility to turn on/off yeelight :frowning: .

1 Like

It doesn’t work for me, is it possible to have a more comprehensive guide, how to mod the configuration.yaml, etc?

I just put the files from mega to custom_components, but the emulated-hue component behaves like before, only dimming, no colour. Thanks

Im also having issues with this, tried multiple different ways to load it but it always seems to fail on the ‘REQUIREMENTS’ import:

Jul 27 22:51:23 raspberrypi hass[20547]: Traceback (most recent call last):
Jul 27 22:51:23 raspberrypi hass[20547]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 338, in _load_file
Jul 27 22:51:23 raspberrypi hass[20547]:     module = importlib.import_module(path)
Jul 27 22:51:23 raspberrypi hass[20547]:   File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
Jul 27 22:51:23 raspberrypi hass[20547]:     return _bootstrap._gcd_import(name[level:], package, level)
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Jul 27 22:51:23 raspberrypi hass[20547]:   File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Jul 27 22:51:23 raspberrypi hass[20547]:   File "/home/homeassistant/.homeassistant/custom_components/__init__.py", line 16, in <module>
Jul 27 22:51:23 raspberrypi hass[20547]:     from homeassistant.components.http import REQUIREMENTS  # NOQA
Jul 27 22:51:23 raspberrypi hass[20547]: ImportError: cannot import name 'REQUIREMENTS'

1 Like

I did take the Haaska way, looooong way unfortunately, but it finally works…
of course humidity, CO2, and other sensor are not supported, but it’s an Alexa problem not an Haaska limitations. I hope Amazon will introduce new features soon.