Jump to content

LiFX Poly crashed


Recommended Posts

LiFX poly version 2.1.23

Polygot version 2.2.9-1 (Running on Polisy)

ISY version 5.0.16C

Usually, the LiFX poly is very reliable however, I have seen this type poly crash and log pattern shown below. This usually happens a short time after upgrading or rebooting ISY (May or may not be related. I don't know). In this case, I upgraded ISY to 5.0.16C this morning. Everything seemed to be working after that. I left home ~11:40. When I returned this evening, the LiFX lights were not responding. I restarted the nodeserver and all is back to normal. Something happened ~35 minutes after I left home. There should have been no programs (or people) doing anything with the LiFX lights between ~11:30 and ~19:30.

I hope this information help to track down the cause of the crash.....

Log Excerpt (Full log package attached):

2020-01-26 12:10:03,540 [Controller] [INFO ] Updating Driver d073d53d5bfe - GV0: -47, uom: 56
2020-01-26 12:10:03,875 [Controller] [INFO ] Updating Driver d073d554f434 - GV0: -66, uom: 56
2020-01-26 12:15:08,178 [Controller] [ERROR] Exception in thread Controller:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
  File "/usr/local/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/var/polyglot/.local/lib/python3.7/site-packages/polyinterface/polyinterface.py", line 856, in _parseInput
  File "./lifx-poly.py", line 106, in shortPoll
  File "./lifx-poly.py", line 340, in update
    self.color = list(self.device.get_color())
  File "/var/polyglot/.local/lib/python3.7/site-packages/lifxlan/light.py", line 88, in get_color
    response = self.req_with_resp(LightGet, LightState)
  File "/var/polyglot/.local/lib/python3.7/site-packages/lifxlan/device.py", line 510, in req_with_resp
    response = unpack_lifx_message(data)
  File "/var/polyglot/.local/lib/python3.7/site-packages/lifxlan/unpack.py", line 31, in unpack_lifx_message
    message_type = struct.unpack("<H", header_str[32:34])[0]
struct.error: unpack requires a buffer of 2 bytes

2020-01-26 19:02:20,110 [Interface ] [DEBUG] Received stop from Polyglot... Shutting Down.
2020-01-26 19:02:20,111 [Interface ] [INFO ] Disconnecting from MQTT... localhost:1883




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...