13:29:34.150 [WARN ] [.internal.dataexchange.NukiApiServlet] - Could not handle request! Message[null]
java.lang.NullPointerException: null
at org.openhab.binding.nuki.internal.dataexchange.NukiApiServlet.service(NukiApiServlet.java:112) [190:org.openhab.binding.nuki:2.1.0.201705112100]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [31:javax.servlet-api:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [82:org.eclipse.jetty.security:9.3.21.v20170918]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.server.Server.handle(Server.java:534) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [84:org.eclipse.jetty.server:9.3.21.v20170918]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [76:org.eclipse.jetty.io:9.3.21.v20170918]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [76:org.eclipse.jetty.io:9.3.21.v20170918]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [76:org.eclipse.jetty.io:9.3.21.v20170918]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [87:org.eclipse.jetty.util:9.3.21.v20170918]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [87:org.eclipse.jetty.util:9.3.21.v20170918]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [87:org.eclipse.jetty.util:9.3.21.v20170918]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [87:org.eclipse.jetty.util:9.3.21.v20170918]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [87:org.eclipse.jetty.util:9.3.21.v20170918]
at java.lang.Thread.run(Unknown Source) [?:?]
I donāt get any status updates on the actions I trigger. E.g. ālock stateā remains āclosingā and never switches to āclosedā. Actions work well.
Rebooted bridge and OH server already.
What am I missing?
sorry for the delay!
to be frank, I didnāt pursue this issue any furtherā¦ My Mom is a better Status indicator than I am! Sheās got the Nuki App and tells me battery Status when she receives the notification!
ā¦ but as the days get Shorter, I try to find some time for my OH2 Installation and tweaking stuff.
but: what I noticed lately, that my Nuki Bridge oftentimes doesnāt find the Nuki Smart Lock or whatever that 503-error means:
2018-10-18 16:32:32.195 [WARN ] [ab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.state)' threw an exception. [response={"success": false}]
org.openhab.core.transform.TransformationException: Invalid path '$.state' in '{"success": false}'
at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) [194:org.openhab.core.compat1x:2.3.0]
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [218:org.openhab.binding.http: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]
2018-10-18 16:32:32.203 [WARN ] [ab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.batteryCritical)' threw an exception. [response={"success": false}]
org.openhab.core.transform.TransformationException: Invalid path '$.batteryCritical' in '{"success": false}'
at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) [194:org.openhab.core.compat1x:2.3.0]
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [218:org.openhab.binding.http: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]
2018-10-18 16:32:33.256 [WARN ] [ab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.stateName)' threw an exception. [response={"success": false}]
org.openhab.core.transform.TransformationException: Invalid path '$.stateName' in '{"success": false}'
at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) [194:org.openhab.core.compat1x:2.3.0]
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [218:org.openhab.binding.http: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]
that one isnāt from the callback, but from the API, if I try to open the door. sometimes it works in first attempt, sometimes you need a second or even third attempt to open the door via API.
@binderth503 means that the Smart Lock is offline (SL and Bridge are not able to communicate). Try to find a better place for your bridge (e.g. closer to the SL, direct visibility range, etc)
@mkatter Nothing nuki related. Canāt see any error messages. Did not work with the binding version 2.4 either (still OH 2.3 stable). Have implemented a workaround via IFTTT and get the status from there (door status closed/open).
Is it supposed to be working since @binderth seems to have the same issue?
I contacted you like 10times on several issues on my Nukiā¦
In the mean time I got two replacement Smart Locks - I hope your v2 Upgrade-plan for firsttime users (I was a Kickstarter from day one) is a real deal.
But if you think it helps - Iāll file an issue again, but first I have to make a few thorough tests!
IFTTT is ok for non-realtime use because of immense lagging. Iām still waiting for a Nuki Binding - or for some time for setting up rules and stuff of my own.
@mkatter
Do you have a release or feature note of changes?
What kind of JAR (2.1.0 or 2.4.0) for 2.3.0 stable build version should I use?
Is there any side effect if I use the newer JAR file? Now I use 2.1.0 (org.openhab.binding.nuki-2.1.0-SNAPSHOT.jar) and it works perfectly. No problems.
@The-Elk Iām running Raspbian Jessie, openHAB 2.3.0 (via apt, stable) and org.openhab.binding.nuki-2.4.0-SNAPSHOT.jar. Please see the README.md how to config the binding.
@mkatter thanks for providing an updated version. I guess this works with OH2.4 (it doesnāt with 2.3) therefore I need to update my system first. Will try and keep you posted ā¦
@Falk As I already said, I am running the current org.openhab.binding.nuki-2.4.0-SNAPSHOT.jar on openHAB 2.3 on a Raspberry Pi (yesterday manually upgraded to Raspbian Stretch).
pi@RasPi2:~ $ cat /var/lib/openhab2/etc/version.properties
openHAB Distribution Version Information
----------------------------------------
build-no : Release Build
online-repo : https://dl.bintray.com/openhab/mvn/online-repo/2.3
Repository Version
----------------------------------------
openhab-distro : 2.3.0
smarthome : 0.10.0.oh230
openhab-core : 2.3.0
openhab1-addons : 1.12.0
openhab2-addons : 2.3.0
karaf : 4.1.5
If the binding is ānot workingā for you, please post logs on trace level, thx!
@mkatter sorry for the confusion. I just realized that channels changed between versions.
This version of the binding works for me and the status is being updated as well!
I can also confirm your data of version.properties. Have same setup here.