The 'indigohost' alias is just a shortcut so you can execute Indigo python commands from the Terminal (or a shell script). You don't want to call that from a .py script itself.
If you are wanting to make Indigo python API or object model calls from a .py script (like "indigo.device.toggle"), then that .py script has to be executed by Indigo as an Indigo action OR you can execute it from the shell using something like:
- Code: Select all
indigohost -x /SomeFolder/indigo_script.py
That tells the indigo host process to launch and then run the .py file. Point being, Indigo .py files are special and have to be executed from Indigo or using the indigohost to work.