I've been playing around with the new f(Variables) thing. Using Stringify I've integrated my garage door sensor (WirelessTag) with my house alarm (Scout Alarm) - both via IFTTT using the maker thing / maker channel.
Basically if the garage door is opened while one of the house alarm modes is set then I start the tag beeping, set a timer for 40 seconds, then check to see if the alarm is still armed and if it is, turn on the house siren.
I use two variables to track the state - current alarm mode (either 'Armed' or 'Disarmed') and a last action - the last action is needed because I need to differentiate between the alarm still be armed (start the siren) and the alarm having been disarmed and re-armed while the timer was waiting.
I don't want to actually share my flows because the maker keys are pretty important to my security system
Here's the screen shot for the garage opening flow:
- The trigger is the garage door opening (maker URL that comes from the IFTTT 'Wireless Tag' channel).
- This sends a garage door open notification; and checks if the 'alarm' variable is set to 'Armed'
- If it is:
- Start the wireless tag beeping (via a IFTTT maker URL and the 'Wireless Tag' channel)
- Then set the variable 'last action' to 'Waiting' and start a timer (40 seconds)
- After the timer:
- Turn off the beeping (IFTTT maker URL again)
- AND check that the alarm variable is still set to 'armed'
- AND check that the 'last action' variable is still set to 'waiting'
- Then turn on the siren (via IFTTT make URL and 'Scout Alarm' channel)
- AND send another notification
House alarm armed:
Summary: If the house alarm is turned on, set the 'last action' variable to 'waiting to arm', and set a timer for 10 minutes (in case I want to get into the garage after leaving the house), after the timer, check to make sure the 'last action' variable has not changed, and then set the 'alarm' and 'last action' variables to 'armed' AND send a notification.
House alarm disarmed:
Summary: If the house alarm is turned off, set the 'alarm' and 'last action' variables to 'disarmed' AND turn off the garage beeping AND turn off the siren