Giter Club home page Giter Club logo

Comments (20)

Aircoookie avatar Aircoookie commented on September 17, 2024 1

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 :)

from wled.

juanesf avatar juanesf commented on September 17, 2024 1

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/

from wled.

Aircoookie avatar Aircoookie commented on September 17, 2024

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 :)

from wled.

pete111 avatar pete111 commented on September 17, 2024

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 :)

from wled.

Aircoookie avatar Aircoookie commented on September 17, 2024

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)

from wled.

pete111 avatar pete111 commented on September 17, 2024

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

from wled.

juanesf avatar juanesf commented on September 17, 2024

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

from wled.

nightflasher avatar nightflasher commented on September 17, 2024

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

from wled.

Aircoookie avatar Aircoookie commented on September 17, 2024

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!

from wled.

juanesf avatar juanesf commented on September 17, 2024

or perhaps add only the hue entertainment protocol

from wled.

juanesf avatar juanesf commented on September 17, 2024

diyhue/Lights@9a24790

from wled.

juanesf avatar juanesf commented on September 17, 2024

This is the link to the last state that worked for diyHue which can serve as something

https://github.com/diyhue/Lights/blob/master/Arduino/wled00/wled06_usermod.ino

from wled.

juanesf avatar juanesf commented on September 17, 2024

And @alexyao2015 has added a protocol for ESPHome that can serve as a guide, regards

https://github.com/diyhue/diyHue/commits/master/BridgeEmulator/protocols/esphome.py

from wled.

snickers2k avatar snickers2k commented on September 17, 2024

+1
maybe this helps: https://github.com/linuzer/Arduino-HueAPI (another DIYhue arduino implementation with auto discovery)

from wled.

bravery10 avatar bravery10 commented on September 17, 2024

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.

from wled.

juanesf avatar juanesf commented on September 17, 2024

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

from wled.

juanesf avatar juanesf commented on September 17, 2024

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

from wled.

bravery10 avatar bravery10 commented on September 17, 2024

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.

from wled.

Aircoookie avatar Aircoookie commented on September 17, 2024

I think this could be implemented well as a usermod, adapted from this sketch: https://github.com/diyhue/Lights/blob/master/ESP8266/Hue_Gradient_Lightstrip_SK6812/Hue_Gradient_Lightstrip_SK6812.ino

from wled.

juanesf avatar juanesf commented on September 17, 2024

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

from wled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.