Page 1 of 1

[SOLVED]Python based plugins reload bug

Posted: Sunday 29 March 2026 10:57
by Myriades
Hi.
I'm new here. My name is Laurent.
I have seen a problem with python plugins.

Version: 2026.1
Platform: rpi4 / raspi os trixie with fresh install
Plugin/Hardware: any based on python
Description: only plugin.py is reloaded. other files/modules are ignored until domoticz is restarted.

POE:
plugin.py

Code: Select all

"""
<plugin key="py_test" name="Test plugin" author="Myriades" version="2026.03">
</plugin>
"""

from to_import import test


def onStart() -> None:
    """Démarrage du plugin"""
    test()
to_import/__init__.py

Code: Select all

import Domoticz


def test():
    Domoticz.Log("Bar")
change Bar to anything else and restart the plugin. Log still shows Bar.
Regards.

PS: great update!

Re: Python based plugins reload bug

Posted: Sunday 29 March 2026 11:24
by gizmocuz
Welcome :mrgreen:

Please report this on our Github issue page and also add a reference to this with thread (url) and also the plugin or an complete example plugin so we can verify and test

https://github.com/domoticz/domoticz/issues

Re: [SOLVED]Python based plugins reload bug

Posted: Sunday 29 March 2026 16:49
by Myriades
Fixed in beta this day
Many thanks!