OpenHAB cannot login to Harmony Hub

I have followed the setup guide on the openHAB website and then the Harmony Binding guide from the OH wiki. All I have is the demo and this Harmony Binding setup. I have tried on 3 different machines following the same guide and have the same error everytime. I have tried on two seperate win10 machines and an Ubuntu.

2016-03-08 08:51:28.436 [INFO ] [o.harmonyhub.HarmonyHubGateway] - HarmonyHub gateway activated
2016-03-08 08:51:30.927 [ERROR] [o.harmonyhub.HarmonyHubGateway] - Failed creating harmony hub connection to <192.168.1.6>
java.lang.RuntimeException: Failed to connect to Logitech auth service
at net.whistlingfish.harmony.protocol.AuthService.getLoginToken(AuthService.java:43) ~[harmony-java-client-1.0.3.jar:1.0.3]
at net.whistlingfish.harmony.HarmonyClient.connect(HarmonyClient.java:111) ~[harmony-java-client-1.0.3.jar:1.0.3]
at org.openhab.io.harmonyhub.HarmonyHubGateway.connectClient(HarmonyHubGateway.java:193) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway.access$0(HarmonyHubGateway.java:189) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway$1.run(HarmonyHubGateway.java:176) [bundlefile:na]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_73]
Caused by: java.io.IOException: Error while reading from POST: [400] Bad Request
{“ErrorCode”:1,“Id”:“261b253f-c3ef-4448-9c66-72231ae38f91”,“Message”:“Authentication failure BadCredentials : Unable to authenticate user’s mail with the corresponding password via ‘AuthenticationService/ADLDS’. GetUserAuthToken.Email:: mitch@null.net”,“Source”:“GetUserAuthToken”}
at us.monoid.web.AbstractResource.fill(AbstractResource.java:51) ~[resty-0.3.2.jar:na]
at us.monoid.web.Resty.fillResourceFromURL(Resty.java:432) ~[resty-0.3.2.jar:na]
at us.monoid.web.Resty.doPOSTOrPUT(Resty.java:394) ~[resty-0.3.2.jar:na]
at us.monoid.web.Resty.json(Resty.java:223) ~[resty-0.3.2.jar:na]
at us.monoid.web.Resty.json(Resty.java:228) ~[resty-0.3.2.jar:na]
at net.whistlingfish.harmony.protocol.AuthService.getLoginToken(AuthService.java:34) ~[harmony-java-client-1.0.3.jar:1.0.3]
… 5 common frames omitted
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: https://svcs.myharmony.com/CompositeSecurityServices/Security.svc/json/GetUserAuthToken
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[na:1.8.0_73]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[na:1.8.0_73]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) ~[na:1.8.0_73]
at us.monoid.web.AbstractResource.fill(AbstractResource.java:30) ~[resty-0.3.2.jar:na]
… 10 common frames omitted
Exception in thread “Thread-23” java.lang.IllegalArgumentException: No client ‘’ defined
at org.openhab.io.harmonyhub.HarmonyHubGateway.withClient(HarmonyHubGateway.java:218)
at org.openhab.io.harmonyhub.HarmonyHubGateway.addListener(HarmonyHubGateway.java:358)
at org.openhab.binding.harmonyhub.internal.HarmonyHubBinding.bindingChanged(HarmonyHubBinding.java:100)
at org.openhab.binding.harmonyhub.internal.HarmonyHubBinding.allBindingsChanged(HarmonyHubBinding.java:114)
at org.openhab.binding.harmonyhub.internal.HarmonyHubBinding.configured(HarmonyHubBinding.java:225)
at org.openhab.io.harmonyhub.HarmonyHubGateway.setProperlyConfigured(HarmonyHubGateway.java:100)
at org.openhab.io.harmonyhub.HarmonyHubGateway.access$1(HarmonyHubGateway.java:97)
at org.openhab.io.harmonyhub.HarmonyHubGateway$1.run(HarmonyHubGateway.java:178)
at java.lang.Thread.run(Unknown Source)

Wrong username or password?

I have triple checked this. IP, Username and Password are all right. I really am stumped as to what the problem is.

harmonyhub:smart.host=<192.168.1.6>
harmonyhub:smart.username=******@null.net
harmonyhub:smart.password=<*******>

Are the < > symbols in your config? It’s definitely not liking the username and/or pass, is there a special character in the password that maybe we are not parsing right, something that stands out as non standard ?

Yes the <> are in the config, I have followed everything in the Harmony Binding wiki. They are also on the username too, I left them out in my post by accident. I have also tried them all without the <> and it doesnt give me any error, but it also gives me no information at all, no login attempt, nothing.

And no the password is alpha-numeric, no odd characters.

I am using the Harmony Smart hub.
Config:
############################### LOGITECH HARMONY HUB ##################################
harmonyhub:smart.host=<192.168.1.6>
harmonyhub:smart.username=<******@null.net >
harmonyhub:smart.password=<******>

Items:
String Harmony_Activity “activity [%s]” { harmonyhub="*[currentActivity]" }

Sitemap:
sitemap AMA label=“AMA”

{
Frame {
Switch item=Harmony_Activity mappings=[PowerOff=‘Power Off’, APPLETV=‘APPLE TV’, BIGSCREEN=‘BIG SCREEN’] }
}

Do not add < > to any of the items, that’s just formatting in the
documentation meaning “fill in here”, for example:

harmonyhub:smart.host=192.168.1.6
harmonyhub:smart.username=******@null.net
harmonyhub:smart.password=******

Thank you, I am a bit angry the solution was as simple as that, have spent hours trying to get it to connect.

The debug console shows that it connected fine, and lists all the activities and devices.

It happends to the best of us :wink: Glad it’s working for you.