Due to the several other changes in M3 I don’t want to update yet. Unfortunately a new installation of the module did not solve the problem…
Uninstalling:
openhab> pythonscripting pip uninstall pyunifi
You are uninstalling python modules.
Press Enter to confirm or Ctrl+C to cancel.
WARNING: Disabling truststore because platform isn't supported
Found existing installation: pyunifi 2.21
Uninstalling pyunifi-2.21:
Successfully uninstalled pyunifi-2.21
openhab> pythonscripting pip list
Package Version
------------------ ----------
certifi 2025.11.12
charset-normalizer 3.4.4
idna 3.11
pip 24.3.1
requests 2.32.5
setuptools 80.9.0
unificontrol 0.2.9
urllib3 2.6.2
wheel 0.43.0
openhab> pythonscripting console
Python 3.11.7 (Wed Apr 02 20:07:26 CEST 2025)
[Graal, Interpreted, Java 21.0.9 (amd64)] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import pyunifi
ModuleNotFoundError, No module named 'pyunifi'
Traceback (most recent call last):
File "/openhab/.cache/org.graalvm.polyglot/python/python-home/e41832d1c8ba537cb2b83ce5a12dcd2887406294/lib/python3.11/code.py", line 90, in runcode
exec(code, self.locals)
File "<console>", line 1, in <module>
File "/openhab/conf/automation/python/lib/openhab/__wrapper__.py", line 93, in importWrapper
return importOrg(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Re-installing:
openhab> pythonscripting pip install pyunifi
WARNING: Disabling truststore because platform isn't supported
Looking in indexes: https://pypi.org/simple, https://www.graalvm.org/python/wheels/
Loading GraalPy post-release patch repository from https://raw.githubusercontent.com/oracle/graalpython/refs/heads/github/patches/25.0.1/graalpython/lib-graalpython/patches/. This can be controlled with PIP_GRAALPY_PATCHES_URL environment variable. Set to 'disabled' to disable
Collecting pyunifi
Downloading pyunifi-2.21-py3-none-any.whl.metadata (274 bytes)
Requirement already satisfied: requests in ./cache/org.openhab.automation.pythonscripting/venv/lib/python3.12/site-packages (from pyunifi) (2.32.5)
Requirement already satisfied: charset_normalizer<4,>=2 in ./cache/org.openhab.automation.pythonscripting/venv/lib/python3.12/site-packages (from requests->pyunifi) (3.4.4)
Requirement already satisfied: idna<4,>=2.5 in ./cache/org.openhab.automation.pythonscripting/venv/lib/python3.12/site-packages (from requests->pyunifi) (3.11)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./cache/org.openhab.automation.pythonscripting/venv/lib/python3.12/site-packages (from requests->pyunifi) (2.6.2)
Requirement already satisfied: certifi>=2017.4.17 in ./cache/org.openhab.automation.pythonscripting/venv/lib/python3.12/site-packages (from requests->pyunifi) (2025.11.12)
Downloading pyunifi-2.21-py3-none-any.whl (11 kB)
Installing collected packages: pyunifi
Looking for GraalPy patches for pyunifi
Successfully installed pyunifi-2.21
openhab> pythonscripting pip list
Package Version
------------------ ----------
certifi 2025.11.12
charset-normalizer 3.4.4
idna 3.11
pip 24.3.1
pyunifi 2.21
requests 2.32.5
setuptools 80.9.0
unificontrol 0.2.9
urllib3 2.6.2
wheel 0.43.0
openhab> pythonscripting console
Python 3.11.7 (Wed Apr 02 20:07:26 CEST 2025)
[Graal, Interpreted, Java 21.0.9 (amd64)] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import pyunifi
ModuleNotFoundError, No module named 'pyunifi'
Traceback (most recent call last):
File "/openhab/.cache/org.graalvm.polyglot/python/python-home/e41832d1c8ba537cb2b83ce5a12dcd2887406294/lib/python3.11/code.py", line 90, in runcode
exec(code, self.locals)
File "<console>", line 1, in <module>
File "/openhab/conf/automation/python/lib/openhab/__wrapper__.py", line 93, in importWrapper
return importOrg(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
After deinstallation of the complete binding and reinstalling it again, the problem remains the same.
openhab> pythonscripting pip list
Package Version
------------------ ----------
certifi 2025.11.12
charset-normalizer 3.4.4
idna 3.11
pip 24.3.1
pyunifi 2.21
requests 2.32.5
setuptools 80.9.0
unificontrol 0.2.9
urllib3 2.6.2
wheel 0.43.0
openhab> pythonscripting console
Python 3.11.7 (Wed Apr 02 20:07:26 CEST 2025)
[Graal, Interpreted, Java 21.0.9 (amd64)] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import pyunifi
ModuleNotFoundError, No module named 'pyunifi'
Traceback (most recent call last):
File "/openhab/userdata/cache/org.openhab.automation.pythonscripting/python/python-home/e41832d1c8ba537cb2b83ce5a12dcd2887406294/lib/python3.11/code.py", line 90, in runcode
exec(code, self.locals)
File "<console>", line 1, in <module>
File "/openhab/conf/automation/python/lib/openhab/__wrapper__.py", line 93, in importWrapper
return importOrg(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^