Skip to content

Unable to add new WLED device to HomeAssistant #3599

Closed

Description

@TheLion

What happened?

I added a 4th WLED device to my house and network and I try to get it into HA. The previous 3 were added some time ago and all 3 were automatically discovered instantly, but the 4th one isn’t and when I try to add in manually in the WLED integration, it reports: “Unknown error occured”.

I am able to open the webgui of WLED, both on my local domain DNS name, mDNS .local and DHCP assisgned IP-address and I am able to ping the IP from my HA box.

The WLED doesn’t contain anything complex, just 10 segments and 1 preset.

To Reproduce Bug

Until now, it has not been resolved and the same thing keeps happening

Expected Behavior

That the new WLED device is discovered by HA, or at least that I'm able to add it manually.

Install Method

Binary from WLED.me

What version of WLED?

0.14.0

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

Adding it by IP with debug logging on, produced the following info in the HA log:

2023-12-17 18:22:11.161 DEBUG (MainThread) [homeassistant.components.wled] Finished fetching wled data in 0.360 seconds (success: True)

2023-12-17 18:22:14.272 DEBUG (MainThread) [homeassistant.components.wled] Finished fetching wled data in 0.291 seconds (success: True)

File "/usr/src/homeassistant/homeassistant/components/wled/config_flow.py", line 40, in async_step_user

File "/usr/src/homeassistant/homeassistant/components/wled/config_flow.py", line 117, in _async_get_device

return await wled.update()

File "/usr/local/lib/python3.11/site-packages/wled/wled.py", line 275, in update

File "/usr/local/lib/python3.11/site-packages/wled/models.py", line 694, in __init__

File "/usr/local/lib/python3.11/site-packages/wled/models.py", line 695, in <genexpr>

2023-12-17 18:22:18.602 DEBUG (MainThread) [homeassistant.components.wled] Finished fetching wled data in 2.408 seconds (success: True)

2023-12-17 18:22:20.992 DEBUG (MainThread) [homeassistant.components.wled] Finished fetching wled data in 0.191 seconds (success: True)

Anything else?

/json/info produces:

{"ver":"0.14.0","vid":2310130,"leds":{"count":120,"pwr":1306,"fps":43,"maxpwr":3000,"maxseg":16,"seglc":[1,1,1,1,1,1,1,1,1,1],"lc":1,"rgbw":false,"wv":0,"cct":0},"str":false,"name":"Nanoleaf","udpport":21324,"live":false,"liveseg":-1,"lm":"","lip":"","ws":0,"fxcount":187,"palcount":71,"cpalcount":0,"maps":[{"id":0}],"wifi":{"bssid":"66:E9:31:91:62:01","rssi":-54,"signal":92,"channel":6},"fs":{"u":40,"t":1024,"pmt":1702836971},"ndc":3,"arch":"esp8266","core":"3.1.2","lwip":2,"freeheap":13792,"uptime":190465,"time":"2023-12-20, 00:08:17","opt":79,"brand":"WLED","product":"FOSS","mac":"c45bbede3cdc","ip":"192.168.206.126"}

Code of Conduct

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

Activity

  1. TheLion commented on Dec 19, 2023

    @TheLion
    Author

    The only explanation I can find, when I compare json/info from a working WLED device to this one, is that ws is set to 0 and on working one to 1.
    Can this be the issue? How/why does this happen?

  2. blazoncek commented on Dec 20, 2023

    @blazoncek
    Contributor

    Some 8266 exhibit buffer corruption due to still unknown reasons. Try reflashing by using different flash speed and mode options.

  3. TheLion commented on Dec 20, 2023

    @TheLion
    Author

    A reflash didn't solve the issue unfortunately. No matter what speed or mode I tried.
    I did find an older WEMIS D1 Mini, in stead of the LOLIN D1 Mini and that worked better, not flawlessly, but better. Still havind some weird issues within HA

  4. TheLion commented on Dec 23, 2023

    @TheLion
    Author

    I am wondering. It is better/easier to use a different device than 8266?

  5. blazoncek commented on Dec 23, 2023

    @blazoncek
    Contributor

    ESP8266 may be ending its life regarding WLED support.
    ESP32 is the way forward in the long term.

  6. softhack007 commented on Dec 23, 2023

    @softhack007
    Member

    I am wondering. It is better/easier to use a different device than 8266?

    Yes, classic esp32 (dual core) is the best choice for most use cases of WLED. If you have a small setup, esp32-s2 might be another option. Both are availeable in "d1 mini32" form factor.

  7. blazoncek commented on Dec 23, 2023

    @blazoncek
    Contributor

    Indeed. I have replaced my D1 mini form-factor devices with Lolin ESP32-S2 D1 mini (with 2MB PSRAM) and find it excellent replacement for ESP8266. There is one caveat: it is more susceptible to WiFi signal strength or interference.

  8. TheLion commented on Dec 23, 2023

    @TheLion
    Author

    Thanks. Will get a Lolin ESP32-S2 D1 mini and try that. 👍

  9. added
    fixed in source
    on Jan 12, 2024
  10. added this to the 0.14.1 candidate milestone on Jan 12, 2024
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

    bugfixed in source

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions