Harmony Binding Stopped Working in OH1

i cant’t make it work too … i can’t even find some trace of discovery name in the log :slight_smile:

19:49:35.066 [INFO ] [c.internal.ModelRepositoryImpl:80 ] - Loading model ‘harmony.items’
19:49:35.081 [DEBUG] [i.internal.GenericItemProvider:154 ] - Processing binding configs for items from model ‘harmony.items’
19:49:35.085 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.099 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.142 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.153 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.163 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.187 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.199 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.209 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:35.220 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
19:49:44.712 [INFO ] [o.harmonyhub.HarmonyHubGateway:88 ] - HarmonyHub gateway activated
19:49:44.739 [DEBUG] [h.internal.HarmonyHubActivator:34 ] - HarmonyHub action has been started.
19:49:45.226 [DEBUG] [o.harmonyhub.HarmonyHubGateway:263 ] - Connecting to 192.168.111.8 with user XXX@XXX.XXX
19:49:45.698 [ERROR] [o.harmonyhub.HarmonyHubGateway:270 ] - Failed creating harmony hub connection to 192.168.111.8
at net.whistlingfish.harmony.protocol.AuthService.getLoginToken(AuthService.java:45) ~[harmony-java-client-1.0.4.jar:1.0.4]
at net.whistlingfish.harmony.HarmonyClient.connect(HarmonyClient.java:111) ~[harmony-java-client-1.0.4.jar:1.0.4]
at org.openhab.io.harmonyhub.HarmonyHubGateway.connectClient(HarmonyHubGateway.java:264) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway.connect(HarmonyHubGateway.java:228) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway.access$0(HarmonyHubGateway.java:201) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway$1.run(HarmonyHubGateway.java:194) [bundlefile:na]
at net.whistlingfish.harmony.protocol.AuthService.getLoginToken(AuthService.java:41) ~[harmony-java-client-1.0.4.jar:1.0.4]
19:49:45.701 [DEBUG] [o.harmonyhub.HarmonyHubGateway:263 ] - Connecting Chambre to 192.168.111.9 with user XXX@XXX.XX
19:49:45.783 [ERROR] [o.harmonyhub.HarmonyHubGateway:270 ] - Failed creating harmony hub connection to 192.168.111.9
at net.whistlingfish.harmony.protocol.AuthService.getLoginToken(AuthService.java:45) ~[harmony-java-client-1.0.4.jar:1.0.4]
at net.whistlingfish.harmony.HarmonyClient.connect(HarmonyClient.java:111) ~[harmony-java-client-1.0.4.jar:1.0.4]
at org.openhab.io.harmonyhub.HarmonyHubGateway.connectClient(HarmonyHubGateway.java:264) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway.connect(HarmonyHubGateway.java:228) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway.access$0(HarmonyHubGateway.java:201) [bundlefile:na]
at org.openhab.io.harmonyhub.HarmonyHubGateway$1.run(HarmonyHubGateway.java:194) [bundlefile:na]
at net.whistlingfish.harmony.protocol.AuthService.getLoginToken(AuthService.java:41) ~[harmony-java-client-1.0.4.jar:1.0.4]
19:49:57.157 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘harmonyTV (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.

this is my config file :

harmonyhub:host=192.168.111.8
harmonyhub:username=XXX@XX.XX
harmonyhub:password=XXXXX
harmonyhub:discoveryName=Salon

harmonyhub:Chambre.host=192.168.111.9
harmonyhub:username=XXX@XX.XX
harmonyhub:password=XXXXX
harmonyhub:Chambre.discoveryName=Chambre

Try commenting out your username and password. That’s what I did on mine to make it try to connect through the discovery name.

hum… now i got this :

00:26:23.346 [ERROR] [o.harmonyhub.HarmonyHubGateway:230 ] - Config must have either a discoveryName or host/username/password

2016-12-02 21:36:46.319 [WARN ] [o.harmonyhub.HarmonyHubGateway] - Could not find a HarmonyHub with the discovery name Harmony Hub
2016-12-02 21:36:48.568 [WARN ] [c.a.internal.AutoUpdateBinding] - InstantiationException on
2016-12-02 21:36:50.454 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule ‘hdmi’: No client ‘’ defined
2016-12-02 21:36:51.998 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule ‘tv’: No client ‘’ defined

:sob:
With me also does not work anymore

I screwed something up, I’ll take a look soon And post back

I have OH1 :frowning:

harmonyhub:discoveryName=Harmony Hub I already inserted openhab.cfg

Hello,
I have OH 1.8.3 and all 3 addons 1.8.3 in the addons folder.
I removed the host, user and pass from the config file and used the harmonyhub:discoveryName=Llivingroom (livingroom being my hub’s name).
I rebooted my rpi and restarted OH.
It doesn’t work!

What am i doing wrong?

Thanks.

Two “Ll” in Llivingroom: copy and paste error or syntax error?

Man this writing mistake is unfortunately only here, in the openhab.cfg there’s no mistake and still not working :frowning:
harmonyhub:discoveryName=Livingroom

Then I guess you have to wait for

By putting the adress ip in comment it seam to have fix something now i don’t have error but when I trigger some item it doesn’t work and say something like that

19:33:25.485 [DEBUG] [b.h.internal.HarmonyHubBinding:123 ] - internalReceiveCommand(harmonyTVCH,ON) is called!
19:33:25.486 [DEBUG] [b.h.internal.HarmonyHubBinding:140 ] - PressButton command:ON q:null p1:33806617 p2:PowerToggle
19:33:25.487 [DEBUG] [o.harmonyhub.HarmonyHubGateway:338 ] - pressButton for qualifer null deviceId 33806617 and button PowerToggle
19:33:25.491 [DEBUG] [c.a.internal.AutoUpdateBinding:112 ] - Received update of a not accepted type (OnOffType) for item harmonyTVCH

or

19:39:18.367 [DEBUG] [b.h.internal.HarmonyHubBinding:123 ] - internalReceiveCommand(Sfc3800,ON) is called!
19:39:18.367 [DEBUG] [b.h.internal.HarmonyHubBinding:140 ] - PressButton command:ON q:null p1:37562858 p2:Diy1
19:39:18.368 [DEBUG] [o.harmonyhub.HarmonyHubGateway:338 ] - pressButton for qualifer null deviceId 37562858 and button Diy1

I had a look this weekend and didn’t see anything obvious, I will see if I can do some more testing today

Hi,
I downloaded the snapshot from wiki commented the ip, user and pass in the oh.cfg rebooted the pi and still not working…

Be patient :slight_smile:

We should be thankful that he is still maintaining an openHAB1 binding!

Thanks, I’m glad so many find it useful (when its working!).

I just updated the jar, can people try downloading it again? I found I had a index out of bounds exception being swallowed in the code. I also made a few more cleanups. If discoveryName is used, then username and password are ignored (so it should not matter if they are there). If host is specified then it will ONLY broadcast to that host and not the broadcast address. I am on a VPN connection over a crappy link right now and was not able to see if the Harmony was responding, but I will try to test tonight (PST) .

Working! Just replace the .jar file and now up and running!
Great work, thanks!
/J

What is the latest link to get this? I just moved back from OH2 to OH1 due to issues and now discovered this problem.

https://github.com/digitaldan/openhab/releases/download/harmony-host-fix/org.openhab.io.harmonyhub-1.9.0-SNAPSHOT.jar

So we are weeks away from a GA, what made you move back? I would hope we can all be on 2.0 soon!

Thanks,
I am still getting this error.
2016-12-08 02:04:12.433 [WARN ] [o.harmonyhub.HarmonyHubGateway] - Could not find a HarmonyHub with the discovery name hub
"
Do I need to update any of the other harmony jar’s?

I have tried renaming the hub as well and get no response still.

Open to suggestions.

I had a few issues. Probably mostly me.

  • I was having issues with the REST API (Item would change state but not activate light)
    and losing the ability to do CMD HTTP gets made it harder.
  • Had trouble with harmony but didn’t look into it. Harmony Hub would be found and never initialise
  • Had issue with Zwave but think I worked that out when gong back to OH1.
  • My main issue was time to get it up and running work through bugs. It has just hit summer here in Australia and it runs my sprinkler system. I needed it reliable as I am going away and had t revert back as I didn’t have time to work it out.