Page 1 of 1

Load Plug-in

PostPosted: Mon Jan 08, 2024 5:24 pm
by SMUSEBY
What is the python script for loading a plug-in?

Re: Load Plug-in

PostPosted: Mon Jan 08, 2024 6:13 pm
by DaveL17
There is no script for loading a plugin. This is for security reasons. You can only restart a plugin once it's already running.

Code: Select all
plugin = indigo.server.getPlugin("com.indigodomo.somePlugin")
plugin.restart(waitUntilDone=True)
The waitUntilDone argument is optional.

Re: Load Plug-in

PostPosted: Mon Jan 08, 2024 7:20 pm
by FlyingDiver
And you don't need a script if all you want to do is restart a plugin. It's available as an action under "Server Actions".

Re: Load Plug-in

PostPosted: Mon Jan 08, 2024 7:48 pm
by SMUSEBY
I was putting it in front of a script with an MQTT command that was failing.
It was the latest of many 'guess-and-check' failed solutions to MQTT implementation.
But it doesn't work.