Jump to content
  • 0

IHC Connection fail


Plindberg
 Share

Question

Hej til jer alle..

Jeg sidder lige og skulle have min controller online gennem Openhab, men får nogle fejl i loggen.. nogen der har mod på at hjælpe mig med at komme online igen :-)

 

 


 

2018-09-17 22:09:18.886 [INFO ] [nhab.binding.ihc.internal.IhcBinding] - Connecting to IHC / ELKO LS controller [IP='192.168.1.30' Username='admin' Password='******'].

2018-09-17 22:09:18.902 [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.30:443 [/192.168.1.30] failed: Connection refused (Connection refused)

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:103) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.ws.IhcAuthenticationService.authenticate(IhcAuthenticationService.java:54) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.ws.IhcClient.openConnection(IhcClient.java:195) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.internal.IhcBinding.connect(IhcBinding.java:160) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.internal.IhcBinding.execute(IhcBinding.java:198) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [194:org.openhab.core.compat1x:2.3.0]

at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [194:org.openhab.core.compat1x:2.3.0]

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.30:443 [/192.168.1.30] failed: Connection refused (Connection refused)

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) ~[?:?]

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[?:?]

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]

... 6 more

Caused by: java.net.ConnectException: Connection refused (Connection refused)

at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]

at java.net.Socket.connect(Socket.java:589) ~[?:?]

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) ~[?:?]

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ~[?:?]

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[?:?]

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]

... 6 more

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

Øhh sidder din controller ikke på dit lokale net? I såfald skal du ikke bruge portforward. 

1 time siden, Plindberg skrev:

2018-09-17 22:09:18.886 [INFO ] [nhab.binding.ihc.internal.IhcBinding] - Connecting to IHC / ELKO LS controller [IP='192.168.1.30' Username='admin' Password='******'].

2018-09-17 22:09:18.902 [WARN ] [nhab.binding.ihc.internal.IhcBinding] - Can't open connection to controller

Her får OpenHab slet ikke forbindelse. 
 

1 time siden, Plindberg skrev:

org.openhab.binding.ihc.ws.IhcExecption: org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.30:443 [/192.168.1.30] failed: Connection refused (Connection refused)

Her får OpenHab forbindelse til din controller. Men bliver afvist.
Så noget tyder på at du skal bruge 192.168.1.30:443

Har du hakket af i administrator, at du tillader forbindelse til 3.part ? (det mener jeg er nødvendigt). 
Hvilken version af IHC bindingen bruger du?

Link to comment
Share on other sites

  • 0

Jeg får ikke adgang til Administrator, på IP, har læst mig lidt frem til at man skal tilslutte via USB. Er desværre ikke i nærheden af controlleren de næste 14 dage :-( Dog skal det siges at jeg tidligere med succes haft adgang, og har ikke ændret noget på controlleren siden... 

Har indstastet korrekte oplysninger i ihc.cfg filen, så det skulle ikke være der?

Kunne det evt. være noget med java iforhold til Raspberry'en og Openhabian?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Privacy Policy og We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

1200x630bb.png

ok