Problems readding ESP8266 Device

Hi,
----> copied from the slack channel <-----
I am quite new to diyhue. I installed it on my Pi and added an esp8266 dimmable light. That worked quite well, but fter I reinstalled diyhue beciause of problems with deconz i am not able to add the light again. The light is at 192.168.2.69, direct access from my browser works file:
Thats from the debug log:2019-11-17 11:53:52,450 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.2.69:80
2019-11-17 11:53:52,515 - urllib3.connectionpool - DEBUG - http://192.168.2.69:80 “GET /detect HTTP/1.1” 200 103
2019-11-17 11:53:52,520 - root - INFO - {
“hue”: “bulb”,
“lights”: 1,
“mac”: “16:7d:10:c2:dd:bc”,
“modelid”: “LWB010”,
“name”: “Dimmable Hue Light”
}
2019-11-17 11:53:52,523 - root - INFO - 192.168.2.69:80 is Dimmable Hue Light
2019-11-17 11:53:52,524 - root - INFO - Add new light: Dimmable Hue Light
2019-11-17 11:53:52,525 - root - INFO - ip 192.168.2.69:80 is unknown device: list index out of rangePlease help! DiyHues WAF is droping!
Grüße aus Deutschland,
Thomas

Marius did a great job and fixed the Problem in HueEmulator3.py. Line 707:

def generate_unique_id():
rand_bytes = [random.randrange(0, 256) for _ in range(3)]
return “00:17:88:01:00:%02x:%02x:%02x-0b” %
WAS: (rand_bytes[0],rand_bytes[1],rand_bytes[2],rand_bytes[3])
NOW IS: rand_bytes[0],rand_bytes[1],rand_bytes[2])

Thanks,
Thomas