-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Harmony Hub unable to detect diyHue bridge #147
Comments
I've just tried using tcpdump to capture broadcast traffic from the Harmony Hub, and what I guess to be discovery query messages are received by the raspberry pi running diyHue:
Here is the corresponding diyHue debug output:
|
Here are some messages in more verbose format from tcpdump:
... which is odd, as "Hunter Douglas Powerview Hub" is another home control device supposedly supported by Harmony - and most definitely not "Philips Hue". Logitech, what have you done? Curiously when I scan for the Hue bridge from the official Hue app, I don't get any of these broadcast packets anyway - so perhaps this is all irrelevant? |
What protocol does hue bridge discovery use, out of interest? |
Hi, The discovery process is this:
in you case the detection stop at description.xml. Can you block Harmony to access the internet? One simple methods Philips provide to developers is to send an http request to https://www.meethue.com/api/nupnp and this reveal the details of hue bridges connected to the same network (based on source ip address). If Harmony use this method we cannot do anything. |
Thanks. That’s helpful. I think (if you look at my last set of tcpdump output above) that Harmony have broken the discovery mechanism. It appears to be trying to discover a Hunter Douglas Powerview Bridge when asked to discover the Hue Bridge - the messages are the same. The requests from 192.168.10.20 are from a PC running Plex. My Harmony Hub is at 192.168.10.227. David |
Nothing regarding 192.168.10.227 in your output. This means that very likely the Harmony switched to cloud based detection. Can you try to temporary cut the internet during the detection? Maybe it will fallback to regular detection. |
You don't find the presence of those "PDBU-Hub3.0" and "PowerView-Hub" strings (which Google identifies as relating to the Hunter Douglas Powerview Hub - https://www.google.com/search?q=%22PDBU-Hub3.0%22 and https://www.google.com/search?q=%22PowerView-Hub%22) suspicious? I see the exact same messages when asking Harmony to scan for a Hunter Douglas Powerview Hub. I think Logitech have simply broken their scanning! I added firewall rules to block access to the internet from the Harmony Hub, and it does try to establish a connection to 54.93.254.234 during discovery. However, it sadly doesn't fall back to local hue bridge detection. Update: actually it tries to establish connectivity to this address and 54.93.254.233 regularly - both are in AWS. I'm not sure that this is even related to the discovery process. |
check the output:
in both cases is returning an empty json list. I can confirm it 100% if i will power my original hue bridge, that will change the output at last on meethue.com. If the Synapse don't perform ssl validation i can make the hue emulator to return the correct json and with a simple dns overide for www.meethue.com the detection will work. |
That is certainly a coincidence! I get the same here. |
Yes, coincidence.
But are you sure no other addresses are accessed by Harmony? |
I see regular connection attempts every few seconds like:
... but they appear no more frequent during discovery. However, I do see a lot of UDP traffic during discovery only (like the fragment above). |
Ah! |
Are you able to override the local dns for this url? If yes i can create a test version that will output the needed json. |
Yes, I can - I've pointed it at the pi running hue-emulator: On my desktop:
However, I can't see any requests from the Harmony Hub to the hue emulator as a result - either in diyHue's debug output or in my firewall logs. I've power-cycled the hub to ensure its DNS cache is flushed, but it still doesn't seem to be trying to resolve www.meethue.com unfortunately. Oddly it's no-longer trying to connect to 35.201.97.239 either:
Connections to Retrying scan now (12:15) there are no further external connection attempts. No connections to diyHue:
|
Must be because the ssl fail as i don't have a trusted certificate for that domain. Only option remain to hack the Harmony device and install your own ca certificate there. You may try, but i don't know exactly how to block just 443 port and it may fallback to http. At last this is the behaviour for original Hue Bridge. |
Could be, although my firewall logging should have detected that. Not sure I’m up to hacking the harmony hub! What we really need is to find out the protocol used by the Philips hub to register itself with https://www.meethue.com/api/nupnp. That would allow diyHue to register itself with the real server (with its real certificate). |
I hacked my hue bridge and saw Philips secured the communication to cloud servers with sso authentication. Every hue bridge has an unique login key. |
Bother! This isn’t going to be easy... 😀 |
Try iptables rule on hue emulator host to drop connections frpm Harmony ip on port 443, maybe will fallback to http. |
I tried running diyHue with its
I think I'm reluctantly going to have to give up on using Hue to integrate my Homekit/Homebridge/NodeRed-based home automation stuff with Harmony. The only other proper Home Control option which it looks like I might be able to fake is LIFX Smart Bulbs. There's some documentation on the protocol (which I think is all local) around, and a rather old 'fake bulb' implementation at https://github.com/area3001/esp8266_lifx. If all else fails, I could just build an ESP with an IR receiver and put it next to the Harmony - but as I understand it I'll then only be able to use the home control buttons when remapped from within an activity. Thanks for all your help trying to get this to work though - it's greatly appreciated. David
|
Hello, Seems not to be impacted by latest Logi changes as the emulated hue is recognized. Renaud |
Interesting! So ha-bridge can discovered successfully by the Harmony Hub? |
I know in the past Harmony was working with diyhue, but now it seams they switched to cloud detection so not sure how ha-bridge can work. From what i see in readme they state that Harmony is using hue api for detection and for sure this is not happening now. The best i thing is to ask Logitech how to control with Harmony an offline hue bridge. |
I came to the same conclusion from the ReadMe! Renaud, do you have ha-bridge working under control of a Harmony Hub as a Home Automation device? If so, what version of the Harmony Hub and which remote are you using? Thanks. |
Thanks, I’ll give it a try later... I’m on the same hub software version but a slightly later app version (although I’m on iOS - you may be on Android). My iOS app version is 5.6.2, build 53. This shouldn’t be significant though, assuming that the hub does the discovery not the mobile device. |
I don't know what kind of magic is in use by Logitech to perform the discovery, no SSDP packet trace found... hence no description.xml emitted by the bridge. I only found those HTTP transactions which I was able to replay through curl :
|
Any output while accessing https://discovery.meethue.com/ ? Maybe ha-bridge somehow register with cloud servers. |
I started https://github.com/bwssytems/ha-bridge on my network (without any configuration), and my Harmony Hub discovered it (without any lights). A very interesting step in the right direction though... No output (
|
... and after a bit of messing around in the ha-bridge web interface, my Logitech Hub is talking to ha-bridge which is talking to diyHue which is talking to my FakeHue node.js script. Three raspberry pis for a virtual light! :-) |
Confirming no output from https://www.meethue.com/api/nupnp: So it would appear that ha-bridge is somehow supporting a local hue bridge discovery mechanism used by the harmony hub which diyHue doesn't support directly. The great news for me is that I have something I can use, but it would be fascinating to know why this works when diyHue alone doesn't. |
I forget one thing. The Hue Bridge broadcast every 30 seconds 6 SSDP notification messages. Maybe Harmony is looking for these. These SSDP messages are also implemented in the Hue Emulator but maybe the new updates to hue api changed the output format. Can you check with Wireshark what SSDP messages are broadcast by HA-Bridge and compare them to Hue-Emulator? Also i saw https://www.meethue.com/api/nupnp is deprecated now is used https://discovery.meethue.com. |
ha-bridge seems to emit a diy-hue issue 6x detailled ha-bridge SSDP packet content
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 2 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed as it has not had any recent activity. Thank you for your contributions. |
Is this being worked on? I would really love to get the pairing with my Harmony Hub |
you need to debug the pair process by youreself. Something is not working but i cannot figure what and i don't have Harmony Hub. |
@mariusmotea |
I have just stumbled across this and I think fixed it by reducing the sleep on the ssdpBroadcast function to .5s
|
@alexyao2015 can you please test the suggestion made by @imcfarla2003 and reduce the sleep to 0.5s? |
@imcfarla2003 That seemed to fix it for me too. Thanks |
Hi, im running Diy Hue in Home assistant and can't get the connection with my Harmony. Also cant find teh fix suggested by [imcfarla2003] |
Describe the bug
I've set up diyHue on a raspberry pi, along with a simple test light. Running the Hue App on my iPad I can connect to the hub and switch my light on and off.
However, when I try to add the diyHue device from to my Harmony Hub (on the same network), it fails.
To Reproduce
Steps to reproduce the behavior:
In Harmony App:
Shows: 'Scanning for Philips Hue bridge, Please wait...'
'Discovering Hue bridge'
Then fails with error: No Philips Hue bridge was detected !
Make sure your Harmony Hub and Hue bridge are connected to the same Wi-Fi network
My bridge is connected to the same through a wired connection to the same LAN as my Harmony Hub.
Expected behavior
Harmony Hub is documented as supported by diyHue, so I had expected it to be able to discover and connect to it.
Logs
No requests are seen from the Harmony Hub (192.168.10.227). 192.168.10.224 here is my iPad:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: