After updating OpenHAB to ver 2.5.12-1 the processing of items which read values from a Volkszahler database don’t work anymore.
The /var/log/openhab2/openhab.log contains:
[ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=379, bundle=219/mvn:org.openhab.binding/org.openhab.binding.http/[1.14.0,1.15)]: Unexpected problem updating configuration org.openhab.http
java.lang.NumberFormatException: For input string: "30000 # milliseconds"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:652) ~[?:?]
at java.lang.Integer.valueOf(Integer.java:983) ~[?:?]
at org.openhab.binding.http.internal.HttpBinding.updated(HttpBinding.java:535) ~[?:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) ~[bundleFile:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [bundleFile:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [bundleFile:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1118) [bundleFile:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1074) [bundleFile:?]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [bundleFile:?]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [bundleFile:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
After I changed then update interval value in Paper UI from “30000 # milliseconds” to simply “30000” the error changes to:
[ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=379, bundle=219/mvn:org.openhab.binding/org.openhab.binding.http/[1.14.0,1.15)]: Unexpected problem updating configuration org.openhab.http
java.lang.NumberFormatException: For input string: "30000.0"
The http.cfg file is unchanged an looks like this:
# see https://www.openhab.org/addons/bindings/http1/
# timeout in milliseconds for the http requests (optional, defaults to 5000)
#timeout=
# the interval in milliseconds when to find new refresh candidates
# (optional, defaults to 1000)
#granularity=
# whether to substitute the current time or state value into the URL
# (optional, defaults to true)
#format=
# configuration of the first cache item
#<id1>.url=
#<id1>.updateInterval=
# Smartmeter / RPI Volkszaehler - without middleware very low latency!!! Only the 4 original channels show up
smartmeter.url=http://xxx.xxx.xxx.xxx:8080/
smartmeter.updateInterval=30000
Does anyone know what causes this behavior? I the old Version 2 it worked for months.
Best regards,
Armin