Harmony Binding Stopped Working in OH1

Just a short feedback: For me this latest snapshot works like a charme!
Runtime version 1.8.3

Thank you very much for your great work!! Harmony binding is an important part of my media setup.

Cheers,
Sebastian

Nop, not working :frowning:
I now have only the latest jar in the addons folder (deleted the other Harmony jars).
I don’t understand how these addons work for some of us and doesn’t work for the rest! It depends on the OH version? Mine is 1.8.3.
@digitaldan sorry for bothering you but any chance to take a look on this binding this weekend?
@sihui patience is all I have right now :slight_smile: just a little bit disappointed that after purchasing the Logitech remote I cannot use it as I want 

Thanks.

it’does’nt work for me too 


I don’t find anything in th log :

18:19:16.076 [INFO ] [c.internal.ModelRepositoryImpl:80 ] - Loading model ‘harmony.items’
18:19:16.086 [DEBUG] [i.internal.GenericItemProvider:154 ] - Processing binding configs for items from model ‘harmony.items’
18:19:16.093 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.104 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.118 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.132 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.142 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.152 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.162 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.187 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:16.199 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model ‘harmony.items’
18:19:26.661 [INFO ] [o.harmonyhub.HarmonyHubGateway:88 ] - HarmonyHub gateway activated
18:19:26.675 [DEBUG] [h.internal.HarmonyHubActivator:34 ] - HarmonyHub action has been started.
18:19:38.634 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘harmonyTV (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.635 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘chandelleON (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.636 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘Harmony_Activity (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.637 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘harmonyTVCH (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.638 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘CHLedOn (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.638 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘CHLedOFF (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.639 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘harmonySLed (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.640 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘SLedStrobe (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.640 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘SLedFade (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.641 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘Sfc3800 (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.642 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘Sff9900 (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.643 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘Sffff00 (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.644 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘S00ffff (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.644 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘S0000ff (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.645 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘S0000ff (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.646 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘S9900ff (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.647 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘Sff00ff (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.647 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘Sff00ff (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.648 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘S00ff00 (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.648 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘Sffffff (Type=StringItem, State=Uninitialized)’ with ‘HarmonyHubGenericBindingProvider’ reader.
18:19:38.654 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 harmonyTVCH
18:19:38.655 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 SLedFade
18:19:38.655 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 Sfc3800
18:19:38.655 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 Harmony_Activity
18:19:38.655 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 harmonySLed
18:19:38.655 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 S9900ff
18:19:38.655 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 S00ffff
18:19:38.656 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 S00ff00
18:19:38.656 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 chandelleON
18:19:38.656 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 Sffff00
18:19:38.656 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 Sffffff
18:19:38.656 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 CHLedOFF
18:19:38.657 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 Sff00ff
18:19:38.657 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 Sff9900
18:19:38.657 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 CHLedOn
18:19:38.657 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 SLedStrobe
18:19:38.657 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 S0000ff
18:19:38.658 [DEBUG] [b.h.internal.HarmonyHubBinding:62 ] - bindingChanged org.openhab.binding.harmonyhub.internal.HarmonyHubGenericBindingProvider@2aabf779 harmonyTV
18:19:38.658 [DEBUG] [b.h.internal.HarmonyHubBinding:205 ] - addHarmonyHubGateway, configured false
18:19:40.876 [DEBUG] [riptExtensionClassNameProvider:63 ] - Script actions have changed: ExecActionService, TransformationActionService, AudioActionService, HarmonyHubActionService, MqttActionService, PingActionService, HTTPActionService, XBMCActionService,
18:21:45.786 [DEBUG] [c.a.internal.AutoUpdateBinding:112 ] - Received update of a not accepted type (OnOffType) for item harmonyTVCH
18:21:45.787 [DEBUG] [b.h.internal.HarmonyHubBinding:123 ] - internalReceiveCommand(harmonyTVCH,ON) is called!
18:21:45.787 [DEBUG] [b.h.internal.HarmonyHubBinding:140 ] - PressButton command:ON q:null p1:33806617 p2:PowerToggle
18:21:45.790 [DEBUG] [o.harmonyhub.HarmonyHubGateway:342 ] - pressButton for qualifer null deviceId 33806617 and button PowerToggle

I had the same issue (repeating “Read items from 
”) at first.

I hab two problems when installing the right addon file.

First my download wasn’t complete and I copied a file with just ~ 2mb size, before I realized it should be about 4mb.

My second problem was I downloaded the wrong file, I guess.
I realized there was a difference of 5 bytes betweeen the download from github and the file from jenkins.

This one workes for me in the end:
org.openhab.io.harmonyhub-1.9.0-SNAPSHOT.jar
md5: 1e6be1874d00706d3e93befda06e2950
sha1: b0f4c20b6e2b0ca91af8f4481ae63739e37e35f4
size: 4400300 bytes

It must have been the jenkins download.
But the current jenkins build is 2 bytes smaller and therefore has a diffenrent checksum. :confused:

I downloaded the file three days ago (2016-12-06 evening), but don’t know how to link to that particular file.
If anybody does, please post the link here and add it to the wiki.

Maybe the current jenkins build works as well.
https://openhab-ci.innoq.io/jenkins/view/openHAB/job/openhab-1/ws/bundles/io/org.openhab.io.harmonyhub/target/

Great work @digitaldan

Sup? As I see in the link you posted the jar file has 4.2mb, did you take it from here?

Yes, but that link directs you to the newest build wich seems slightly different than what I downloded three days ago.

4400300 bytes /1024 / 1024 = 4,19mb

Still not working for me 
 :frowning:

Same for me!
Could someone who tried this binding tell us what to change in oh.cfg? Should we delete user/pass/ip? And let only the name as it says on wiki? Or it’s enough to comment these info?

I have commented all the old statements including IP and just added disoveryName in openhab.cfg. Works for me without issues up to now.

did the same and it’s not working 
 it’s working on OH2 so i’m planing a migration 
 but i have a bug in OH2 too it’s not initializing the item when the server restart so i need to delete it and recreate it

What OH are you using and what binding? can you please post the links for download?
Thanks

I’ve already mentioned these information some posts above

Hi

I currently have a strange problem with this binding (the new 1.9 one): When I restart my OH Server it seems that the discovery of the HUB doesn’t work. In the logfile I can’t get any information, the only one is

[INFO ] [o.harmonyhub.HarmonyHubGateway] - HarmonyHub gateway activated
... 
[DEBUG] [o.harmonyhub.HarmonyHubGateway] - running for qualifier  and client null

I can’t really reproduce this but now I’ve found out that if I start the system without my item, it seems to work correctly (don’t know whether or not this really makes the difference but it worked several times now). After the OH Server is running, i can add my item and everything works fine (until next server restart). Does anyone have an idea???

My (only) item for this binding is

String  VAR_Living_Harmony_Activity  "AktivitÀt [%s]" (GRP_Living_Media)  {  harmonyhub="<[currentActivity]" }

Regards
Dieter

Tried this and it finds the hub, but I cannot trigger activities. Could it be that the add-on has trouble with multiple hubs in one account. This is everything I get out of the log if I try to update via sitemap:

12:39:02.186 [DEBUG] [b.h.internal.HarmonyHubBinding:123  ] - internalReceiveCommand(Harmony_Kino_Activity,FireTV) is called!
12:39:02.194 [DEBUG] [o.harmonyhub.HarmonyHubGateway:436  ] - startActivity for qualifer Kino and activity FireTV
12:39:02.206 [DEBUG] [o.harmonyhub.HarmonyHubGateway:317  ] - running for qualifier Kino and client null

And this is the output if I try it via a rule:

12:42:02.530 [ERROR] [o.o.c.s.ScriptExecutionThread :48   ] - Error during the execution of rule 'startcinema'
java.lang.NullPointerException: null
        at org.openhab.action.harmonyhub.internal.HarmonyHubActionService.isProperlyConfigured(HarmonyHubActionService.java:47) ~[na:na]
        at org.openhab.action.harmonyhub.internal.HarmonyHub.harmonyStartActivity(HarmonyHub.java:93) ~[na:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
        at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:729) ~[na:na]
        at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._featureCallOperation(XbaseInterpreter.java:713) ~[na:na]
        at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
        at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) ~[na:na]
        at org.openhab.model.script.interpreter.ScriptInterpreter.internalFeatureCallDispatch(ScriptInterpreter.java:69) ~[na:na]
        at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._evaluateAbstractFeatureCall(XbaseInterpreter.java:658) ~[na:na]
        at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
        at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) ~[na:na]
        at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:218) ~[na:na]
        at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._evaluateBlockExpression(XbaseInterpreter.java:321) ~[na:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
        at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291) ~[na:na]
        at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:218) ~[na:na]
        at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.evaluate(XbaseInterpreter.java:204) ~[na:na]
        at org.openhab.model.script.internal.engine.ScriptImpl.execute(ScriptImpl.java:59) ~[na:na]
        at org.openhab.core.scriptengine.ScriptExecutionThread.run(ScriptExecutionThread.java:44) ~[na:na]

I managed to get it working by re-assigning the name in the Harmony Hub App. Before that I had the problem with “Could not find a HarmonyHub with the discovery name LivingRoom”.

Could you please share your items? i think there might be a problem wit my items config

Thanks.

I got it!!!
The problem was that i deleted all the harmony jar files from the addons and i had only the io snapshot :slight_smile: you have to have also the harmony binding jar 1.8.3 or whatever release!
Now does anyone know how to turn on the tv on a specific chanel? i tried to create an activity in the harmony app tu turn my tv on on a specific channel lets say channel 123 and it turns my tv on the last channel so its not working.
Any help near the new year will be kindly appreciated :slight_smile:

Thanks all and HAPPY NEW 2017!!! to all

After substituting org.openhab.io.harmonyhub-1.9.0-SNAPSHOT.jar by above mentioned version https://openhab-ci.innoq.io/jenkins/view/openHAB/job/openhab-1/ws/bundles/io/org.openhab.io.harmonyhub/target/ it works again.
The strange thing is, that the “old” binding worked for me for weeks without any change. But suddenly since a few days, the binding stopped working 
 this new binding now works now again. Hope it runs for mor than some weeks :wink:
Thanks @digitaldan for your excellent work!

In general the new addon 1.9.0 SNAPSHOT is working and is able to read values.

But actions seem to be a problem - see the following errors:

#1:
18:48:00.682 [DEBUG] [o.harmonyhub.HarmonyHubGateway:373 ] - pressButton for qualifer Harmony Hub device Telekom DVR and button Play
18:48:00.683 [DEBUG] [o.harmonyhub.HarmonyHubGateway:317 ] - running for qualifier Harmony Hub and client null
18:48:00.686 [ERROR] [o.o.c.s.ScriptExecutionThread :50 ] - Error during the execution of rule ‘Incoming Call Active - Mute’: No client ‘Harmony Hub’ defined

#2:
18:45:24.817 [DEBUG] [o.harmonyhub.HarmonyHubGateway:373 ] - pressButton for qualifer null device Telekom DVR and button Pause
18:45:24.818 [DEBUG] [o.harmonyhub.HarmonyHubGateway:317 ] - running for qualifier and client null
18:45:24.820 [ERROR] [o.o.c.s.ScriptExecutionThread :50 ] - Error during the execution of rule ‘Incoming Call Active - Mute’: No client ‘’ defined

Today I needed to restart my openhab and now the harmony doesn’t work again (it run the last 15 days).

[o.harmonyhub.HarmonyHubGateway] - Could not find a HarmonyHub with the discovery name harmonyhub

I’ll give it up now and am going to solder an arduino with IR emitter (MySensors). This should work stable :frowning: