hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
2.96k stars 373 forks source link

WLED: Retry connection if WLED Device is not reachable. #1762

Closed SciLor closed 1 week ago

SciLor commented 2 weeks ago

Bug report

Steps to reproduce

Start Hyperion Start WLED device

What is expected?

If WLED device is not available at boot, retry until it is reached

What is actually happening?

WLED device stays in idle until Hyperion is restarted.

System

Hyperion Server:

Hyperion Server OS:

Lord-Grey commented 2 weeks ago

You can already today define the number of retries and timeframe in between. It is not unlimited retries, but you might just want to increase the number that fits your WLED.

In addition, there is no need to restart Hyperion, you can just enable the LEDDevice Component again to start the opening loop.

Besides that, I would advise that you check for any error messages in the log, in case there is a general problem with your WLED device.

SciLor commented 1 day ago

I tried 99 retries and 5s retry time.

But the problem is that this doesn't work. I need to start Hyperion after the WLED strip, otherwise it won't be driven.

There is no problem with the WLED Device. I have two different WLEDs with two different Hyperion instances suffering from the same problem.

There seems to be an initial check at boot up of Hyperion if the WLED device is available just once.

SciLor commented 1 day ago

Problem seems to be the mdns name with .local that is used by the auto detector. When I use the IP/DNS of my WLED device by setting it to custom it works fine.

Lord-Grey commented 1 day ago

@SciLor You reported the issue against 2.0.15. Have you also tried 2.0.16 or the 2.0.17-beta? There were some updates done since...

SciLor commented 1 day ago

@Lord-Grey I tested this today on 2.0.16