Advice on starting with Jython and NGRE

Python3 will eventually be available for use in scripted automation, and possibly in a couple forms. Whichever form is used, there will be very limited, if any, migration needed for scripts and modules written for Jython 2.7, so there should be no concern of obsolescence. Jython development is active and there is a possibility that some form of Jython3 could be available before OH 3.0 is released, but I think that would be unlikely if we are targeting an end of year release. Graal-python is also an option, but it looks to be not quite fully baked.

Before Sebastian pops up :slight_smile:, you could use Python3 with the third-party rule engine HABApp, but it is far from scripted automation and is limited to the functionality available in the REST API.

If you search the forum for Jython3, you’ll find some discussions. Here is one…

Hopefully soon, the maintainers will decide what I need to do to get the Jython and helper library add-ons merged. Until then, you can use this…

Once the Jython add-ons have been merged, I will submit add-ons for Nashorn, Kotlin, Groovy, and jRuby.

4 Likes