[ST Edge] Philips Hue LAN [BETA] (3rd Party Driver, Not ST Native)

Hi,

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:-

  1. Successfully paired the hub, then went into the device to select the settings for what I would like importing
  2. Ran scan nearby, no devices were found, and when I went back to the device page the hub was showing as not conncted
  3. Rebooted the ST hub, Hue hub shown as connected again
  4. Reran the discovery process and all my devices were found
  5. Once discovery was complete, all the newly imported devices were showing a offline
  6. Rebooted the ST hub again.
  7. Once it came back online, all bar 2 of the devices using this driver was showing as offline, 1 exception being the Hue bridge
  8. 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

Have tried multiple hub reboots but all devices are still offline. Have the standard hue integration installed as well, but always have done.

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

System is:

9 rooms
5 scenes
60 lights
2 hubs
Network fully wired

Just looked at my log’s as well.

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.

Will reinstall once the issue is resolved

Getting the same error since the hotfix -

ERROR Philips Hue LAN send error: closed

Same error as @skinnypope now for me. An ST reboot resolved earlier this morning but now offline.

System:
9 rooms
1 hub
22 lights

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

1 Like

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.

2 Likes

I use Smarthings DTH and Amazon. Both are working without any issues.

I only use your driver for ST connection to Hue (I deleted the old method to free up device space).

I have Alexa connecting to ST but not to Hue.

I am still using ST DTH
+
Direct connection to Alexa

Both working ok.

Thanks

Published 2023-01-06.20.12.03.56

  • Reverted beta channel to the version published on 2022-12-12.22.13.19.79
  • The tag has been updated to 2023-01-06.20.12.03.56, but they are the same code.

I may reach out to some of you with an Alpha invite once a new version is available. Thank you for testing :+1:

5 Likes

This appears to have put me back in business.

Thanks!

Same here, thanks.

Also thanks for trying to push the driver with new features. Happy to live with the odd hiccup while you figure it out :+1:

3 Likes

All back to normal here too. Thank you.

It was just a reminder that this is a beta :slight_smile:

4 Likes

Back in business after attempting driver delete and rebooting ST hub.

Thanks for working through this so quickly. Happy to help in any Alpha or additional testing you need!

Update on SSE networking issues…

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.

1 Like

Hi,

I’ve added my devices again and all is working for the lights as I would expect.

In terms of connected services I have

ST - DTH
ST - Edge Drive
Alexa - Cloud.
Hue Android App
Hive -
Home Assistant
IFTT - Cloud

If people want to see the services connected its available on the following URL https://account.meethue.com/

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.

1 Like