Hi Guys,
I managed to delete my old trigger when switching devices over.
Could someone correct my script for me please?
I want to send an iMessage if the Garage Door is left open for more than 5 minutes.
I have the trigger defined as, If Garage Door state open = true, then run the following script (which has a delay of 5 minutes)
set GarageDoorOpen to state of device "Alarm_Garage Door"
if GarageDoorOpen = (open) then
tell application "Messages"
set theBuddy to buddy "Pete"
send "Garage door has been left open" to theBuddy
end tell
else
end if
The sending works fine - it's just the checking if statement I can't get to work. It says that it can't get the state of Alarm_Garage Door