koying / openrgb_ha

OpenRGB integration for Home Assistant
110 stars 16 forks source link

Logi Y-U0035/G815 LIGHTSYNC RGB Keyboard Sometimes Only Changes Some Keys #35

Open bmos opened 10 months ago

bmos commented 10 months ago

Background

I've got a G815 LIGHTSYNC RGB Mechanical Gaming Keyboard which works correctly with OpenRGB on my Pop!_OS 22.04 computer.

It generally also works correctly with this Home Assistant integration. I can change the color with good precision and the brightness adjustment on the keyboard functions to adjust the brightness of that chosen color.

The Issue

When I use the Light: Turn off service to turn off all the lights in the area containing all OpenRGB devices in Home Assistant, Some of the keys on my keyboard don't shut off. Similarly when turning back on, sometimes some don't turn on.

I don't get this issue when using OpenRGB directly and I have been able to work around it in HA by turning the keyboard back on and then back off AFTER all the other devices.

My wild guess is that the API calls might be coming too quickly and some are getting dropped. Perhaps some rate limiting or queuing of those would help?