Konnected - Beta Add support for Alarm Panel Pro

Hello,

Hoping someone can help.

I’ve got a new Konnected Pro board and a new install of 3.0 Openhabian on a Pi. I’ve got the 3.0 jar file for the binding in the addons directory and with upnp active, the binding discovers the konnected board. When I add it, I get three things by default. After that, I can’t get anything added for the zone things no matter what I’m trying.

Accessing the /status url on the konnected board yields a response that matches up with what I see in the debug logs. Looking at the /konnected url on the openhab server port yields a 500 error for a null pointer exception which matches what I see in the debug logs as well.

If I try to add a channel via the OH3 web UI, it adds for a minute, but never logs anything in the debug logs and it disappears from the web channel listing within about a minute after adding it.

I’m clearly doing something wrong, but I’m really quite unclear on what it is. I’m new to OH and 3.0 is my first install, so having most of the docs (for OH in general) apply to versions I’ve never seen is making things really hard.

I should note that I’ve updated the Konnected board to the latest firmware version.

Logs attached.
log-output.txt (15.5 KB)
Thanks for any help you can provide!

@volfan6415

A little more info - I did a pcap capture on the IP traffic between the Openhab server and the konnected pro board during a restart of the openhab service and it looks like the initial communication is fine: the JSON push to the konnected board is sane (valid JSON and matches the default three configured channels) and the konnected board responds with a 200. Then, the konnected board opens a new TCP session and sends a “GET /konnected/device/ea40f5207585?zone=alarm1 HTTP/1.1\r\n” to the OpenHab server on port 8080 to which the OH3 server responds with a 500 error.

Also, when trying to add a new channel, I’m not seeing any communication between the konnected board and the OH3 server.

Thanks!

@gb1227 what version of the firmware are you running on the konnected pro board?

@gb1227 Thanks for this you may have identified a bug. It looks like there is no JSON payload being sent with this first get request and my code doesn’t properly handle this and thus errors out

Firmware is v0.1.2-c6ad60 - which is the latest they seem to have available.

@volfan6415 That would explain the errors. Thanks! FWIW, I do have it mostly working now as follows: each zone is added to the Konnected thing as a channel with a channel ID of only the numeric value of the channel - i.e.: “1”, “2”, etc. Also, I cannot add zone “4”, or the whole things fails. So long as I name the channels that way and do not create a channel “4”, it all seems to work, though it does throw some exceptions.

Really appreciate all your work on this

@gb1227 can you send me a log when you have a channel with zone4 thanks!

I’m running openHAB 3.1.0 Release Build.

When I tried to add my Konnected Pro via the included binding, there was a handler error.

I deleted the binding and installed the JAR found here, however there was an error-

2021-08-14 00:19:26.688 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.konnected-3.0.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.konnected [286]
  Unresolved requirement: Import-Package: javax.measure; version="[1.0.0,2.0.0)"
	at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.16.200.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:440) ~[org.eclipse.osgi-3.16.200.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.8]

Can you provide the full log file?

The full log file is quite a lot of non-related stuff. Do you want debug logs from the Konnected Binding? If so, what event do you want to see?

