here is a script that would put the alarm after on hour of inactivity in the house.
Now is the last zone active contained the "Porte" it would armed in away mode otherwise it Armes in Stay mode.
How can we go about this with this plugin.
- Code: Select all
property connectionName : "DSC864"
tell application "IndigoServer"
if value of variable "DSC_Zones_Activity" contains "Porte" then
log "True path - variable value is: " & (value of variable "DSC_Zones_Activity")
tell application "Serial Bridge"
send to source connectionName byte list {48, 51, 48, 49, 67, 52, 13, 10}
end tell
else
log "False path - variable value is: " & (value of variable "DSC_Zones_Activity")
tell application "Serial Bridge"
send to source connectionName byte list {48, 51, 49, 49, 67, 53, 13, 10}
end tell
end if
end tell