MQTT <--> REST Bridge

See

You can very easily reproduce the MQTT EventBus with just a dozen lines of code and a couple of Groups. Or you can just use the library I posted at GitHub - rkoshak/openhab-rules-tools: Library functions, classes, and examples to reuse in the development of new Rules..

Or you can subscribe to OH’s REST APS SSE stream from Python if you’d rather make things more complicated and have it running in a separate process. But don’t poll. Use the SSE as it is intended to be used. You can see an example of this at GitHub - rkoshak/sensorReporter: A python based service that receives sensor inputs and publishes them in various ways..

Over all, having implemented this both ways, I can say it is by far less work and less complicated to just create the Thing and dozen lines of code (or download and use my library) that it would be to implement a bridge.

Also note that there is an add-on that will install Jython 2.7.1 onto openHAB for you, no need to download or install anything separately nor modify the arguments passed to Java when starting up openHAB.