Closed wborn closed 8 years ago
@wborn You are definitely in a position to this kind of testing - I only have 3 bulbs, poor me ;-)
I will implement the StackOverflow solution, and you are right about clearing sendPackts.
@kgoderis thanks for looking into my LIFX issues. When the LIFX binding is stable, I will be a very happy person, because I can finally retire my own coded HA solution with ESH/OH.
My own LIFX implementation is rock solid, but not as versatile as yours (only static IPs). I kept things very simple and stupid by just sending packets 3 times to a bulb. That way they always arrive and I didn't have to bother with acknowledgements. That is of course not really in line with LIFX API specs. :-)
The LIFX binding is still pretty unstable for me when using it with my 34 bulbs.
Bulbs go offline a lot. I've been trying to get it stable. Bulbs go offline less when I use
MAXIMUM_POLLING_RETRIES = 4;
in theLifxLightHandler
. So maybe the value can be increased or made configurable e.g. via Paper UI?Also when bulbs go offline often the following error is logged:
The
orccurred
typo is actually very helpful because it helps to pin point which of the two similar log statement needs to be adjusted to also log a the stack trace.This is the exception that gets logged with the modified log statement.
Maybe this exception occurs when the
Selector
is closed inLifxLightHandler.dispose()
as is suggested on StackOverflow?Also I have a constant stream of warnings:
I think it is partly caused due to the bulbs going offline. That would also explain the sequential nature of all these numbers.
At line 530 of the
LifxLightHandler
I see that thesentPackets
is cleared when a bulb is setOFFLINE
. However this is not done when the bulb is set toOFFLINE
at other locations, i.e. lines 219, 711, 736 . So maybe it should also be added at these locations?When these issues are resolved, I do think most of the reliability issues are solved for this binding! :smile:
Do you have any thoughts on this @kgoderis?