bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 198 forks source link

Linking HABridge in Harmong #1327

Open rutj87 opened 3 years ago

rutj87 commented 3 years ago

Hi Team, Hoping someone can help! I have previously had my Harmony Hub and HABridge working together however have changed my setup to Unraid and have deployed a new instance of HABridge. Since this I can’t get Harmony to discover the emulated Phillips Hue. The standard container had the default port set to 8080. I have tried this set to 80 and still having no luck with Harmony discovering. Any help or suggestion would be greatly appreciated. Thanks

Romain125 commented 2 years ago

Hi, May be related...or not I don't know...but I'm having trouble linking my HABridge on Raspberry with my Harmony.

Detection goes well on Harmony side but it prompts to push the physical button on the bridge. As far as I read through the previous issues, the HABridge is always configured to be "Button pressed".

I tried with the "Link" button, didn't work. The fun fact it that it works well on windows with the same version.

Edit : I was investigating and noted a difference between the windows and the linux execution : Apparently, while scanning for devices, Harmony call the POST:/api/* which result in an "unauthorized used" in linux (whereas windows displays all devices)... This is not a security issue, I managed to deactivate the security from the config file. Apparently Harmony does not even bother to request any api from the HA Bridge...

By best guess right now is that the UPnP is not working properly while running as a SystemD. Same issue while running from a Docker container...

Final edit : Got it ! It had nothing to do with HA-Bridge. Apparently Harmony is only able to work with one Hue Bridge. So when I was prompted to press the button, it waited for my Windows HA-Bridge for being pressed and wasn't able to discover my raspberry one. So I rebooted the Harmony Hub (as well as my wifi network) and it apparently forgot the Windows HA to discover and work properly with my Raspberry HA...

Nothing to do with the original issue I guess but I'm leaving it here as documentation