Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dual Home Assistant setups causes WLEDs devices to go down #4527

Closed
1 task done
Johboh opened this issue Jan 29, 2025 · 6 comments
Closed
1 task done

Dual Home Assistant setups causes WLEDs devices to go down #4527

Johboh opened this issue Jan 29, 2025 · 6 comments
Labels

Comments

@Johboh
Copy link

Johboh commented Jan 29, 2025

What happened?

I have four devices running WLED 0.15. Three of these are ESP32-S2, and one is a ESP8266.
I mainly control these using Home Assistant and the WLED integration.
I have had this setup for years and it has been working well.

Recently, I have been elaborating with running a second Home Assistant instance on a separate server, this is to provide a backup/fallback/redundancy if the main Home Assistant goes down (or is down for maintenance). The second instance does not run any (main) automations, it just provide an UI with all the lights to control (Ikea, shelly etc), including WLED using the WLED integration (and also run motion sensor automations if the primary device is down, but no automations that controls the WLEDs).

But once I started with second setup, randomly and sometimes within hours or after 24h+, some of the WLEDs become unresponsive, and they are no longer accessible via web. They have to be power cycled to be restored, and after that they run fine until it happens again. This occur on both the ESP32-S2 devices as well as the ESP8266 device.

I know this setup is not the ordinary one. I do would like to know what is causing this and if there is anything that can be solved. If there is any logs or other information needed, let me know!

Home Assistant 2025.1.0
WLED 0.15.0

To Reproduce Bug

On two different servers/devices/computers, add WLED devices using the WLED integration. Then wait. Notice that some devices will become unavailable eventually.

Expected Behavior

Devices that keeps running in the same way when there is only one Home Assistant instance.

Install Method

Binary from WLED.me

What version of WLED?

0.15.0

Which microcontroller/board are you seeing the problem on?

ESP32-S2

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Johboh Johboh added the bug label Jan 29, 2025
@DedeHai
Copy link
Collaborator

DedeHai commented Jan 29, 2025

it may be a queue overload. can you test if the nightly build is any different?

@Johboh
Copy link
Author

Johboh commented Jan 29, 2025

Just updated all of them to latest nightly, have wait and see how it works. I will report back.

@netmindz
Copy link
Member

You might also be wise to turn off the polling of devices in HA, especially on the second server

@Johboh
Copy link
Author

Johboh commented Feb 1, 2025

@DedeHai Great news! All lights have been working without any issues after moving to nightly (as of Jan 29) while running two Home Assistant instances, and still having polling enabled. I will close this issue as fixed, but I'm also curios what commit/s that addressed this issue. Is it this one perhaps?

(unrelated: I disabled polling for some Frontier Silicon "smart radios" and they work much better now, so thanks for the tip @netmindz)

@Johboh Johboh closed this as completed Feb 1, 2025
@DedeHai
Copy link
Collaborator

DedeHai commented Feb 1, 2025

Is it this one perhaps?

correct.

@netmindz
Copy link
Member

netmindz commented Feb 1, 2025

I would take this as confirmation that your changes in #4516 are working as expected 🎉

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants