Skip to content

Implement diyHue #40

Open
Open

Description

@pete111

Hi @Aircoookie , because I don't have Philips Hue bridge, I am trying it with this emulator https://github.com/mariusmotea/diyHue. Philips Hue mobile app successfully found this bridge, but when I save bridge IP in Wled, no wled device is added to Hue bridge. I also initiated http://bridgeIP/hue/linkbutton?username=Hue&password=Hue&action=Activate (on diyHue) but I am constantly getting Hue status: Inactive on Wled. Could you please try it, too? Probably I should buy one of that expensive Philips bridges :)

Activity

  1. Aircoookie commented on Aug 16, 2018

    @Aircoookie
    Member

    Hey,

    it's not your Hue emulators fault. WLED can't emulate a Hue lamp, all it does is poll the state of an official hue lamp every few seconds and set itself to the same color. Try adding a virtual hue light in your hue emulator and then, in wled sync settings, tick the checkbox after "poll hue light 1 every X ms". You can thrn change the wled light by changing the virtual hue light in the hue app. However I don't think this would make sense if you just use WLED, it is intended to sync WLED to some other real lights :)

  2. pete111 commented on Aug 16, 2018

    @pete111
    Author

    oh, thanks Aircoookie for clarification. Now I see how hue integration in wled works. It would be nice to have also option in Wled to emulate Hue lamp if possible in future :)

  3. Aircoookie commented on Aug 16, 2018

    @Aircoookie
    Member

    I know, I'd love that feature! I'll add it as soon as the hue protocol supports adding "non-Zigbee" lights! (which it currently doesn't, unfortunately)

  4. pete111 commented on Aug 16, 2018

    @pete111
    Author

    great 👍
    I currently tested color cloning from hue bulb (emulated). It mostly works, but momentarily esp reboots (just wanted to let you know).

  5. Aircoookie commented on Aug 16, 2018

    @Aircoookie
    Member

    Yeah, I'll admit it is not the most stable. It helps a bit if you increase the polling interval to 2000ms or something, but of course this means more latency. The ESP doesn't like sending requests all the time somehow. But currently this is the only possible way to sync to hue lights :)

  6. juanesf commented on Nov 15, 2018

    @juanesf
    Contributor

    Hello Aircoookie and thanks for your excellent work I also use the @mariusmotea emulator and you could implement your sketch to add direct support to the emulator

    https://github.com/mariusmotea/diyHue/blob/master/Lights/Arduino/WS2812BHueStrip/WS2812BHueStrip.ino

  7. km-coded commented on Jan 22, 2019

    @km-coded

    Hi, I know this issue is a bit old, but I've found an older project I've used till last weekend I've found yours. It's the esp hue emulator which is controlled by any third party app for the hue system (the ones that I've used so far worked quite well). Please have a look at this and eventually you could implement this?
    https://github.com/probonopd/ESP8266HueEmulator

  8. Aircoookie commented on Jan 23, 2019

    @Aircoookie
    Member

    In fact I'm already using similar code that was inspired by that project for the Alexa function! Integrating the emulator into WLED would add compatibility with many hue clients, which would be super awesome, but it is quite complex and not a library, so I'd need to do some restructuring to make it compatible and I'm afraid it might have a high performance impact if I add too many new interfaces. Still, I'll keep this in mind and will consider implementing it sometime soon!

  9. juanesf commented on Jan 24, 2019

    @juanesf
    Contributor

    hello again @Aircoookie, @mariusmotea has several sketch to emulate huestrip and huelamps for the diyHue emulator which also has support for hue entertainment.
    the next sketch has the option to define the amount of lights to emulate by a led strip, and also define from which led the following light begins:
    https://github.com/diyhue/Lights/blob/master/Arduino/WS2812BHueRing/WS2812BHueRing.ino

    while the following can define the amount of lights to emulate per LED strip:
    https://github.com/diyhue/Lights/blob/master/Arduino/WS2812BHueRing/WS2812BHueRing.ino

    with those sketchs you can have direct support from diyHue which can be controlled by an Original Hue Bridge and extend the lights by wifi without the need to add ZigBee. The emulator can be installed on Raspberry, linux, Docker, OpenWrt and I think I saw on YouTube a video where it was running on Windows. Any additional info can enter the chat in Slack:
    https://slackinvite.squishedmooo.com/

  10. juanesf commented on Jan 24, 2019

    @juanesf
    Contributor

    or perhaps add only the hue entertainment protocol

  11. juanesf commented on Jan 24, 2019

    @juanesf
    Contributor
  12. changed the title [-]Hue emulator[/-] [+]Implement diyHue[/+] on Oct 25, 2019
  13. juanesf commented on Nov 7, 2019

    @juanesf
    Contributor
  14. juanesf commented on Nov 8, 2019

    @juanesf
    Contributor
  15. 2 remaining items

  16. bravery10 commented on Aug 7, 2021

    @bravery10

    I can sync with Hue Bridge but not with Hue Emulator, I clicked activate on Huelinkbuton page and entered the correct number of lights and checked all box.

  17. juanesf commented on Aug 7, 2021

    @juanesf
    Contributor

    This thread should be closed since diyHue makes discovery directly, it is not necessary to make any changes in wled

  18. juanesf commented on Aug 7, 2021

    @juanesf
    Contributor

    What you should consider is that diyHue is in a protocol transition and the branch that works best is beta but I recommend using docker

  19. bravery10 commented on Aug 8, 2021

    @bravery10

    thank you! i am using docker on raspberry 4B, i have 1 Hue brigde v2 and 1 Hue emulator, i want use wled to clone philip hue light or diyhue light, wled is being used as a ambilight.

  20. added a commit that references this issue on Sep 5, 2022
  21. added
    stale
    on Jan 6, 2023
  22. removed
    stale
    on Jan 11, 2023
  23. added
    usermod
    on Jan 11, 2023
  24. juanesf commented on Jan 12, 2023

    @juanesf
    Contributor

    The support in diyhue is complete, it is not necessary. There is already a wled protocol in diyhue.

    https://github.com/diyhue/diyHue/blob/master/BridgeEmulator/lights/protocols/wled.py

  25. added
    workaround
    on Feb 3, 2026
  26. added 2 commits that reference this issue on Aug 18, 2026
  27. added a commit that references this issue on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedusermodworkaround

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions