-
Notifications
You must be signed in to change notification settings - Fork 0
Command Device

The command device is a virtual device in Indigo that acts like any other device except it's on/off/toggle commands will perform Mac commands on the Indigo computer or a remote computer.
You will notice there are two different devices available, the Mac Command and the Mac Command (Legacy). The legacy device is for backwards compatibility and is the same device used in the version 1.x of this plugin and is less capable. You should upgrade your legacy devices to the new device.
The device itself has helpful instructions on how to use it:

Essentially the components of creating a new command are:
-
Run actions on Indigo server: Your command can be run on the Indigo server, which is considered local, or it can run on any Mac that has
Remote LoginandRemote Apple Eventsenabled in its sharing preferences - Credentials: Allows you to enter a manual login for this command or select any of your Saved Connections
- Remote Mac IP Address | User Name | Password: If you do not check the box to run on the Indigo server then you will need to provide the IP address of the remote machine as well as an administrative user account and password
- Poll computer to determine On/Off state: Enabling this will set the plugin to communicate with the destination computer at regular intervals to see if an application is running or not. If it is running then the device will represent itself as on, otherwise it will represent itself as off (see below)
- Poll information from iTunes: Enabling this option will check iTunes at regular intervals to determine the current state, track, artist and song information
- On Action: The action you want to perform when you turn this device on (see below)
- Off Action: The action you want to perform when you turn to his device off (see below)
You can perform any of the following actions for when you request this device be turned on or off:
-
Run Application: This will run the application you specify in
Proper Application Nameon the destination computer. Note that the name of the application must be exact, including the case and spacing -
Quit Application: This will quit the application you specify in
Proper Application Nameon the destination computer. Note that the name of the application must be exact, including the case and spacing - Display a Message: This will send a notification to the destination computer (see example below)
- Start Screensaver: This will start the screensaver on the remote computer
-
iTunes: This allows you to control iTunes remotely using any of the commands listed in the
iTunes Actionfield

-
Polling Method: Currently only
Application is Runningis available, which will turn the device On if the specified application is running and Off if it is not - Proper Application Name: Get the state of the application you specify on the destination computer. Note that the name of the application must be exact, including the case and spacing
- Polling Interval: How many seconds between each polling attempt
- Polling Method: You can choose to poll the destination computer at all times, only when the device is turned on or only when the device is turn off
Notifications will send a macOS notification pop up to the destination computer:

And the destination will see:
