I do this all the time using Indigo variables and embedded scripts within the actions that have special conditions (most of them in AppleScript because they're usually shorter to type, but some are in Python because there are some things you can't do with AppleScript).
For your example, in the action that conditionally sets the HVAC, you could do something like...
- Code: Select all
set ts to device "Main Thermostat"
if value of variable "MyHVACVariable" is "true" then
set hvac mode of ts to heatCoolOn
set fan mode of ts to fanAutoOn
set heat setpoint of ts to 68
set cool setpoint of ts to 75
end if
If you didn't want to write as much code, you could create the same variable in Indigo, then create a trigger that executed when that variable's value changed to "true". The Action Group code would then be shortened to
- Code: Select all
if <whatever condition you wanted here> then
set value of variable "MyHVACVariable" to "true"
end if