I know nothing about how this integration works, but I can address a few of the Python and UNIX specific things mentioned in the last couple of posts:
whmoorejr wrote:I guess Return Code -= 1 is bad, 0 is good.? That's the extent of my knowledge on how that script actually works... 0 good, 1 bad.
Point of fact: in UNIX (and derivatives like macOS), a return code of 0 is good, anything else is generally considered bad. This isn't universal, but close to it.
whmoorejr wrote:My code, alexa-variable.py has no shebang stuff at the top, begins at "import indigo"
The shebang line will be ignored for Indigo Python scripts. Shebangs are generally only useful when you make a script executable so that when you try to run the script by just using it's name, what to run the script with can be discovered from the shebang. Since Indigo Python scripts are always (and, in fact, must be) run by Indigo, Indigo already knows how to execute it.
whmoorejr wrote:Line 7, I think echo_name is supposed to be in " " not ' '. My line 7 is
- Code: Select all
echo_name = "" # Leave echo name blank to send to all devices
In Python, you can use either single or double quotes to identify a string - it makes no difference.
Anything else, unfortunately, I can't really help with since it's specific to the integration.