I know that Openhab has its own rule engine but for a student project I have to use Esper to define rules for my Openhab system.
@watou proposed to use an MQTT Broker to connect Openhab to an Esper Engine to share the occuring sate updates among them. Could anybody explain how this could work in detail?
How can I “translate” state updates from Openhab to Event-Objects that can be processed by Esper?
There have been a fair number of changes to Jython, and I don’t believe that esper has been updated to reflect that. I am not in a situation where I can troubleshoot this. @5iver might have some ideas?
Are you loading the Esper component script? The docs have been rewritten, and things are being shifted around in the repo. The Esper package and examples didn’t quite fit in anywhere, so it was archived. See if this info helps. There is also a PR to restructure the repo, which will provide a better way of storing/communicating this sort of JSR223-Jython example code.
Let us know if you can get it working. In reading through it, nothing stood out as needing to be updated to use the updates in the ESH automation API, but I’ve never used the code. Glad you got the hello_world.py script running (hello)!