something like...
- Code: Select all
plugin = indigo.server.getPlugin("org.cynic.indigo.cynicaldenon")
if plugin.isEnabled():
plugin.restart()
Thanks
PS: The reason I'm asking is that I have denon connected to a Z-Wave switch, which we use as a master power kill switch when the kids have had too much screen time. Sometimes, the plugin has a difficult time (long delay) reconnecting to the Denon when the power is restored. Reloading the plugin via Indigo always solves the problem, so I'd like to have a Trigger that reloads the plugin whenever the Z-Wave switch restores power to the Denon.