Hello, I try to send the value of Xiaomi humidity sensor from openHAB HTTP binding, but in Zipato there is nothing. When I send status ON or OFF, it works well, but with the value, it doesn’t work. I have linked humidity thing to the below item. Now I have at the end of the URL %2$s, but it must be wrong because it doesn’t take the value of the linked item. It should look like:
Number Zipato_vlhkost_kuchyne { http=">[*:POST:https://my.zipato.com/zipato-web/remoting/myfulladdres&value=%2$s]" }
Can you help me, please? I dont know, where is the mistake.
2019-01-31 11:24:30.210 [WARN ] [org.apache.karaf.services.eventadmin] - EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=openhab/update/Zipato_vlhkost_kuchyne] {item=Zipato_vlhkost_kuchyne, state=41.209999084472656, bridgemarker=true, timestamp=1548930270203} | {org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler}={service.id=324, service.bundleid=214, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.http, component.name=org.openhab.binding.http, component.id=16} | Bundle(org.openhab.binding.http_1.12.0 [214])]
java.util.IllegalFormatConversionException: f != java.util.Date
at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302) [?:?]
at java.util.Formatter$FormatSpecifier.printFloat(Formatter.java:2806) [?:?]
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2753) [?:?]
at java.util.Formatter.format(Formatter.java:2520) [?:?]
at java.util.Formatter.format(Formatter.java:2455) [?:?]
at java.lang.String.format(String.java:2940) [?:?]
at org.openhab.binding.http.internal.HttpBinding.formatAndExecute(HttpBinding.java:267) [214:org.openhab.binding.http:1.12.0]
at org.openhab.binding.http.internal.HttpBinding.internalReceiveUpdate(HttpBinding.java:122) [214:org.openhab.binding.http:1.12.0]
at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:113) [201:org.openhab.core.compat1x:2.3.0]
at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:39) [201:org.openhab.core.compat1x:2.3.0]
at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) [3:org.apache.karaf.services.eventadmin:4.1.5]
at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.1.5]
at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.1.5]
at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.1.5]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]