[Unresolved requirement: Import-Package: javax.measure; version="2.1.0,3.0.0)" - Development - openHAB Community

I get the same - in the openhab.log file I get the following

2021-08-23 14:33:33.344 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.konnected-3.0.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.konnected [249]
  Unresolved requirement: Import-Package: javax.measure; version="[1.0.0,2.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.16.200.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:440) ~[org.eclipse.osgi-3.16.200.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.8]

extended logging:

2021-08-23 15:58:20.807 [INFO ] [org.apache.felix.fileinstall        ] - Installing bundle org.openhab.binding.konnected / 3.0.0.202101111558
2021-08-23 15:58:20.829 [DEBUG] [ell.impl.action.osgi.CommandExtender] - org.openhab.binding.konnected (257): Starting destruction process
2021-08-23 15:58:20.831 [DEBUG] [ell.impl.action.osgi.CommandExtender] - org.openhab.binding.konnected (257): Not an extended bundle or destruction of extension already finished
2021-08-23 15:58:20.835 [DEBUG] [ROOT                                ] - bundle org.apache.felix.scr:2.1.26 (72) bundle org.openhab.binding.konnected:3.0.0.202101111558 (257) : Starting destruction process
2021-08-23 15:58:20.837 [DEBUG] [ROOT                                ] - bundle org.apache.felix.scr:2.1.26 (72) bundle org.openhab.binding.konnected:3.0.0.202101111558 (257) : Not an extended bundle or destruction of extension already finished
2021-08-23 15:58:21.038 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.konnected-3.0.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.konnected [257]
  Unresolved requirement: Import-Package: javax.measure; version="[1.0.0,2.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.16.200.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:440) ~[org.eclipse.osgi-3.16.200.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.8]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.8]
2021-08-23 15:58:23.555 [DEBUG] [org.apache.felix.configadmin        ] - getConfiguration(pid=org.openhab.addons)
2021-08-23 15:58:23.557 [DEBUG] [org.apache.felix.configadmin        ] - Found cached configuration org.openhab.addons bound to mvn:org.openhab.core.bundles/org.openhab.core.karaf/3.1.0
2021-08-23 15:58:26.662 [DEBUG] [org.eclipse.jetty.io.IdleTimeout    ] - SocketChannelEndPoint@22bce2c4{l=/192.168.0.10:8080,r=/192.168.0.53:37796,OPEN,fill=-,flush=-,to=30000/30000}{io=0/0,kio=0,kro=1}->HttpConnection@1d3914e5[p=HttpParser{s=CONTENT,0 of -1},g=HttpGenerator@d4252a4{s=COMMITTED}]=>HttpChannelOverHttp@1d391f1d{s=HttpChannelState@7242b09{s=WAITING rs=ASYNC os=COMMITTED is=IDLE awp=false se=false i=false al=2},r=3,c=false/false,a=WAITING,uri=//192.168.0.10:8080/rest/events?topics=openhab/inbox/*,age=150141} idle timeout check, elapsed: 30000 ms, remaining: 0 ms
2021-08-23 15:58:26.665 [DEBUG] [org.eclipse.jetty.io.IdleTimeout    ] - SocketChannelEndPoint@22bce2c4{l=/192.168.0.10:8080,r=/192.168.0.53:37796,OPEN,fill=-,flush=-,to=30002/30000}{io=0/0,kio=0,kro=1}->HttpConnection@1d3914e5[p=HttpParser{s=CONTENT,0 of -1},g=HttpGenerator@d4252a4{s=COMMITTED}]=>HttpChannelOverHttp@1d391f1d{s=HttpChannelState@7242b09{s=WAITING rs=ASYNC os=COMMITTED is=IDLE awp=false se=false i=false al=2},r=3,c=false/false,a=WAITING,uri=//192.168.0.10:8080/rest/events?topics=openhab/inbox/*,age=150143} idle timeout expired
2021-08-23 15:58:26.667 [DEBUG] [org.eclipse.jetty.io.FillInterest   ] - onFail FillInterest@2b185c66{null}
java.util.concurrent.TimeoutException: Idle timeout expired: 30000/30000 ms
	at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:171) ~[?:?]
	at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:113) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
2021-08-23 15:58:26.673 [DEBUG] [rg.eclipse.jetty.io.AbstractEndPoint] - Ignored idle endpoint SocketChannelEndPoint@22bce2c4{l=/192.168.0.10:8080,r=/192.168.0.53:37796,OPEN,fill=-,flush=-,to=30011/30000}{io=0/0,kio=0,kro=1}->HttpConnection@1d3914e5[p=HttpParser{s=CONTENT,0 of -1},g=HttpGenerator@d4252a4{s=COMMITTED}]=>HttpChannelOverHttp@1d391f1d{s=HttpChannelState@7242b09{s=WAITING rs=ASYNC os=COMMITTED is=IDLE awp=false se=false i=false al=2},r=3,c=false/false,a=WAITING,uri=//192.168.0.10:8080/rest/events?topics=openhab/inbox/*,age=150152}
2021-08-23 15:58:56.676 [DEBUG] [org.eclipse.jetty.io.IdleTimeout    ] - SocketChannelEndPoint@22bce2c4{l=/192.168.0.10:8080,r=/192.168.0.53:37796,OPEN,fill=-,flush=-,to=30000/30000}{io=0/0,kio=0,kro=1}->HttpConnection@1d3914e5[p=HttpParser{s=CONTENT,0 of -1},g=HttpGenerator@d4252a4{s=COMMITTED}]=>HttpChannelOverHttp@1d391f1d{s=HttpChannelState@7242b09{s=WAITING rs=ASYNC os=COMMITTED is=IDLE awp=false se=false i=false al=2},r=3,c=false/false,a=WAITING,uri=//192.168.0.10:8080/rest/events?topics=openhab/inbox/*,age=180155} idle timeout check, elapsed: 30000 ms, remaining: 0 ms
2021-08-23 15:58:56.678 [DEBUG] [org.eclipse.jetty.io.IdleTimeout    ] - SocketChannelEndPoint@22bce2c4{l=/192.168.0.10:8080,r=/192.168.0.53:37796,OPEN,fill=-,flush=-,to=30002/30000}{io=0/0,kio=0,kro=1}->HttpConnection@1d3914e5[p=HttpParser{s=CONTENT,0 of -1},g=HttpGenerator@d4252a4{s=COMMITTED}]=>HttpChannelOverHttp@1d391f1d{s=HttpChannelState@7242b09{s=WAITING rs=ASYNC os=COMMITTED is=IDLE awp=false se=false i=false al=2},r=3,c=false/false,a=WAITING,uri=//192.168.0.10:8080/rest/events?topics=openhab/inbox/*,age=180157} idle timeout expired
2021-08-23 15:58:56.680 [DEBUG] [org.eclipse.jetty.io.FillInterest   ] - onFail FillInterest@2b185c66{null}
java.util.concurrent.TimeoutException: Idle timeout expired: 30000/30000 ms
	at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:171) ~[?:?]
	at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:113) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
2021-08-23 15:58:56.686 [DEBUG] [rg.eclipse.jetty.io.AbstractEndPoint] - Ignored idle endpoint SocketChannelEndPoint@22bce2c4{l=/192.168.0.10:8080,r=/192.168.0.53:37796,OPEN,fill=-,flush=-,to=30010/30000}{io=0/0,kio=0,kro=1}->HttpConnection@1d3914e5[p=HttpParser{s=CONTENT,0 of -1},g=HttpGenerator@d4252a4{s=COMMITTED}]=>HttpChannelOverHttp@1d391f1d{s=HttpChannelState@7242b09{s=WAITING rs=ASYNC os=COMMITTED is=IDLE awp=false se=false i=false al=2},r=3,c=false/false,a=WAITING,uri=//192.168.0.10:8080/rest/events?topics=openhab/inbox/*,age=180165}

Additional info:

I originally just did an upgrade to openhab 3 from 2
I did a fresh install of openhab 3 but still get the same error

Al Cam- I did the same thing. I’m glad I did a clean OH3 install, but this javax.measure issue is still a problem for me.

Does anyone have this successfully running on OH3? Also, I’m on a raspberry pi, so maybe people who do have it running are on a different architecture.

hey i will look into this. I should be able to get to it in a week or so. But hurricane ida has me displaced currently.

1 Like

Thanks Zach! I hope this is an easy fix!

Thanks Zachary.

One question - are you paid by konnected to do this?

I’m grateful that you work on it but keen to see it is properly funded and supported.

I am not paid. I was provided with devices free of charge.

Firstly, thanks for your efforts on this. It is very much appreciated.

I’m somewhat disappointed that Konnected don’t fund this properly.
I bought their boards because they had openHAB support. Had I known it wasn’t proper funded support I would not have bought Konnected.

I am going to write to them to ask they fund it properly.

At the moment we are completely dependent on your good work so could easily be left with boards that are useless. As it stands I’ve had to do a workaround to get the outputs working and can’t upgrade to OH3.

Yeah, I already dumped on the guy for saying “works seamlessly with OpenHAB.”

I was very disappointed and would never help him again. I mean, I backed him on Kickstarter and then got left out in the cold with regards to OpenHAB support. He basically said, it’s community support and I’m not going to do anything about it.

I only continue to complain because that’s how crowdfunding/community driven projects work- people should know that the guy that built this board is a hack.

Zach on the other hand, has been very helpful. Thanks for covering for the lame support offered by the company!