Http item switching socket (Blitzwolf)

i’m new to openhab.
My item (Alan socket) does not work:

Switch Licht_Wohnzimmer_Stehlampe (gWohnen) {http=">[ON:POST:] >[OFF:POST:]"}

If I send the request via url it works.
What did I do wrong?

Errors in the logs?

no errors in the log

2020-02-10 18:03:48.749 [ome.event.ItemCommandEvent] - Item ‘Licht_Wohnzimmer_Stehlampe’ received command ON
2020-02-10 18:03:48.789 [vent.ItemStateChangedEvent] - Licht_Wohnzimmer_Stehlampe changed from OFF to ON
2020-02-10 18:03:52.343 [ome.event.ItemCommandEvent] - Item ‘Licht_Wohnzimmer_Stehlampe’ received command OFF
2020-02-10 18:03:52.383 [vent.ItemStateChangedEvent] - Licht_Wohnzimmer_Stehlampe changed from ON to OFF

but in the openhab.log:

2020-02-09 15:38:58.276 [WARN ] [] - EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=openhab/command/Licht_Wohnzimmer_Stehlampe] {item=Licht_Wohnzimmer_Stehlampe, bridgemarker=true, command=ON, timestamp=1581262738270} | {, org.osgi.service.event.EventHandler}={, service.bundleid=233, service.scope=bundle, event.topics=openhab/*,,,} | Bundle(org.openhab.binding.http_1.14.0 [235])]
java.util.UnknownFormatConversionException: Conversion = ‘O’
at java.util.Formatter$FormatSpecifier.conversion( ~[?:1.8.0_222]
at java.util.Formatter$FormatSpecifier.( ~[?:1.8.0_222]
at java.util.Formatter.parse( ~[?:1.8.0_222]
at java.util.Formatter.format( ~[?:1.8.0_222]
at java.util.Formatter.format( ~[?:1.8.0_222]
at java.lang.String.format( ~[?:1.8.0_222]
at org.openhab.binding.http.internal.HttpBinding.formatAndExecute( ~[?:?]
at org.openhab.binding.http.internal.HttpBinding.internalReceiveCommand( ~[?:?]
at org.openhab.core.binding.AbstractBinding.receiveCommand( ~[?:?]
at ~[?:?]
at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent( [bundleFile:?]
at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming( [bundleFile:?]
at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute( [bundleFile:?]
at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$ [bundleFile:?]
at java.util.concurrent.Executors$ [?:1.8.0_222]
at [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_222]
at [?:1.8.0_222]

Please How to use code fences.

You will never see errors in events.log.

The error looks like it is complaining about the “O” from “ON” in the URL. I don’t know if the binding supports URL encoding symbols like that. You might try just putting in the space or an escaped space \ instead of the %20.

The %20s would probably work if the format config setting was set to false.

The %20 s would probably work if the format config setting was set to false.


that’s it. Now it works.

Thank you very much!