I installed the Wled integration with the latest HomeAssistant version.
Home Assistant : 2022.7.5
Wled : 0.13.1
The problem is that the connection to WLED keeps getting lost, unfortunately you can’t see much in the logs, but in the small log window under Devices → Wled you can see it if you send a command for a playlist, for example, the entity Firmware constantly changes to unknown, then it takes a few seconds or 1-2 minutes and it updates itself again to “current”.
This shows very well that he loses the connection, the whole thing happens over and over again, especially if you send commands quickly, like I do, for example, every 10 seconds.
You can also reproduce this very well by simply switching the leds in HA ON/OFF one after the other
I use the playlist commands in an automation and when the command is executed in HA nothing happens, but when I switch to the WLed UI I can control everything, so it must be the WLed integration.
If I can help in any way, I’d be happy to do so, but unfortunately it’s useless
There’s no solution for this issue. WLED simply can’t handle HA’s massive amount of API calls in a short time. Personally, I disable all update entities because they are too aggressive, which reduces the chance of this happening.
Outside the update entities, WLED will still run into these issues if you send too many commands at once. It doesn’t seem like anyone at WLED is interested in making the JSON API avoid this issue, so the solution I use is to make a series of presets. The other option would be to create your own WLED calls using the JSON api, but focus on building the JSON yourself so that you use 1 call to perform ALL actions. I.e. set all segments at once, etc.
If you don’t have multiple segments and you’re just turning on a single strip with a single effect and preset, you won’t have any of these issues.