- Code: Select all
~/Documents/Indigo User Data/Scripts/Attachments(disabled)
(Indigo 1.x users look here)
/Library/Application Support/Perceptive Automation/Indigo 2/Scripts/Attachments(disabled)
(Indigo 2.0 and 3.0 users look here)
/Library/Application Support/Perceptive Automation/Indigo 4/Scripts/Attachments(disabled)
(Indigo 4.0 and higher users look here)
into the non-disabled Attachments folder, and then select "Reload Attachments" from the Indigo script menu. As you might expect, the file called "RCS example.scpt" contains code that you can paste into your own scripts in order to exercise the attachment.
enjoy.
Bob
Support Addendum: Here are some additional instructions for after you've moved the script to the Attachments folder.
First, you need to modify the attachment script with the house code you have assigned the RCS. Open up RCS attachment and look for the property rcsNameHouseCodeMap near the top. Replace "spa" with the name you want to use (ex: "centralHVAC") and "H" with the house code you've assigned to the RCS. Next, as mentioned above make sure the RCS attachment script is in the active (not disabled) scripts/attachments/ folder and then choose the Scripts->Reload Attachments menu item.
Next, create a Trigger Action in Indigo of Type Indigo Server Startup. Give it the action type Execute AppleScript, and copy/paste this into the embedded script edit field:
- Code: Select all
InitializeHVAC("H")
SetAutoSendMode("H", "on")
where "H" is the house code letter you are using. Next, manually execute that script using the Run button in the dialog (or quit and relaunch Indigo). The second line above (SetAutoSendMode) really only needs to be sent once. It probably is not necessary to do it every time Indigo starts, but shouldn't hurt.
You should now see a new Variable name in the Indigo Variable window (choose the Window->Variable List menu item to show Variable window). This Variable will automatically update as the RCS reports temperature changes to Indigo. You can use that Variable in Trigger Actions (ex: Variable Changed becomes greater than a specific temperature value) or inside Conditionals. You can also view the Variable value using the built-in Web server or add a control to a Web Control Page that shows the variable value.
Now that we have a way to see the current room temperature as reported by the RCS, let's use Indigo to change the current Setpoint value. We'll create a Time/Date Action that sets the set point to 68 degrees. Use the Action type Execute AppleScript again, and copy/paste this into the edit field:
- Code: Select all
SetSetpoint("H", 68)
Open the AppleScript file RCS example.scpt for examples of other commands you can send to: change the RCS mode, increase/decrease setpoint values, etc.
Matt (Indigo Support)