A new user to this driver here, which I am trialing out whilst keeping the existing DTH integration in place so I can test it out before migrating my automatons.
Just enrolled in the channel and installed the drivers for the first time on a V2 hub.
I think I may be seeing similar issues to others with devices going offline, here is what I observed during setup:-
Successfully paired the hub, then went into the device to select the settings for what I would like importing
Ran scan nearby, no devices were found, and when I went back to the device page the hub was showing as not conncted
Rebooted the ST hub, Hue hub shown as connected again
Reran the discovery process and all my devices were found
Once discovery was complete, all the newly imported devices were showing a offline
Rebooted the ST hub again.
Once it came back online, all bar 2 of the devices using this driver was showing as offline, 1 exception being the Hue bridge
The 2nd exception was my Hue Dimmer Switch, but when selecting the device an error message appeared in the ST app saying could not get device status.
I closed the ST app on my device after each hub reboot.
Iām assuming the issue is similar to being reported by others
New update also borked my Hue lights here. Randomly offline / online and when online very laggy. Currently offline and logs are just endless lines of this:
2023-01-06T14:27:36.601016621+00:00 ERROR Philips Hue LAN send error: closed
2023-01-06T14:27:36.611766621+00:00 ERROR Philips Hue LAN send error: closed
2023-01-06T14:27:36.622440288+00:00 ERROR Philips Hue LAN send error: closed
2023-01-06T14:27:36.634458621+00:00 ERROR Philips Hue LAN send error: closed
2023-01-06T14:27:36.645298288+00:00 ERROR Philips Hue LAN send error: closed
Get the same errors about 100 times per second. Going to delete the device for now so it does not impact my other devices and automations by slowing the hub down.
Thanks for the quick feedback. I am going to start the process of rolling this back to the non SSE version. The error in the logs, and the disconnect/reconnect issue, is coming from the SSE module ST released last week. I will likely remove it and write my own before re-releasing this, but Iāll see if I can get some followup from them. It will take a little longer, but I do plan to get this functionality out. The connection issues in that module seem to be exaggerated by having multiple connections to the same hub. Can you please answer the following question, even if it works for you?
Do you have any other devices connecting to the Hue Hubās event stream? SmartThings DTH? Amazon Echo? Home Assistant? Please indicate if it is working for you as part of the response
If I understand your question correctly I have SmartThings linked to both my Hue bridges for lights using the ST legacy method (I donāt use your driver for Hue lights at the moment). I have Alexa linked to Hue. Both those services are working.
I have a suspicion that this is the cause. I donāt think the SSE module they wrote can be run by multiple drivers at once. I plan to setup some experiments to verify this.
I believe I have this narrowed down to a root cause. The Hue hub can only support a limited number of simultaneous connections. I donāt have the exact number narrowed down, but I think it is in the range of 4-6. If the Hue hits that limit, it will start returning errors for requests. If you create a persistent connection to their event stream, it reserves one of these slots.
This means if you use the DTH, Alexa, Google Home or anything else that connects to the local stream, they will use at least one of the spots. I donāt know if cloud linked services count against this. Most drivers use at least 1 long running connection for the stream, and possibly 1 for device requests. The device requests can be intermittent, but that depends on the implementation.
I simulated this by opening multiple connections on the ST hub, so it is possible it is only limiting the number coming from a specific device. This would mean only the Edge driver and DTH would be involved. I donāt have an echo or google home to verify with non-ST devices.
All that said, if you had trouble with the previous version, please let me know how many Hue integrations you were using and if they were local or cloud. Feel free to send it in DM to keep this thread clean.
It will also show if its a direct connection or cloud. You might be surprised as well to discover lots of old IOS or Android Apps on their. I assume everytime they upgrade the app it creates a new account connection. I cleared up a load in my account from the last 3 years whilst in there.