Skip to content

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

Closed

Description

@Johboh

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

Activity

  1. DedeHai commented on Jan 29, 2025

    @DedeHai
    Collaborator

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

  2. Johboh commented on Jan 29, 2025

    @Johboh
    Author

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

  3. netmindz commented on Jan 30, 2025

    @netmindz
    Member

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

  4. Johboh commented on Feb 1, 2025

    @Johboh
    Author

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

  5. DedeHai commented on Feb 1, 2025

    @DedeHai
    Collaborator

    Is it this one perhaps?

    correct.

  6. netmindz commented on Feb 1, 2025

    @netmindz
    Member

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

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions