Joe, I made a note last week to look at this plugin when I got home (as I'd said I would a while ago... and didn't)!
It looks like you've included the latest flux_led module from github and fixed up the plugin to use it.
You've also used
https://forums.indigodomo.com/viewtopic.php?f=134&t=19314&start=75#p182732 to add timeout parameters on two of the calls to WifiLedBulb(device.address).
Can I suggest (untested) that you do the same on the other references to the same call?
I'm suspecting the random appearance of errors, and the fixes proposed by hackintosh four years ago, were around the calls timing out - he's proposed two fixed calls with a timeout parameter but not the rest.
Peter