core icon indicating copy to clipboard operation
core copied to clipboard

Hue Sync does not find bridge

Open TobiS87 opened this issue 3 years ago • 26 comments

Since the Entertainment Zones are working so much better now (can actually add all my desired lights to them, ty :)) I tried syncing to Phillips HueSync for PC to get my "Ambilight" going. Unfotunately the program can not finde the bridge. I just searches the bridge forever. The prompt for link mode is triggered, but it never connects.

TobiS87 avatar Dec 31 '20 19:12 TobiS87

I think it may be the same problem as #41 . My Philips TV also doesn't discover Emulated Hue, but linking notification appear during discovery...

Mr-Groch avatar Jan 01 '21 09:01 Mr-Groch

version 0.0.8 is currently building to docker hub and should be available within an hour. can you give that a test drive please ?

marcelveldt avatar Jan 01 '21 13:01 marcelveldt

Thanks for the quick update. 0.0.8 really fixes some things. First of all the bridge ist found and I see the screen where I am prompted to press the sync button. When I then go into link mode the pairing never happens. The timer just runs out without anything happening.

The settings show the virtual bridge as found (and not paired), though.

The Add-On log gives me the following messsage:

2021-01-01 16:21:13,587 WARNING emulated_hue.api -- Invalid/unknown request: <Request GET /auth/v1 >

TobiS87 avatar Jan 01 '21 15:01 TobiS87

Thanks for the information! We'll need to test Hue Sync further to determine why it's not connecting.

alexyao2015 avatar Jan 01 '21 16:01 alexyao2015

I now dicovered that 0.0.8 crashes the hue app when trying to open the App. I wiped data on the app and now cant connect the emulated bridge in the hue app anymore. Ill do a completely fresh install (App an Add-On) later and try again.

As Hue Sync prompts that the bridge has to be connected over the hue app first maybe thats the issue... ill report back later.

TobiS87 avatar Jan 01 '21 16:01 TobiS87

Thats strange. Maybe the certificate was changed to the the mac detection revisions?

Try uninstalling and reinstalling the add-on and the app.

@marcelveldt Are certificates overwritten automatically if the Mac is changed?

alexyao2015 avatar Jan 01 '21 16:01 alexyao2015

Completely fresh install worked - so everything back to normal in the hue app.

Hue Snyc still doesnt work though. Same behavior as described an hour ago. Link mode is enabled but it will never connect. Patiently waiting for you guys doing your magic. ;)

TobiS87 avatar Jan 01 '21 16:01 TobiS87

Thats strange. Maybe the certificate was changed to the the mac detection revisions?

Try uninstalling and reinstalling the add-on and the app.

@marcelveldt Are certificates overwritten automatically if the Mac is changed?

No, but Hue apps are very restrictive about the certificate. So even if you automagically update the certificate on mac change, the Hue app will error out because the certificate doesn't match the mac. Maybe print an error in the logs when the certificate is (re)generated and store the mac in persistent config to detect this scenario.

In this case the issue is caused by the fact that the mac detection was fixed but that invalidated the certificate.

marcelveldt avatar Jan 01 '21 18:01 marcelveldt

Yes, we would likely still want to automatically update the certificate to avoid having to reinstall the add-on and lose the config. Reinstalling the app is a procedure that shouldn't hassle users that much.

alexyao2015 avatar Jan 01 '21 18:01 alexyao2015

We can also read the Mac directly off the certificate to avoid having to store the Mac in the config. See here.

alexyao2015 avatar Jan 01 '21 18:01 alexyao2015

checked in a fix for the certificate/mac detection. certificate will now be recreated if the mac changes somehow.

marcelveldt avatar Jan 01 '21 18:01 marcelveldt

HUE Sync is currently not compatible with this addon. If you try to downgrade your version of Hue sync to a previous version it might still work though. Philips changed something that we need to figure out ;-)

marcelveldt avatar Jan 01 '21 20:01 marcelveldt

Tried HueSync v 1.3.4.3 with 0.0.8. No luck. Waiting for 0.0.9 to be available.

wessller avatar Jan 01 '21 22:01 wessller

0.0.9 fixes the discovery issue so that might work with an older version of HUE Sync.

marcelveldt avatar Jan 01 '21 22:01 marcelveldt

0.0.10. Hue Sync 1.3.4.3. Can connect to the Emulated Bridge, see the Entertainment areas, use the Scenes from Hue sync but no actual Syncing from either Video or Games.

Hue Sync 1.5.1.0 Can not connect to Emulated Bridge. Pairing requests is received

Hue Sync 1.5.3.3 Can not connect to Emulated Bridge. Pairing requests is received

wessller avatar Jan 02 '21 00:01 wessller

Good to know that you find the version from where it broke ;-) Can you see a log stating that the entertainment mode server was started when you start Hue Sync ?

I'll try if I can lookup that version for MacOS too so I can have a test myself.

marcelveldt avatar Jan 02 '21 22:01 marcelveldt

I'm seeing it find and attempt to pair with the bridge, but once registered, it does not progress further. Logs show GET /api/nouser/config and GET /api/username/config Oddly enough, this would be indicative of incorrect data at either of these endpoints, but I've validated that the responses are exactly the same as an official bridge...

alexyao2015 avatar Jan 10 '21 08:01 alexyao2015

Hue Sync 1.3.4.3 should work on the fix/api-inconsistencies for now. Still need to figure out why the new versions of Hue Sync fail to pair.

alexyao2015 avatar Jan 10 '21 08:01 alexyao2015

I was just referred to this as my thread was closed. I don't use HueSync but Razer Synapse. It connects perfectly and also recognises the entertainment areas and the lights in them. Unfortunately, none of the lights respond even in the Hue app when I configure these areas (See thread Hue Entertainment - Lights not responding #69). They respond when arranging but no longer when testing the synchronisation.

Kh3nsu avatar Jan 11 '21 01:01 Kh3nsu

@WolfsWelpe the issue of non responding lights is being worked on, see #69

As for Hue Sync, only older versions work atm as the HUE api got a major upgrade which we need to implement. So Hue Sync 1.3.4.3 (or below) should work fine with current version of this addon.

marcelveldt avatar Jan 15 '21 23:01 marcelveldt

@WolfsWelpe the issue of non responding lights is being worked on, see #69

As for Hue Sync, only older versions work atm as the HUE api got a major upgrade which we need to implement. So Hue Sync 1.3.4.3 (or below) should work fine with current version of this addon.

I'm still not using Hue Sync ^^ Just Razer Synapse but maybe there is the same problem with the API.

Kh3nsu avatar Jan 16 '21 00:01 Kh3nsu

Stale issue message

github-actions[bot] avatar Mar 17 '21 02:03 github-actions[bot]

Hi everyone! I can confirm the same issue. The Android / iOS hue app works perfectly but on Windows it doesn't. Looks like it founds the bridge for half second and then it disappears. The discovery notification is triggered and nothing happens.

I can use some iOS third party apps like iLightShow but hueDynamic for Hue on Windows also doesn't work. After pairing it starts to say there was some communication issues with the bridge.

Let me know if there's anything I can do to help

Thanks!

BrunoN17 avatar Apr 12 '21 09:04 BrunoN17

This issue has been marked as stale due to no activity and will be closed in 7 days.

github-actions[bot] avatar Jun 12 '21 02:06 github-actions[bot]