openhab-addons: [Netatmo] Thermostat UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
Hi,
i am getting a error where the thermostat does not come online and i get UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
both the API and Relay are both online and fine, any help would be most appreciated.
error is logs is
08:37:21.384 [ERROR] [rnal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.netatmo.internal.thermostat.NATherm1Handler@720f681a': null
java.lang.NullPointerException: null
at org.openhab.binding.netatmo.internal.thermostat.NAPlugHandler.getLastBilan(NAPlugHandler.java:75) ~[?:?]
at org.openhab.binding.netatmo.internal.thermostat.NAPlugHandler.getNAThingProperty(NAPlugHandler.java:64) ~[?:?]
at org.openhab.binding.netatmo.handler.AbstractNetatmoThingHandler.lambda$3(AbstractNetatmoThingHandler.java:84) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:?]
at java.util.Iterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:?]
at org.openhab.binding.netatmo.handler.AbstractNetatmoThingHandler.updateChannels(AbstractNetatmoThingHandler.java:82) ~[?:?]
at org.openhab.binding.netatmo.handler.NetatmoDeviceHandler.updateChannels(NetatmoDeviceHandler.java:122) ~[?:?]
at org.openhab.binding.netatmo.handler.NetatmoModuleHandler.lambda$2(NetatmoModuleHandler.java:88) ~[?:?]
at java.util.Optional.ifPresent(Unknown Source) [?:?]
at org.openhab.binding.netatmo.handler.NetatmoModuleHandler.requestParentRefresh(NetatmoModuleHandler.java:88) [211:org.openhab.binding.netatmo:2.2.0]
at org.openhab.binding.netatmo.handler.NetatmoModuleHandler.initialize(NetatmoModuleHandler.java:46) [211:org.openhab.binding.netatmo:2.2.0]
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [111:org.eclipse.smarthome.core:0.10.0.b1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [111:org.eclipse.smarthome.core:0.10.0.b1]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
08:37:21.390 [ERROR] [home.core.thing.internal.ThingManager] - Exception occurred while initializing handler of thing 'netatmo:NATherm1:b85cb107:0400000dd660': null
java.lang.NullPointerException: null
at org.openhab.binding.netatmo.internal.thermostat.NAPlugHandler.getLastBilan(NAPlugHandler.java:75) ~[?:?]
at org.openhab.binding.netatmo.internal.thermostat.NAPlugHandler.getNAThingProperty(NAPlugHandler.java:64) ~[?:?]
at org.openhab.binding.netatmo.handler.AbstractNetatmoThingHandler.lambda$3(AbstractNetatmoThingHandler.java:84) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:?]
at java.util.Iterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:?]
at org.openhab.binding.netatmo.handler.AbstractNetatmoThingHandler.updateChannels(AbstractNetatmoThingHandler.java:82) ~[?:?]
at org.openhab.binding.netatmo.handler.NetatmoDeviceHandler.updateChannels(NetatmoDeviceHandler.java:122) ~[?:?]
at org.openhab.binding.netatmo.handler.NetatmoModuleHandler.lambda$2(NetatmoModuleHandler.java:88) ~[?:?]
at java.util.Optional.ifPresent(Unknown Source) [?:?]
at org.openhab.binding.netatmo.handler.NetatmoModuleHandler.requestParentRefresh(NetatmoModuleHandler.java:88) [211:org.openhab.binding.netatmo:2.2.0]
at org.openhab.binding.netatmo.handler.NetatmoModuleHandler.initialize(NetatmoModuleHandler.java:46) [211:org.openhab.binding.netatmo:2.2.0]
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [111:org.eclipse.smarthome.core:0.10.0.b1]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [111:org.eclipse.smarthome.core:0.10.0.b1]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
08:37:21.390 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'netatmo:NATherm1:b85cb107:0400000dd660' changed from OFFLINE: Pending parent object initialization to UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
08:37:21.404 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'netatmo:NATherm1:b85cb107:0400000dd660' has been updated.```
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 52 (24 by maintainers)
Commits related to this issue
- Corrects issue #3048 and hopefully #3066 Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to clinique/openhab-addons by clinique 6 years ago
- [netatmo] Corrects issue #3048 and hopefully #3066 (#3082) Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to openhab/openhab-addons by clinique 6 years ago
- [Netatmo] small bug fix Some small changes fixing a part of #3048 and some general small cleanups Signed-off-by: Martin van Wingerden <martinvw@mtin.nl> — committed to martinvw/openhab2-addons by martinvw 6 years ago
- [Netatmo] small bug fix (#3089) Some small changes fixing a part of #3048 and some general small cleanups Signed-off-by: Martin van Wingerden <martinvw@mtin.nl> — committed to openhab/openhab-addons by martinvw 6 years ago
- Progressing on issue #3048 Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to clinique/openhab-addons by clinique 6 years ago
- [netatmo] Corrects issue #3048 and hopefully #3066 (#3082) Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to aogorek/openhab2-addons by clinique 6 years ago
- [Netatmo] small bug fix (#3089) Some small changes fixing a part of #3048 and some general small cleanups Signed-off-by: Martin van Wingerden <martinvw@mtin.nl> — committed to aogorek/openhab2-addons by martinvw 6 years ago
- [netatmo] Corrects issue #3048 and hopefully #3066 (#3082) Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to aogorek/openhab2-addons by clinique 6 years ago
- [Netatmo] small bug fix (#3089) Some small changes fixing a part of #3048 and some general small cleanups Signed-off-by: Martin van Wingerden <martinvw@mtin.nl> — committed to aogorek/openhab2-addons by martinvw 6 years ago
- [netatmo] Corrects issue #3048 and hopefully #3066 (#3082) Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to gitMiguel/openhab-addons by clinique 6 years ago
- [Netatmo] small bug fix (#3089) Some small changes fixing a part of #3048 and some general small cleanups Signed-off-by: Martin van Wingerden <martinvw@mtin.nl> — committed to gitMiguel/openhab-addons by martinvw 6 years ago
- [netatmo] Corrects issue #3048 and hopefully #3066 (#3082) Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to trokohl/openhab2-addons by clinique 6 years ago
- [Netatmo] small bug fix (#3089) Some small changes fixing a part of #3048 and some general small cleanups Signed-off-by: Martin van Wingerden <martinvw@mtin.nl> — committed to trokohl/openhab2-addons by martinvw 6 years ago
- [netatmo] Corrects issue #3048 and hopefully #3066 (#3082) Signed-off-by: Gaël L'hopital <glhopital@gmail.com> — committed to trokohl/openhab2-addons by clinique 6 years ago
- [Netatmo] small bug fix (#3089) Some small changes fixing a part of #3048 and some general small cleanups Signed-off-by: Martin van Wingerden <martinvw@mtin.nl> — committed to trokohl/openhab2-addons by martinvw 6 years ago
- Introducing Planning capability for Thermostat module. Introduces force refresh of the cached API data on update pushed. This supersedes PR #3097 and should solve issue #3048 Signed-off-by: Gaël L'ho... — committed to clinique/openhab-addons by clinique 6 years ago
- Introducing Planning capability for Thermostat module. Introduces force refresh of the cached API data on update pushed. This supersedes PR #3097 and should solve issue #3048 Reintroduce refreshInterv... — committed to clinique/openhab-addons by clinique 6 years ago
- Introducing Planning capability for Thermostat module. Introduces force refresh of the cached API data on update pushed. This supersedes PR #3097 and should solve issue #3048 Reintroduce refreshInterv... — committed to clinique/openhab-addons by clinique 6 years ago
@martinvw : yes. I’m on it. It’s refreshing based on cached values, so coming back to previous data.
So this is fixed by PR #3336? Can we close this issue now?
You can test by downloading an updated jar on the same link. It introduces a 1.8 sec delay between update and refresh. Seems to be good on my side.
@Victory2018 : yes, this is what I’m trying to do, introducing a delay between changing setpoint temperature and refresh request. It seems that with 2 seconds it works. Will send you an updated binding soon.
@martinvw here we go, something about it not passing the current setpoint_temp?
HTTP POST https://api.netatmo.net/api/setthermpoint?device_id=*************&module_id=04%3A00%3A00%3A0d%3Ad6%3A60&setpoint_mode=manual —> END HTTP (no body) <— HTTP 400 https://api.netatmo.net/api/setthermpoint?device_id=*************&module_id=04%3A00%3A00%3A0d%3Ad6%3A60&setpoint_mode=manual (1391ms) Server: nginx Date: Mon, 08 Jan 2018 19:28:05 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Cache-Control: no-cache, must-revalidate Expires: 0 X-XSS-Protection: 1; mode=block Access-Control-Allow-Origin: * Strict-Transport-Security: max-age=10886400; includeSubDomains X-Powered-By: Netatmo OkHttp-Selected-Protocol: http/1.1 OkHttp-Sent-Millis: 1515439683260 OkHttp-Received-Millis: 1515439684650
{“error”:{“code”:10,“message”:“setpoint_temp are mandatory in this mode”}} <— END HTTP (74-byte body)
Really sorry. It works fine on my side 😦 But I do see the origin of the error in the upper log. Let me see, I think I can correct this