How can I start / stop a "Thing " with Openhab 3.2

  • Platform information:
    • Release = Raspbian GNU/Linux 10 (buster)

Kernel = Linux 5.10.17-v7l+

Platform = Raspberry Pi 4 Model B Rev 1.4

  • openHAB version: 3.2.0-SNAPSHOT - Build #2614

I have tried to stop a “Thing” in a rule. In Openhab 2x it was working:

sendHttpPutRequest(“http://user:password@”, “application/json”, “false”, 5000)

I recieve the following warning message:
[WARN ] [s.impl.WebApplicationExceptionMapper] - HTTP 415 Unsupported Media Type
at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(
at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(
at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(
at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(

How can I start / stop a "Thing " with Openhab 3.2

Thanks in advance.

According to the API Docs the media type is “text/plain”, not “application/json”.