What is the state of InsteonPLM binding on OH2? It doesn’t show up in the stock options yet.
Also, possibly to put under UI, but under Paper UI I can remove groups but when I added a group it was automatically called ‘test’ and can’t be renamed. And there is no option within the GUI to add/remove/change items within a group.
I’ve got OH2b1 build #106 (2016.01.27) working with ecobee and a few things but…
I get the following error for the insteonplm binding after a couple minutes which worries me that the new, more rigorous requirements of eclipse or whatever means it needs to be patched/fixed.
Exception in thread "Thread-36" java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse;
Exception in thread "/hub2/Mirabell:BAxfhx6l@192.168.1.120:25105,poll_time=1000 Writer" java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse;
In the IDE, the call to execute shows this warning:
Discouraged access: The method ‘CloseableHttpClient.execute(HttpUriRequest)’ is not API (restriction on required library ‘[…]/openhab/ws/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.apache.httpcomponents.httpclient_4.3.6.v201411290715.jar’)
The package org.apache.http.impl.client is marked “x-internal:=true” in MANIFEST.MF, and the IDE marks the Apache HTTP classes used as deprecated.
I think code changes are needed to the InsteonPLM binding so it uses different HTTP classes that are supported in both OH1 and OH2.
Thanks for reviewing this.
Code changes are still out of my league (I’m a beginner to Rpi, Linux, openhab, github, cloudbees and java) but it confirms that I need to go back to an earlier version of OH for now.
It would be wise to stay on OH1 for the time being, until the insteonplm binding can find a solution to resolving the version of the org.apache.http classes it needs. The org.apache.http package is a trainwreck of deprecated classes, and I suspect that the
x-interal flag in Equinox is merely advisory, while in Karaf it prevents the imported package actually importing (needs further investigation, obviously).
Could you help by creating a new issue with your findings, with a link back to here?
The least I can do is try - it will be my first!
Thank you @watou
@Bernd_Pfrommer, @dan_pfrommer, have you seen this thread? Appears InsteonPLM is using a http client library that isn’t supported with OH2. I looked at the Netatmo binding and it has:
And it works with OH2. If I had a hub, I’d try and fix (USB PLM only).
I do not support OH2 at this time. Somebody else needs to make the necessary modifications and test under OH2.
@Bernd_Pfrommer, is it possible to switch http libraries to a OH2 supported library, then others could test it? @maintainer, can you suggest one that should be used instead?
In issue 3922, @Kai linked to a thread where alternatives are discussed. Some participants there claimed the alternatives are not thread safe. Not sure if we even use the HttpClient in a multi-threaded fashion. At any rate, it didn’t sound like a one line fix.
See my comment on the issue: It is not that OH2 does not support the Apache HTTP client. It is that the InsteonPLM binding uses an internal class of that library that must not be used. OH1 only by mistake does not notice this illegal access. So the fix should be fairly simply, just have a look at the solution given in the link that I posted on the issue.
FYI… I saw in another thread that InsteonPLM works in OH2 if you use a PLM and not a hub.
I tried it this weekend and can confirm that I have OH2b3 working with InsteonPLM by switching to the USB PLM.
I know Bernd - it’s not supported - but it works (at least so far).
Can help me? I don’t know how to setup insteon on oh2
What do you mean by the USB PLM? Are you using a INSTEON USB MODEM INTERFACE with the standard INSTEON PLM binding?
interesting. I’ve got the Hub so this is still not resolved. But I’ll keep trying.
Definitely recommend the 2413U PLM. I had the Hub for a while. Absolute garbage. I have not tried Insteon with OH2 again yet. I’m sticking with 1.8.* for now until 2.0 is a more mature product. Everything I have is working in 1.8.* and I’m not in the mood to break it nor would that make my wife happy.