Page 1 of 1

Python Plugin still running after disabling in Hardware page

Posted: Saturday 14 November 2020 0:04
by kubiack
I am developing a Python Plug-in to handle my video-projector from Domoticz (see https://github.com/romainrossi/domoticz-epson-projector if interested).

I wanted to disable it from the Hardware page but it doesn't works : the plug-in is still running and writing in the logs.

The plug-in uses a SerialConnection. The onStop() function is not doing anything, like I have seen in the examples.

Maybe I am missing something ? Did someone have experimented the same behaviour ? Did my plugin should do something in the onStop() function to shutdown ?

I use the development branch of the Domoticz code and compiled it myself. It runs in a Ubuntu 20.04 Docker container.

Re: Python Plugin still running after disabling in Hardware page

Posted: Saturday 14 November 2020 20:32
by TiXav
I have just seen the same behaviour with this plugin : https://github.com/Xenomes/Domoticz-TUYA-Plugin.git during I was modifying it for my own purpose
The domoticz version I use is 2020.2 build 12624

Re: Python Plugin still running after disabling in Hardware page

Posted: Sunday 15 November 2020 10:56
by Xenomes
On my live and test system, when i disable the plug-in there are no new log entries. Also i am interested in you modifications :). Is that something for the global plugin?