Disable a Plug-In
Posted: Wed Jun 28, 2017 4:00 pm
Whenever I experience a home power disruption, even as short as 1-2 seconds, my Pioneer Receiver never recovers communication with the Pioneer Receiver Plug-In.
This, doesn't bring it to life
But I seem to have better luck with the menu items:
-Disable
and then
-Reload
Can I assume that the above code which uses restart, is the same as the menu's reload?
What term can be used to replace plugin.restart() to get it to function like the menu's Disable? plugin.disable() doesn't work
This, doesn't bring it to life
- Code: Select all
plugin = indigo.server.getPlugin("com.nathansheldon.indigoplugin.PioneerReceiver")
if plugin.isEnabled():
plugin.restart()
But I seem to have better luck with the menu items:
-Disable
and then
-Reload
Can I assume that the above code which uses restart, is the same as the menu's reload?
What term can be used to replace plugin.restart() to get it to function like the menu's Disable? plugin.disable() doesn't work