I'm scratching my head trying to solve this. I this script working fine, executed by an Indigo Action. I re-installed MacOS with a clean install as I was migrating to a new Z-wave interface (old one was acting weird). I'm up and running on my new setup, but the script is not working.
The script sends a command to a broadlink RF blaster that controls my basement door opener. The script is static, no parameters.
Permissions on the bash script, and the cli binary are 777 to be safe. The @Door.auto file (which contains the full command to send to the RF relay) is permissions 666.
When I run the script from the Terminal of the Indigo Mac, it works just fine. But, executing in Indigo, nothing happens and there's no useful error.
Is there a higher level of log that I can set to get more useful information on what's going on?
Script:
Code: Select all
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
$SCRIPT_DIR/broadlink_cli/broadlink_cli --type 0x61a2 --host xxxxxxx --mac yyyyyyy --send @Door.auto
Code: Select all
Action Group 00 - Basement Server Area Door - Auto Close
Action Collection Error Run Shell Script action: script /Users/mike/Documents/indigo-scripts/auto_basement_door_auto.sh exited abnormally with a return code of: 1