Occasionally I want to restart iFindStuff because that forces an immediate update of all devices and maps (well within 10 seconds anyway). I realised that many of you won't know how to restart a plugin in an action so here is what I use.
I create an action:
I've called it Restart iFindStuff...
The embedded code is:
- Code: Select all
import indigo
iFindStuffId = "com.corporatechameleon.iFindplugBeta" # supplied by the documentation
iFindStuffPlugin = indigo.server.getPlugin(iFindStuffId)
if iFindStuffPlugin.isEnabled():
iFindStuffPlugin.restart(waitUntilDone=False)
if you want to cut and paste it.
When this action runs it stops iFindStuff, Restarts it and Triggers an update of all devices & maps. You can also schedule this to run at a specific time of the day if you want to do a review of all devices at a standard time.
Like all actions they appear in Indigo Touch so you can also restart the plugin from there with this action.
Regards
Mike