First, you need the HTTPd plugin installed. These instructions are for the Version 2 plugin, but the same thing can be done with the original. You'll need the IP address of the Indigo server and the port number you assigned to the HTTP port in the plugin. It should look like this, with your IP address and port.
The group number should be the Indigo ID for the action group you want to run with this command.
Then you need to set up a trigger:
With this action:
Here's the code to make it easier to copy:
- Code: Select all
groupID = int(indigo.devices[1794473612].states["group"]) # State "group" of "HTTP"
try:
actionGroup = indigo.actionGroups[groupID]
except:
indigo.server.log("Error unknown action group - {}".format(groupID))
else:
indigo.actionGroup.execute(actionGroup)
That's it. Duplicate the shortcut, Change the name and edit the group number to use for multiple actions.
If you're using the V1 plugin, you'll use Indigo variables instead of device states for the trigger and action script.