WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Hue sync makes WLED unstable

Open ceeeekay opened this issue 2 years ago • 8 comments

What happened?

WLED regularly restarts when synced to a hue bulb. If I disable hue sync, WLED is stable.

I can literally sit in the WLED interface on the info pane and watch the uptime reset to 0 after a couple of minutes.

Disabling hue sync gives me many many hours of uptime.

Hue settings are: Poll: 2500ms Sync: On/Off (no colour or brightness).

This has been stable in a previous WLED version (I'm sorry I can't tell you exactly which - way back at 0.9.x I think). Previously I was running on $3 Ali ESP32 boards so I suspected these boards might be the issue, but have since fresh installed on M5Stack Atoms. and the problem persists.

Hue hub is up to date, network is stable. I can't really find anything that causes the problem other than having hue sync enabled.

To Reproduce Bug

  • Enable Hue sync with correct light ID and bridge IP.
  • Watch WLED uptime

Expected Behavior

WLED shouldn't crash/restart every couple of minutes.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.14.0-b1 (build 2212222)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

None - I'm not set up to compile for log output. If I can get a binary with serial log enabled I can provide some log output.

Anything else?

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

ceeeekay avatar Feb 07 '23 07:02 ceeeekay

Use debug builds from @srg74

blazoncek avatar Feb 07 '23 08:02 blazoncek

Hi there, is this https://github.com/srg74/WLED/releases/download/v0.14.0-b1/WLED_0.14.0-b1_ESP32.bin or is there a specific debug release somewhere?

ceeeekay avatar Feb 07 '23 08:02 ceeeekay

https://github.com/srg74/WLED-wemos-shield/tree/master/resources/Firmware/%40Aircoookie/v0.14.0-b2/Debug_builds

blazoncek avatar Feb 07 '23 08:02 blazoncek

Ah, problem here in the sync menu:

This firmware build does not include Philips Hue support.

So I'm unable to reproduce with this specific debug build.

I could resurrect my build env and roll my own, but I have a kid on the way this week so it's going to be a while before I can give it much time.

ceeeekay avatar Feb 07 '23 09:02 ceeeekay

Or request one from @srg74

blazoncek avatar Feb 07 '23 10:02 blazoncek

It may be worth looking at the available APIs from HUE again. From what I can tell, the V2 API is starting to solidify and become more robust, it already includes a text/event-stream call that seems like it could allow WLED to receive updates from the bridge, rather than having to poll for them.

curl --insecure -N -H 'hue-application-key: <appkey>' -H 'Accept: text/event-stream' https://<bridge-ipaddress>/eventstream/clip/v2

For instance, will end up returning a stream of event updates that could be parsed for desired information.

--edit--

Also this seems like it may be related to #2495 https://github.com/Aircoookie/WLED/issues/2495#issuecomment-1018036263

ChuckMash avatar Feb 07 '23 19:02 ChuckMash

Also this seems like it may be related to https://github.com/Aircoookie/WLED/issues/2495 https://github.com/Aircoookie/WLED/issues/2495#issuecomment-1018036263

Yep it's the same issue. Close this one, or should I keep trying to get some logs?

ceeeekay avatar Feb 07 '23 21:02 ceeeekay

I also have the problem that my WLED keeps restarting when I sync it with my Hue lights. Are there any fixes in sight for this?

Version: v0.14.1

wusapa avatar Jan 27 '24 18:01 wusapa

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED! ✨

github-actions[bot] avatar May 27 '24 12:05 github-actions[bot]