Help for newbie OH2 and IHC binding

Hi
New to this and trying to learn, not good at linux either so bear with me.
Trying to add my IHC controller to OH2. But need your guys help.

My log shows following information, which makes me understand that connection didnt go so well…
Where do i start?

2017-02-14 21:15:54.660 [INFO ] [nhab.binding.ihc.internal.IhcBinding] - Connecting to IHC / ELKO LS controller [IP=‘192.168.1.100’ Username=‘admin’ Password=’******’].
2017-02-14 21:15:54.790 [WARN ] [nhab.binding.ihc.internal.IhcBinding] - Can’t open connection to controller
org.openhab.binding.ihc.ws.IhcExecption: org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.100:443 [/192.168.1.100] failed: Förbindelse vägras (Connection refused)
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:103)[181:org.openhab.binding.ihc:1.9.0]
at org.openhab.binding.ihc.ws.IhcAuthenticationService.authenticate(IhcAuthenticationService.java:54)[181:org.openhab.binding.ihc:1.9.0]
at org.openhab.binding.ihc.ws.IhcClient.openConnection(IhcClient.java:195)[181:org.openhab.binding.ihc:1.9.0]
at org.openhab.binding.ihc.internal.IhcBinding.connect(IhcBinding.java:160)[181:org.openhab.binding.ihc:1.9.0]
at org.openhab.binding.ihc.internal.IhcBinding.execute(IhcBinding.java:198)[181:org.openhab.binding.ihc:1.9.0]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:157)[182:org.openhab.core.compat1x:2.0.0]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173)[182:org.openhab.core.compat1x:2.0.0]
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.100:443 [/192.168.1.100] failed: Förbindelse vägras (Connection refused)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)[181:org.openhab.binding.ihc:1.9.0]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119)[181:org.openhab.binding.ihc:1.9.0]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87)[181:org.openhab.binding.ihc:1.9.0]
… 6 more
Caused by: java.net.ConnectException: Förbindelse vägras (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.8.0_121]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[:1.8.0_121]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[:1.8.0_121]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[:1.8.0_121]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_121]
at java.net.Socket.connect(Socket.java:589)[:1.8.0_121]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)[181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)[181:org.openhab.binding.ihc:1.9.0]
… 17 more

I know nothing of this binding but the error is a permission problem.

Hi Johan.
I set up an OpenHAB2 with IHC link last night and it went through ok. You have to check what access level is allowed for the user on the IHC side. I noticed also that I have Third Party Programs access on the IHC admin view too.

What version IHC controller are you using and what is the firmware loaded into it?

Triple check the address, user, password and the permissions of the user you are using. Test the connection using the ihc visual, and use the same credentials.
Regards

IHC controller (if IP is correct) refuse the connection in TCP level, so problem shouldn’t be related to access levels or passwords as authentication messages are not yet send.

Are openhab and IHC controller in the same network (no HTTP proxies, etc)?

Hi!

You guys are all right. IHC was apperently disconnected. Seems to be
connected now. Sorry for that. What is next step, creating an item? Is
there a good step by step guide for this?

Thx
Johan

1 Like