# \#jsr223

**URL:** https://community.openhab.org/tag/jsr223/88.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [Python3 Binding (Discussion)](https://community.openhab.org/t/python3-binding-discussion/161914)

<div class="topic-metadata">

**Author:** [@holger\_hees](https://community.openhab.org/u/holger_hees)\
**Replies:** 263\
**Last updated:** [September 15, 2026, 8:38am UTC](https://community.openhab.org/t/python3-binding-discussion/161914 "2026-09-15T08:38:18Z")

</div>

The pythonscripting binding for openHAB is the successor of the jython binding. It is testet in openhab 5.1.x, 5.0.x and 4.3.x Details can be found in marketplace for openhab 5.0.x and openhab 4.3.x openhab 5.1.x alre…

---

## [EXTRA\_JAVA\_OPTS changed back to "Standard" after Upgrade to OH2.5.2](https://community.openhab.org/t/extra-java-opts-changed-back-to-standard-after-upgrade-to-oh2-5-2/93584)

<div class="topic-metadata">

**Author:** [@fibu-freak](https://community.openhab.org/u/fibu-freak)\
**Replies:** 14\
**Last updated:** [March 5, 2026, 6:40am UTC](https://community.openhab.org/t/extra-java-opts-changed-back-to-standard-after-upgrade-to-oh2-5-2/93584 "2026-03-05T06:40:29Z")

</div>

After Upgrading to OH2.5.2 my environment-variable (/etc/default/openhab2) was set back from EXTRA\_JAVA\_OPTS="-Xms250m -Xmx350m -Xbootclasspath/a:/etc/openhab2/automation/jython/jython-standalone-2.7.0.jar -Dpython.home…

---

## [How can Groovy be installed manually (not as add-on)?](https://community.openhab.org/t/how-can-groovy-be-installed-manually-not-as-add-on/165313)

<div class="topic-metadata">

**Author:** [@dpa-openhab](https://community.openhab.org/u/dpa-openhab)\
**Replies:** 3\
**Last updated:** [August 5, 2025, 5:04pm UTC](https://community.openhab.org/t/how-can-groovy-be-installed-manually-not-as-add-on/165313 "2025-08-05T17:04:16Z")

</div>

Hello, in the Add-On Store the documentation for Groovy Scripting is „provides support for Groovy … and eliminates the need to manually install Groovy.“ The same is stated at openhab-addons/bundles/org.openhab.automati…

---

## [How to get Item Metadata in Groovy scripting OH4.3](https://community.openhab.org/t/how-to-get-item-metadata-in-groovy-scripting-oh4-3/164142)

<div class="topic-metadata">

**Author:** [@amandel](https://community.openhab.org/u/amandel)\
**Replies:** 6\
**Last updated:** [May 19, 2025, 8:45pm UTC](https://community.openhab.org/t/how-to-get-item-metadata-in-groovy-scripting-oh4-3/164142 "2025-05-19T20:45:33Z")

</div>

Hi, I need some help for this topic. I’ve already tried a lot and I’m sure there is an easy way to get the Metadata that is assigned to an Item from an jsr223 script using Groovy. Id like to use some “shading” related …

---

## [HOWTO: Generic Tag-Based Button Scene Handling](https://community.openhab.org/t/howto-generic-tag-based-button-scene-handling/163888)

<div class="topic-metadata">

**Author:** [@johnuopini](https://community.openhab.org/u/johnuopini)\
**Replies:** 3\
**Last updated:** [May 1, 2025, 6:56am UTC](https://community.openhab.org/t/howto-generic-tag-based-button-scene-handling/163888 "2025-05-01T06:56:24Z")

</div>

Hi everyone, I want to share a clean and generic pattern I’ve been using in my OpenHAB setup to handle button input (e.g., HUE Zigbee switches) and trigger scenes cycling through them, using only groups and metadata wit…

---

## [Using of Conditions in JavaScript/ECMAScript 262 Edition 11](https://community.openhab.org/t/using-of-conditions-in-javascript-ecmascript-262-edition-11/163272)

<div class="topic-metadata">

**Author:** [@Gaure](https://community.openhab.org/u/Gaure)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 5:22pm UTC](https://community.openhab.org/t/using-of-conditions-in-javascript-ecmascript-262-edition-11/163272 "2025-03-25T17:22:39Z")

</div>

Hi, im searching the documentation and the community for a hint how to specify a condition like a trigger in JavaScript/ECMAScript 262 Edition 11. How would be the syntax to use the numericState of the Item (victron\_ou…

---

## [Mmdev: A JSR223 library for defining all your items and rules in Jython](https://community.openhab.org/t/mmdev-a-jsr223-library-for-defining-all-your-items-and-rules-in-jython/158151)

<div class="topic-metadata">

**Author:** [@miningmarsh](https://community.openhab.org/u/miningmarsh)\
**Replies:** 1\
**Last updated:** [September 10, 2024, 4:42pm UTC](https://community.openhab.org/t/mmdev-a-jsr223-library-for-defining-all-your-items-and-rules-in-jython/158151 "2024-09-10T16:42:36Z")

</div>

Preface I’ve had a few people ask me at various times for a copy of my OpenHAB configuration. I’ve taken some time to clean up the code a bit, and I think I’m finally ready to release it. This library contains an update…

---

## [Updated Ivan's Helper Libraries](https://community.openhab.org/t/updated-ivans-helper-libraries/157028)

<div class="topic-metadata">

**Author:** [@miningmarsh](https://community.openhab.org/u/miningmarsh)\
**Replies:** 0\
**Last updated:** [July 4, 2024, 7:38pm UTC](https://community.openhab.org/t/updated-ivans-helper-libraries/157028 "2024-07-04T19:38:59Z")

</div>

I have updated Ivan’s Helper Libraries to correctly run directory watches on the latest OpenHAB versions. I have also included a fix from a different fork that apparently makes working with transforms functional. I haven…

---

## [How to use the Scratchpad?](https://community.openhab.org/t/how-to-use-the-scratchpad/155706)

<div class="topic-metadata">

**Author:** [@wertzui](https://community.openhab.org/u/wertzui)\
**Replies:** 1\
**Last updated:** [April 29, 2024, 8:58pm UTC](https://community.openhab.org/t/how-to-use-the-scratchpad/155706 "2024-04-29T20:58:16Z")

</div>

I came across the Scratchpad in the main ui. I found a couple of documentation pages and forum posts that say that it is very useful and how to open it. However I was unable to find any documentation on what the code n…

---

## [Transitions library with timers in python](https://community.openhab.org/t/transitions-library-with-timers-in-python/103375)

<div class="topic-metadata">

**Author:** [@mladams922](https://community.openhab.org/u/mladams922)\
**Replies:** 7\
**Last updated:** [March 4, 2024, 3:07pm UTC](https://community.openhab.org/t/transitions-library-with-timers-in-python/103375 "2024-03-04T15:07:59Z")

</div>

I’m currently using the latest stable version of OpenHAB and I’m running JSR223 python scripting for my rules. I started using the transitions library to develop some state machine driven rules and for the most part it’s…

---

## [JSR223 Scripting in Java - Beta4](https://community.openhab.org/t/jsr223-scripting-in-java-beta4/147075)

<div class="topic-metadata">

**Author:** [@weberjn](https://community.openhab.org/u/weberjn)\
**Replies:** 4\
**Last updated:** [August 2, 2023, 6:53pm UTC](https://community.openhab.org/t/jsr223-scripting-in-java-beta4/147075 "2023-08-02T18:53:34Z")

</div>

Beta 4 of JSR223 Java Scripting for openHAB is released to GitHub - weberjn/org.openhab.automation.javascripting . It works like Groovy Scripting only with Java as language. Beta 4 is built against openHAB 4.0.0-SNAP…

---

## [HABApp migration from JSR223-Jython](https://community.openhab.org/t/habapp-migration-from-jsr223-jython/148114)

<div class="topic-metadata">

**Author:** [@lukics](https://community.openhab.org/u/lukics)\
**Replies:** 8\
**Last updated:** [July 29, 2023, 1:47pm UTC](https://community.openhab.org/t/habapp-migration-from-jsr223-jython/148114 "2023-07-29T13:47:38Z")

</div>

I am in the middle of an evaluation for the migration of my Jython rules to the HABApp. In my rules, I exclusively use the following sample setup: triggers = \[\] triggers.append(ChannelEventTrigger("deconz:switch:00212E…

---

## [Adding python modules to jython](https://community.openhab.org/t/adding-python-modules-to-jython/86939)

<div class="topic-metadata">

**Author:** [@jimtng](https://community.openhab.org/u/jimtng)\
**Replies:** 28\
**Last updated:** [July 5, 2023, 2:21pm UTC](https://community.openhab.org/t/adding-python-modules-to-jython/86939 "2023-07-05T14:21:28Z")

</div>

I’d like to import the “requests” python module for use in my jython script. How do I add the “requests” module? Is there a way/utility to manage the python libraries in /conf/automation/jsr223/ ? It would be great if we…

---

## [JSR223 Scripting in Java](https://community.openhab.org/t/jsr223-scripting-in-java/145190)

<div class="topic-metadata">

**Author:** [@weberjn](https://community.openhab.org/u/weberjn)\
**Replies:** 1\
**Last updated:** [March 14, 2023, 9:25am UTC](https://community.openhab.org/t/jsr223-scripting-in-java/145190 "2023-03-14T09:25:05Z")

</div>

I’ve released Beta 2 of Java Scripting for openHAB to GitHub - weberjn/org.openhab.automation.javascripting . It works similar to Groovy Scripting, only with Java as language. Beta 2 supports Rules definitions with Jav…

---

## [Graal (ECMA 2021, V11) vs. Nashorn (V5.1): Converting Java Set to JavaScript Array throws exception](https://community.openhab.org/t/graal-ecma-2021-v11-vs-nashorn-v5-1-converting-java-set-to-javascript-array-throws-exception/144791)

<div class="topic-metadata">

**Author:** [@HFM](https://community.openhab.org/u/HFM)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 6:32pm UTC](https://community.openhab.org/t/graal-ecma-2021-v11-vs-nashorn-v5-1-converting-java-set-to-javascript-array-throws-exception/144791 "2023-02-28T18:32:50Z")

</div>

Hi, I am convierting my Nashorn rules to Graal rules (ECMA2021). Until now I could use this code: var gHouse = ir.getItem('gModelLocationHouse').members; var allItems = Java.from(gHouse); The var “allItems” was an J…

---

## [Ivan’s Helper Libraries - OH3, Python, JavaScript](https://community.openhab.org/t/ivan-s-helper-libraries-oh3-python-javascript/116458)

<div class="topic-metadata">

**Author:** [@CrazyIvan359](https://community.openhab.org/u/CrazyIvan359)\
**Replies:** 47\
**Last updated:** [January 29, 2023, 9:04am UTC](https://community.openhab.org/t/ivan-s-helper-libraries-oh3-python-javascript/116458 "2023-01-29T09:04:15Z")

</div>

Ivan’s Updates to the Helper Libraries I have decided to start maintaining my own fork of the openHAB Helper Libraries, at least for the time being, in light of the lack of activity in the original repo. There has been g…

---

## [Cannot get namespace data anymore](https://community.openhab.org/t/cannot-get-namespace-data-anymore/143164)

<div class="topic-metadata">

**Author:** [@Max77](https://community.openhab.org/u/Max77)\
**Replies:** 9\
**Last updated:** [January 9, 2023, 9:04pm UTC](https://community.openhab.org/t/cannot-get-namespace-data-anymore/143164 "2023-01-09T21:04:40Z")

</div>

Dear all, After a restart (no driven by any update or similar) of my openhab server (OH3.4.1, Rpi4, 2GB), the following unchanged rule does not work any more (apologize if the rule is not such elegant) from core.rules …

---

## [\[Jython\] Error during evaluation of script](https://community.openhab.org/t/jython-error-during-evaluation-of-script/142579)

<div class="topic-metadata">

**Author:** [@Muplex](https://community.openhab.org/u/Muplex)\
**Replies:** 4\
**Last updated:** [December 27, 2022, 6:51pm UTC](https://community.openhab.org/t/jython-error-during-evaluation-of-script/142579 "2022-12-27T18:51:54Z")

</div>

Hi dear, because of the extra ime during Christmas period, I want to implement a Bayesin Presence. Following the Original Post I try to follow all the steps, but something does not work with Jython rule engine. I foll…

---

## [Starting a timer within a timer expiration lambda function generates exception](https://community.openhab.org/t/starting-a-timer-within-a-timer-expiration-lambda-function-generates-exception/139477)

<div class="topic-metadata">

**Author:** [@Mr-JR](https://community.openhab.org/u/Mr-JR)\
**Replies:** 0\
**Last updated:** [September 30, 2022, 6:43pm UTC](https://community.openhab.org/t/starting-a-timer-within-a-timer-expiration-lambda-function-generates-exception/139477 "2022-09-30T18:43:34Z")

</div>

Running openhabian openHAB 3.4.0 Build #3029 I’m trying to understand why the following code generates an exception. I boiled down the code to a minimum for posting. If test is set to 1, it always fails with the except…

---

## [Tracking down a weird bug in Jython code](https://community.openhab.org/t/tracking-down-a-weird-bug-in-jython-code/139269)

<div class="topic-metadata">

**Author:** [@Mr-JR](https://community.openhab.org/u/Mr-JR)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 5:19pm UTC](https://community.openhab.org/t/tracking-down-a-weird-bug-in-jython-code/139269 "2022-09-26T17:19:47Z")

</div>

Just thought I’d post this here in case someone else runs into this … I was seeing a strange run-time error in my logs for my jsr223 jython code: 2022-09-23 20:54:49.083 \[WARN \] \[ore.internal.scheduler.SchedulerImpl\] -…

---

## [Problem with stopping setTimeout](https://community.openhab.org/t/problem-with-stopping-settimeout/102180)

<div class="topic-metadata">

**Author:** [@khazzir](https://community.openhab.org/u/khazzir)\
**Replies:** 4\
**Last updated:** [July 26, 2022, 7:42am UTC](https://community.openhab.org/t/problem-with-stopping-settimeout/102180 "2022-07-26T07:42:31Z")

</div>

Hello, I’m trying to run first Javascript rules with my OpenHab. I am running version 2.5. Below are my two rules used for controlling lighting by presence detectors. I already know how to turn light on/off with presen…

---

## [Design Pattern: Rule Disable](https://community.openhab.org/t/design-pattern-rule-disable/87269)

<div class="topic-metadata">

**Author:** [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Replies:** 5\
**Last updated:** [May 30, 2022, 10:29pm UTC](https://community.openhab.org/t/design-pattern-rule-disable/87269 "2022-05-30T22:29:28Z")

</div>

Edit: Updated for OH 4 Please see Design Pattern: What is a Design Pattern and How Do I Use Them for an explanation of what a DP is and how to use them. Problem Statement Often one has a set of Rules that need to run …

---

## [Rules with sendHttpPutRequest and AuthToken](https://community.openhab.org/t/rules-with-sendhttpputrequest-and-authtoken/134321)

<div class="topic-metadata">

**Author:** [@peter\_tau](https://community.openhab.org/u/peter_tau)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 9:25pm UTC](https://community.openhab.org/t/rules-with-sendhttpputrequest-and-authtoken/134321 "2022-03-18T21:25:28Z")

</div>

Dear Community, In my approach of creating a rule in OpenHAB 3.2.0 where I need to send a HTTP Put Request to the OpenHAB REST API, I failed to configure sendHttpPutRequest correctly so that the Authentication Token req…

---

## [Executing Onkyo actions from Jython](https://community.openhab.org/t/executing-onkyo-actions-from-jython/132069)

<div class="topic-metadata">

**Author:** [@Lukie](https://community.openhab.org/u/Lukie)\
**Replies:** 0\
**Last updated:** [January 19, 2022, 9:34am UTC](https://community.openhab.org/t/executing-onkyo-actions-from-jython/132069 "2022-01-19T09:34:50Z")

</div>

The Onkyo binding allows to send raw eISCP commands (https://community.openhab.org/t/onkyo-testers-for-thing-action-to-send-raw-eiscp-commands/68446) This works in DSL as such (entire rule is slightly edited): rule "On…

---

## [Writing library files in JS](https://community.openhab.org/t/writing-library-files-in-js/131555)

<div class="topic-metadata">

**Author:** [@lukics](https://community.openhab.org/u/lukics)\
**Replies:** 5\
**Last updated:** [January 10, 2022, 4:25pm UTC](https://community.openhab.org/t/writing-library-files-in-js/131555 "2022-01-10T16:25:11Z")

</div>

I am looking for a possibility to write library files that could be reused in different rules script files. I in Jython this was possible by placing them in a separate lib folder. Is there a solution in JS? I have tri…

---

## [Proof-of-Concept: TypeScript Rules for openHAB and extended JSR223 engine](https://community.openhab.org/t/proof-of-concept-typescript-rules-for-openhab-and-extended-jsr223-engine/61214)

<div class="topic-metadata">

**Author:** [@csowada](https://community.openhab.org/u/csowada)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 1:51pm UTC](https://community.openhab.org/t/proof-of-concept-typescript-rules-for-openhab-and-extended-jsr223-engine/61214 "2022-01-10T13:51:09Z")

</div>

Hello Community, I’m working on the JSR223 rules for a while now. My goal was to use TypeScript to create my rules. The JSR223 support in openHAB is an excellent start. But unfortunately the implementation has some limi…

---

## [Custom installation of openhab-js - problems](https://community.openhab.org/t/custom-installation-of-openhab-js-problems/131411)

<div class="topic-metadata">

**Author:** [@lukics](https://community.openhab.org/u/lukics)\
**Replies:** 4\
**Last updated:** [January 8, 2022, 7:04pm UTC](https://community.openhab.org/t/custom-installation-of-openhab-js-problems/131411 "2022-01-08T19:04:52Z")

</div>

As stated in the documentation the custom installation of openhab-js (https://openhab.github.io/openhab-js/) on to of the already installed default installation (by JS automation binding) shall be done by running npm -i…

---

## [Changing code in custom installed openhab.js - Cannot load CommonJS module](https://community.openhab.org/t/changing-code-in-custom-installed-openhab-js-cannot-load-commonjs-module/131348)

<div class="topic-metadata">

**Author:** [@lukics](https://community.openhab.org/u/lukics)\
**Replies:** 3\
**Last updated:** [January 8, 2022, 6:53pm UTC](https://community.openhab.org/t/changing-code-in-custom-installed-openhab-js-cannot-load-commonjs-module/131348 "2022-01-08T18:53:48Z")

</div>

I have made a custom installation of openhab-js. I would like to test some changes which I would like to make inside the automation/js/node\_modules/openhab/rules/rules.js file. When I save the changes I get that the err…

---

## [Getting triggerName in execute](https://community.openhab.org/t/getting-triggername-in-execute/131299)

<div class="topic-metadata">

**Author:** [@lukics](https://community.openhab.org/u/lukics)\
**Replies:** 6\
**Last updated:** [January 7, 2022, 2:21pm UTC](https://community.openhab.org/t/getting-triggername-in-execute/131299 "2022-01-07T14:21:51Z")

</div>

I have migrated all rules from DSL to Jython some time ago. At that time it seemed to be a reasonable decision. Learned Python/Jython from zero. Meanwhile, I like Python. As it looks right now I have to do another migr…

---

## [TriggerBuilder equivalents for rules types in JSR223 scripting (groovy)](https://community.openhab.org/t/triggerbuilder-equivalents-for-rules-types-in-jsr223-scripting-groovy/131231)

<div class="topic-metadata">

**Author:** [@nigel\_magnay](https://community.openhab.org/u/nigel_magnay)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 1:50pm UTC](https://community.openhab.org/t/triggerbuilder-equivalents-for-rules-types-in-jsr223-scripting-groovy/131231 "2022-01-06T13:50:27Z")

</div>

I’m playing with JSR223 scripting, specifically converting dsl rule types into their groovy equivalents. I can see how many of them work from things like TriggerBuilder.create() .withId("aTimerTrigger") …

[Next page](https://community.openhab.org/tag/jsr223/88.md?match_all_tags=true&page=1&tags%5B%5D=jsr223)
