# \#jython

**URL:** https://community.openhab.org/tag/jython/509.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…

---

## [OpenHAB 5 jython rules issue after upgraded from 4.3](https://community.openhab.org/t/openhab-5-jython-rules-issue-after-upgraded-from-4-3/165210)

<div class="topic-metadata">

**Author:** [@JensH](https://community.openhab.org/u/JensH)\
**Replies:** 9\
**Last updated:** [December 2, 2025, 10:18pm UTC](https://community.openhab.org/t/openhab-5-jython-rules-issue-after-upgraded-from-4-3/165210 "2025-12-02T22:18:27Z")

</div>

I just Updated from OpenHAB 4.3 to 5 and all rules defined in /etc/openhab/automation/jsr223/python/personal are not loaded anymore and not work. Was there a Breaking change?

---

## [Jython java ssl error when using pyunifi](https://community.openhab.org/t/jython-java-ssl-error-when-using-pyunifi/100304)

<div class="topic-metadata">

**Author:** [@hafniumzinc](https://community.openhab.org/u/hafniumzinc)\
**Replies:** 20\
**Last updated:** [June 13, 2025, 6:12pm UTC](https://community.openhab.org/t/jython-java-ssl-error-when-using-pyunifi/100304 "2025-06-13T18:12:55Z")

</div>

Platform information: Hardware: Pi3B+ OS: Raspbian GNU/Linux 9 (stretch) Java Runtime Environment: openjdk version “1.8.0\_242” openHAB version: 2.5.3 Release Build I am trying to use pyunifi in a rule in order for m…

---

## [Jython is not deprecated](https://community.openhab.org/t/jython-is-not-deprecated/154187)

<div class="topic-metadata">

**Author:** [@holger\_hees](https://community.openhab.org/u/holger_hees)\
**Replies:** 52\
**Last updated:** [January 23, 2025, 11:19am UTC](https://community.openhab.org/t/jython-is-not-deprecated/154187 "2025-01-23T11:19:41Z")

</div>

Hello, over the last weeks I followed the jython development a bit. The information that the development of jython stopped is wrong. There is a very active community talking about development of jython. The only thing …

---

## [Jython rules fail to load after upgrade to 4.2.2](https://community.openhab.org/t/jython-rules-fail-to-load-after-upgrade-to-4-2-2/159553)

<div class="topic-metadata">

**Author:** [@ardmore](https://community.openhab.org/u/ardmore)\
**Replies:** 2\
**Last updated:** [October 12, 2024, 8:55am UTC](https://community.openhab.org/t/jython-rules-fail-to-load-after-upgrade-to-4-2-2/159553 "2024-10-12T08:55:51Z")

</div>

I recently upgraded my OpenHAB installation from 4.2.1 to 4.2.2. Since this upgrade some of my Jython rule files fail to load with the following message: Error during evaluation of script '/openhab/conf/automation/jytho…

---

## [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…

---

## [Reading Afvalwijzer in JSscripting or Jython](https://community.openhab.org/t/reading-afvalwijzer-in-jsscripting-or-jython/89509)

<div class="topic-metadata">

**Author:** [@ArdKuijpers](https://community.openhab.org/u/ArdKuijpers)\
**Replies:** 33\
**Last updated:** [January 27, 2024, 2:17pm UTC](https://community.openhab.org/t/reading-afvalwijzer-in-jsscripting-or-jython/89509 "2024-01-27T14:17:32Z")

</div>

Update 9-1-2022: added javascript version. To retrieve the garbage pickup dates, the following rule can be used. This rule updates a number of items: Group gAfvalData "Afval ophaaldata" \<calendar\> (gTuin) DateTime Afva…

---

## [How to migrate from OH3 with Jython to OH4 with jsscripting](https://community.openhab.org/t/how-to-migrate-from-oh3-with-jython-to-oh4-with-jsscripting/152899)

<div class="topic-metadata">

**Author:** [@sucre](https://community.openhab.org/u/sucre)\
**Replies:** 7\
**Last updated:** [January 12, 2024, 8:33pm UTC](https://community.openhab.org/t/how-to-migrate-from-oh3-with-jython-to-oh4-with-jsscripting/152899 "2024-01-12T20:33:07Z")

</div>

Hi, I seem to have a chicken/egg problem. I can’t upgrade to OH4 keeping my Jython based rules, which is why I decided to migrate to jsscripting. My approach was: 1/ rewrite rules in OH3 using jsscripting, 2/ upgrade t…

---

## [Migrating Jython scripts to openHAB4](https://community.openhab.org/t/migrating-jython-scripts-to-openhab4/148799)

<div class="topic-metadata">

**Author:** [@mr\_eskildsen](https://community.openhab.org/u/mr_eskildsen)\
**Replies:** 5\
**Last updated:** [August 20, 2023, 1:21pm UTC](https://community.openhab.org/t/migrating-jython-scripts-to-openhab4/148799 "2023-08-20T13:21:02Z")

</div>

In one of my scripts I am using the astro binding and thus I am verifyiing that the binding is there: bindingRegistryInfo = get\_service("org.openhab.core.binding.BindingInfoRegistry") or get\_service("org.eclipse.smartho…

---

## [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…

---

## [Creeate a transformation using Jython](https://community.openhab.org/t/creeate-a-transformation-using-jython/147929)

<div class="topic-metadata">

**Author:** [@johnuopini](https://community.openhab.org/u/johnuopini)\
**Replies:** 11\
**Last updated:** [July 22, 2023, 8:09pm UTC](https://community.openhab.org/t/creeate-a-transformation-using-jython/147929 "2023-07-22T20:09:54Z")

</div>

I am trying to create a rule that is triggered when Sonos cover url changes, i want to resize the image and publish it in the OpenHab static folder so its visible also from the cloud and has a proper fixed size. I would…

---

## [Member of XXX\_Group received update](https://community.openhab.org/t/member-of-xxx-group-received-update/144374)

<div class="topic-metadata">

**Author:** [@Mr-JR](https://community.openhab.org/u/Mr-JR)\
**Replies:** 4\
**Last updated:** [February 13, 2023, 7:51pm UTC](https://community.openhab.org/t/member-of-xxx-group-received-update/144374 "2023-02-13T19:51:09Z")

</div>

Writing rules in Jython … Is there an obvious reason why this rule continues to trigger every minute or so, even when none of the Members of the group are changing? @rule("Group Item Testing", description="") @when("Me…

---

## [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…

---

## [Jython script - best method to disable faulty Motion sensors](https://community.openhab.org/t/jython-script-best-method-to-disable-faulty-motion-sensors/143253)

<div class="topic-metadata">

**Author:** [@Mr-JR](https://community.openhab.org/u/Mr-JR)\
**Replies:** 7\
**Last updated:** [January 11, 2023, 10:36pm UTC](https://community.openhab.org/t/jython-script-best-method-to-disable-faulty-motion-sensors/143253 "2023-01-11T22:36:00Z")

</div>

Running openhabian on Pi4 openHAB 3.4.0 Build #3029 jython rules Occasionally I find some of my zigbee motion sensors become “Chatty” (my term) when the battery is running low. I have solved this issue in many sensors…

---

## [Jython: Cannot import Transformation in openHAB 3.4](https://community.openhab.org/t/jython-cannot-import-transformation-in-openhab-3-4/142469)

<div class="topic-metadata">

**Author:** [@rkrisi](https://community.openhab.org/u/rkrisi)\
**Replies:** 1\
**Last updated:** [December 24, 2022, 2:09pm UTC](https://community.openhab.org/t/jython-cannot-import-transformation-in-openhab-3-4/142469 "2022-12-24T14:09:38Z")

</div>

Since I upgraded to openHAB 3.4, my Jython scripts cannot import the Transformation module. ImportError: cannot import name Transformation in /etc/openhab/automation/jsr223/python/personal/speedtest.py at line number 6 …

---

## [OH3 jython, access rule instance](https://community.openhab.org/t/oh3-jython-access-rule-instance/142031)

<div class="topic-metadata">

**Author:** [@Gianluca\_Tresoldi](https://community.openhab.org/u/Gianluca_Tresoldi)\
**Replies:** 2\
**Last updated:** [December 13, 2022, 5:54pm UTC](https://community.openhab.org/t/oh3-jython-access-rule-instance/142031 "2022-12-13T17:54:33Z")

</div>

Hi all, I have this jython rule file: """ this class manage lights """ from core.rules import rule from core.triggers import ItemStateChangeTrigger, when from core import utils from core import osgi from core.jsr223.sc…

---

## [historicState dont work with jython in OH3](https://community.openhab.org/t/historicstate-dont-work-with-jython-in-oh3/141693)

<div class="topic-metadata">

**Author:** [@dezito](https://community.openhab.org/u/dezito)\
**Replies:** 2\
**Last updated:** [December 4, 2022, 11:03am UTC](https://community.openhab.org/t/historicstate-dont-work-with-jython-in-oh3/141693 "2022-12-04T11:03:14Z")

</div>

I cant get historicState to work in jython, but averageSince works fine. I tried to call historicState in rules file, and that works fine. Jython code: @rule(baseName+".System started") @when("System started") def tes…

---

## [PersistenceExtensions.deltaSince behaves different then expected when delta window bigger than the existing values series](https://community.openhab.org/t/persistenceextensions-deltasince-behaves-different-then-expected-when-delta-window-bigger-than-the-existing-values-series/141033)

<div class="topic-metadata">

**Author:** [@lukics](https://community.openhab.org/u/lukics)\
**Replies:** 9\
**Last updated:** [November 15, 2022, 8:18pm UTC](https://community.openhab.org/t/persistenceextensions-deltasince-behaves-different-then-expected-when-delta-window-bigger-than-the-existing-values-series/141033 "2022-11-15T20:18:34Z")

</div>

I created some rules today to monitor my gas consumption. I use Homematic HM-ES-TX-WM and the corresponding dongle attached to my gas meter to read gas consumption. HM-ES-TX-WM delivers a cumulative counter of gas cons…

---

## [Jython datetime java issue with global variable](https://community.openhab.org/t/jython-datetime-java-issue-with-global-variable/140795)

<div class="topic-metadata">

**Author:** [@Mr-JR](https://community.openhab.org/u/Mr-JR)\
**Replies:** 3\
**Last updated:** [November 9, 2022, 5:01pm UTC](https://community.openhab.org/t/jython-datetime-java-issue-with-global-variable/140795 "2022-11-09T17:01:13Z")

</div>

Running openhabian on Pi4 openHAB 3.4.0 Build #3029 jython rules I’ve seen the thread regarding this issue and suggestions to not use datetime, but I wanted to add this here anyway since it seems so bizarre. I use da…

---

## [OpenHAB Docker Python Http Request Rule: ImportError: No module named requests](https://community.openhab.org/t/openhab-docker-python-http-request-rule-importerror-no-module-named-requests/140300)

<div class="topic-metadata">

**Author:** [@yekomS](https://community.openhab.org/u/yekomS)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 6:22pm UTC](https://community.openhab.org/t/openhab-docker-python-http-request-rule-importerror-no-module-named-requests/140300 "2022-10-26T18:22:03Z")

</div>

Docker openHAB version: 3.3.0 Hi, i want to send http request to my influxDb to write new data and got following error: ImportError: No module named requests From python script i do following: from core.rules im…

---

## [\[SOLVED\]Jython scripting cannot find configuration.py](https://community.openhab.org/t/solved-jython-scripting-cannot-find-configuration-py/137044)

<div class="topic-metadata">

**Author:** [@CrazyElectron](https://community.openhab.org/u/CrazyElectron)\
**Replies:** 0\
**Last updated:** [July 1, 2022, 6:45am UTC](https://community.openhab.org/t/solved-jython-scripting-cannot-find-configuration-py/137044 "2022-07-01T06:45:36Z")

</div>

Hi OH community, UPDATE: Solved! I still had a org.joda.time import in configuration.py which caused it to be skipped… I have been absent from this forum and have not touched OpenHAB for quite a while because I was bus…

---

## [WLED control without the binding](https://community.openhab.org/t/wled-control-without-the-binding/101120)

<div class="topic-metadata">

**Author:** [@hafniumzinc](https://community.openhab.org/u/hafniumzinc)\
**Replies:** 22\
**Last updated:** [February 3, 2022, 11:24pm UTC](https://community.openhab.org/t/wled-control-without-the-binding/101120 "2022-02-03T23:24:42Z")

</div>

Foreword I was interested in controlling WLED without using the binding. In the end I learned a bit more about: Javascript transforms XML (XPATH) transforms Chaining multiple transforms Jython personal functions If yo…

---

## [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…

---

## [OH3 - Jython and library](https://community.openhab.org/t/oh3-jython-and-library/130405)

<div class="topic-metadata">

**Author:** [@Guillain](https://community.openhab.org/u/Guillain)\
**Replies:** 8\
**Last updated:** [December 22, 2021, 7:09pm UTC](https://community.openhab.org/t/oh3-jython-and-library/130405 "2021-12-22T19:09:20Z")

</div>

Hello, I’m trying to develop new rules wth Jython on OH3 GUI (3.1.1) and I don’t find the way to install libraries. For example requests is not present and I need it. I’ve searched pip and I find it only for py3.9 (pf…

---

## [JSR223/Jython scripting in Openhab 3.1 (Docker)](https://community.openhab.org/t/jsr223-jython-scripting-in-openhab-3-1-docker/129592)

<div class="topic-metadata">

**Author:** [@leif](https://community.openhab.org/u/leif)\
**Replies:** 17\
**Last updated:** [December 8, 2021, 8:29pm UTC](https://community.openhab.org/t/jsr223-jython-scripting-in-openhab-3-1-docker/129592 "2021-12-08T20:29:09Z")

</div>

Howdy! Remember me? :slight\_smile: I was pretty active on the forum for a while a couple of years ago, while setting up Openhab 2.4 on a Raspberry Pi with a bunch of ZWave gear in my small house. Then, I got busy build…

---

## [Writing jython scripts and accessing personal modules](https://community.openhab.org/t/writing-jython-scripts-and-accessing-personal-modules/125231)

<div class="topic-metadata">

**Author:** [@Mr-JR](https://community.openhab.org/u/Mr-JR)\
**Replies:** 18\
**Last updated:** [November 26, 2021, 12:51am UTC](https://community.openhab.org/t/writing-jython-scripts-and-accessing-personal-modules/125231 "2021-11-26T00:51:29Z")

</div>

Openhabian on Pi 4 running openHAB 3.2.0 Build #2454 Just finished reading through various comments and docs on accessing personal modules from scripts … and still wondering if I am going down the right path … quick ba…

---

## [Controlling Window Shades by Switches and MainUI](https://community.openhab.org/t/controlling-window-shades-by-switches-and-mainui/127998)

<div class="topic-metadata">

**Author:** [@lukics](https://community.openhab.org/u/lukics)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 4:47pm UTC](https://community.openhab.org/t/controlling-window-shades-by-switches-and-mainui/127998 "2021-10-27T16:47:34Z")

</div>

1. Starting point: In my house, I have window blinds controllers (actuators) from HomeMatic. These actuators are connected with direct programs to wall-mount switches from Homematic, in order guarantee a function even i…

---

## [Jython scripts are not longer executed](https://community.openhab.org/t/jython-scripts-are-not-longer-executed/127740)

<div class="topic-metadata">

**Author:** [@OPape](https://community.openhab.org/u/OPape)\
**Replies:** 2\
**Last updated:** [October 21, 2021, 2:19pm UTC](https://community.openhab.org/t/jython-scripts-are-not-longer-executed/127740 "2021-10-21T14:19:41Z")

</div>

Platform information: Hardware: Raspberry Pi 4 OS: openHabian 3.1.0 I guess after a necessary reboot my Jython Script / Rule not executed anymore. I was not able to determine this immediately, as the script checks i…

---

## [Jython Rule: Member of group / do stuff only if the value of ALL items falls below a specific value](https://community.openhab.org/t/jython-rule-member-of-group-do-stuff-only-if-the-value-of-all-items-falls-below-a-specific-value/126783)

<div class="topic-metadata">

**Author:** [@boogie](https://community.openhab.org/u/boogie)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 8:02pm UTC](https://community.openhab.org/t/jython-rule-member-of-group-do-stuff-only-if-the-value-of-all-items-falls-below-a-specific-value/126783 "2021-09-23T20:02:04Z")

</div>

Hi there, i´m in the process of implementing moisture monitoring. To do this, i put all my moisture sensors (tado) together in a group and created a dummy switch. As soon as an item rises above 60% humidity, the dummy …

---

## [OH3.1 Python - rules variable consistence](https://community.openhab.org/t/oh3-1-python-rules-variable-consistence/125775)

<div class="topic-metadata">

**Author:** [@froido](https://community.openhab.org/u/froido)\
**Replies:** 4\
**Last updated:** [September 15, 2021, 12:50pm UTC](https://community.openhab.org/t/oh3-1-python-rules-variable-consistence/125775 "2021-09-15T12:50:57Z")

</div>

Platform information: Hardware: PI4 OS: Hypriot openHAB version: 3.1 in Docker Hi, I am using Python in combination with the helper librarys modified by @CrazyIvan359 (link) to create my OH rules. Some of my variabl…

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