Help for newbie OH2 and IHC binding

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=‘’ Username=‘admin’ Password=’******’].
2017-02-14 21:15:54.790 [WARN ] [nhab.binding.ihc.internal.IhcBinding] - Can’t open connection to controller org.apache.http.conn.HttpHostConnectException: Connect to [/] failed: Förbindelse vägras (Connection refused)
at org.openhab.binding.ihc.internal.IhcBinding.connect([181:org.openhab.binding.ihc:1.9.0]
at org.openhab.binding.ihc.internal.IhcBinding.execute([181:org.openhab.binding.ihc:1.9.0]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute([182:org.openhab.core.compat1x:2.0.0]
at org.openhab.core.service.AbstractActiveService$[182:org.openhab.core.compat1x:2.0.0]
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to [/] failed: Förbindelse vägras (Connection refused)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.MainClientExec.establishRoute([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.MainClientExec.execute([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.ProtocolExec.execute([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.RetryExec.execute([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.execchain.RedirectExec.execute([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.client.InternalHttpClient.doExecute([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.client.CloseableHttpClient.execute([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.client.CloseableHttpClient.execute([181:org.openhab.binding.ihc:1.9.0]
… 6 more
Caused by: Förbindelse vägras (Connection refused)
at Method)[:1.8.0_121]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket([181:org.openhab.binding.ihc:1.9.0]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect([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.

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)?


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?


1 Like