Hi Guys, Hi @Danielhiversen
sorry for late response.
Today i updated to 0.36.1 and tried the new stuff with the LEDENET-Protocol.
Unfortunately for my v3 it is/was not working.
I did some comparing of the code with the old file
I had to comment one line (Line 709) in the setRgb Section (sorry if Section is wrong, I’m not a developer so i don’t know the real Word for this Python-Stuff )
Here is what i change
def setRgb(self, r,g,b, persist=True, brightness=None, retry=2):
if brightness != None:
(r, g, b) = self._calculateBrightness((r, g, b), brightness)
if persist:
msg = bytearray([0x31])
else:
msg = bytearray([0x41])
msg.append(int(r))
msg.append(int(g))
msg.append(int(b))
if self.protocol == "LEDENET":
msg.append(0x00)
msg.append(0x00) --> to comment out (# is not working here in the Forum for me)
msg.append(0x00)
msg.append(0x0f)
try:
self._send_msg(msg)
except socket.error:
if retry:
self.connect()
self.setRgb(r,g,b, persist, max(retry-1, 0))
It looks like, there is one msg.append(0x00) too much.
Anyone here can confirm?
Heres my complete File after changes:
BR
Lukas