Lights in hue app constantly shifting between unreachable and fine, but continue with limited functionality

Hello,

I am running the hueemulator on a raspberry pi, working with a bunch of milights (RGB-CCT, 4 zones), controlled through the ESP-Milight-Hub project.

I have added paired the hub to the Hue app and can turn the lights on/off without issue. However, the lights consistently go in/out of an unreachable state every 5-10 seconds and occasionally, some lights just turn off for no reason. Even if a light is listed as unreachable, it appears I can still issue on/off commands. Additionally, if I try to use any entertainment apps like Light DJ, etc. they appear to work for a few seconds but then, once the hub lists the light as unreachable, they stop working.

Has anybody seen anything like this or have any ideas where to start troubleshooting?

Logs: https://pastebin.com/zcE2mDsc

Dec 30 07:13:36 raspberrypi HueEmulator3.py[1615]: WARNING:root:MiLight rgb_cct 0x2975 is unreachable: HTTPConnectionPool(host=‘http’, port=80): Max retries exceeded with url: //192.168.50.56/gateways/0x2975/rgb_cct/1 (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7554c7b0>: Failed to establish a new connection: [Errno -2] Name or service not known’))

Dec 30 07:13:36 raspberrypi HueEmulator3.py[1615]: WARNING:root:MiLight rgb_cct 0x2975 is unreachable: ‘hue’

Dec 30 07:13:36 raspberrypi HueEmulator3.py[1615]: WARNING:root:Zone 2 is unreachable: ‘hue’

Dec 30 07:13:36 raspberrypi HueEmulator3.py[1615]: WARNING:root:Zone1 is unreachable: ‘hue’

Dec 30 07:13:36 raspberrypi HueEmulator3.py[1615]: WARNING:root:Zone 3 is unreachable: ‘hue’

Dec 30 07:13:36 raspberrypi HueEmulator3.py[1615]: WARNING:root:Zone 4 is unreachable: ‘hue’

Dec 30 07:13:47 raspberrypi HueEmulator3.py[1615]: 192.168.50.126 - - [30/Dec/2020 07:13:36] “GET /api/4d8c053c48d211eb8a12b827eb39bc0f/lights HTTP/1.1” 200 -

Dec 30 07:13:47 raspberrypi HueEmulator3.py[1615]: 192.168.50.126 - - [30/Dec/2020 07:13:36] “GET /api/4d8c053c48d211eb8a12b827eb39bc0f/groups HTTP/1.1” 200 -

Dec 30 07:13:47 raspberrypi HueEmulator3.py[1615]: 192.168.50.126 - - [30/Dec/2020 07:13:39] “GET /api/4d8c053c48d211eb8a12b827eb39bc0f/lights HTTP/1.1” 200 -

1 Like

Looks like in lightsRequest.py protoll used is “hue”, trying to reach a milight enabled hub / bulb.
Will look into this.

Can you assure that the reception of all components is good and no “timeout” etc can occour?

Yes, can confirm reception is good. Everything is located within a tight radius and hardlined if possible. I use the same devices for control via homebridge (albeit from a different hub) without any issues. I have tried fresh installs of DIYHue on multiple raspberry pis, all hardlined in.

Let me know if there is any other useful information I can provide.