Python Scripting Beta [5.0.0;5.9.9]

python-powered-w-200x80

This add-on provides support for Python 3 that can be used as a scripting language within automation rules. It is based on GraalPy from the GraalVM project.

Also included is a helper library to support automation in openHAB. It provides access to common openHAB functionality within rules including items, things, actions, logging and more.

If you want to discuss this binding or you found a bug, feel free to join the community forum thread

Quick Start

  1. Install this binding via marketplace
  2. Flow first steps instructions

README and Documentation

Please refer to the helper library README.md for detailed information about the usage.

Help Wanted

Please don’t be afraid to create PRs, refactor code, add documentation

Ressources

Kar file (OH5.0+)

Source code

Last published Date

Last Update: 15.07.2025 22:02

Changelog

Version 15.07.2025 22:02

  • Update helper lib to version v1.0.1
  • Fix datetime (with and without timezone) usage as function parameter
  • Fix and generalize type mapping between java and python

Version 14.07.2025 12:30

  • Update helper lib module to v1.0.0
  • Support for updating of helper libs
  • Support for venv setups
  • Support for ‘pip’ and preinstalled “modules”
  • Support for native modules
  • OSGI Console support
    • You can show python scripting state values
    • You can open an interactive console
    • You can install, check, list and uninstall additional modules
    • You can install, check, list and uninstall helper lib module

Version 18.06.2025

  • Official version merged into openhab
1 Like

This thread is only for marketplace updates. For discussion use our Python3 Binding Thread

@holger_hees Just working on integrating your Python section into the release blog post, I think it would be better to rename this here Python Scripting Beta to avoid confusion among users.
Also mention clearly what’s the advantage of that version, I will remove that section from the blog post as we have to keep it short.

1 Like