Discovery crashes with RGB lightstrips on the network
>>> allL = leglight.discover(2)
Exception in thread zeroconf-ServiceBrowser__elg._tcp.local._1699607:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/site-packages/zeroconf/__init__.py", line 1755, in run
self._service_state_changed.fire(
File "/usr/local/lib/python3.9/site-packages/zeroconf/__init__.py", line 1513, in fire
h(**kwargs)
File "/usr/local/lib/python3.9/site-packages/zeroconf/__init__.py", line 1611, in on_change
listener.add_service(*args)
File "/usr/local/lib/python3.9/site-packages/leglight/discovery.py", line 25, in add_service
lights.append(LegLight(address=ip, port=port, name=lname, server=server))
File "/usr/local/lib/python3.9/site-packages/leglight/leglight.py", line 29, in __init__
self.info()
File "/usr/local/lib/python3.9/site-packages/leglight/leglight.py", line 95, in info
self.isTemperature = self.postFit(status['temperature'])
KeyError: 'temperature'
At the end of discovery https://gitlab.com/obviate.io/pyleglight/-/blob/master/leglight/leglight.py#L29 we call info, which assumes the on/brightness/temperature k/v. Those don't exist.
Regular Light: http://10.23.22.108:9123/elgato/lights
{"numberOfLights":1,"lights":[{"on":0,"brightness":10,"temperature":160}]}
RGB Strip: http://10.23.22.94:9123/elgato/lights
{"numberOfLights":1,"lights":[{"on":0,"hue":245.000000,"saturation":100.000000,"brightness":100}]}