Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

IFTTT Multi-User Geofencing: Setup Guide

· 6 min read · Home Automation

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can use IFTTT with multi-user geofencing, but it requires a workaround because IFTTT's own geofencing applets are tied to a single phone's location. The trick is to create separate applets for each person and then combine their triggers using a service like Google Assistant routines or a smart home hub. This guide covers the most reliable method using IFTTT's Webhooks service and a simple third-party aggregator (like a Google Sheets log) to trigger a single action when all (or any) family members leave or enter a zone.

What You'll Need

  • An IFTTT account for each person whose phone will be tracked (free tier works).
  • The IFTTT app installed on each participant's phone (iOS or Android) with location services enabled.
  • A Google account (for Google Sheets integration) or a smart home hub (like Hubitat, SmartThings, or Home Assistant) that can receive webhooks.
  • Basic familiarity with creating IFTTT applets and editing Google Sheets formulas (or hub automations).

Step-by-Step

  1. Create a shared Google Sheet (if using the free Google Sheets method). Go to sheets.new, create a spreadsheet, and name it something like "Geofence Log". Share it with edit access to the Google account that will run the final action (or keep it in one account and use that account for all IFTTT connections).
  2. Set up a Webhooks applet for the first person. In the IFTTT app, log in with the first person's account. Tap Create, then Add, and choose the "Location" service (iOS) or "Android Location" service. Select the trigger "You enter an area" or "You exit an area". Set the radius (e.g., 500 meters) and the address of your home or other zone. For the action, choose "Webhooks" and select "Make a web request". Enter the URL of a Google Apps Script endpoint (explained in step 4) or your hub's webhook URL. Set the method to POST, content type to application/json, and body to something like {"user":"person1","event":"enter"}.
  3. Repeat for each additional person. Log out of IFTTT and log in with the next person's account. Create the same applet, but change the user name in the JSON body (e.g., "person2") and use the same webhook URL. Repeat for all participants.
  4. Create a Google Apps Script to log events (if using Sheets). In the Google Sheet, go to Extensions > Apps Script. Paste the following code:
function doPost(e) {
  var data = JSON.parse(e.postData.contents);
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1");
  sheet.appendRow([new Date(), data.user, data.event]);
  return ContentService.createTextOutput("OK");
}

Deploy the script as a web app (Deploy > New deployment > Web app), set "Execute as" to "Me" and "Who has access" to "Anyone". Copy the web app URL. Use that URL as the webhook URL in each person's IFTTT applet.

  1. Create the final action applet. In the account that will trigger the final action (e.g., turn off the lights when everyone leaves), create a new IFTTT applet with the trigger "Webhooks" > "Receive a web request" with an event name like "all_out". For the action, choose whatever you want (e.g., Philips Hue, Wemo, or a notification).
  2. Set up a Google Sheets formula to detect when all have left. In the log sheet, add a column that tracks the latest status per user. Use a formula like this in a helper cell: =IF(COUNTIF(A:A,"enter")>COUNTIF(A:A,"exit"),"someone_in","all_out") – but this is too simple. Instead, use a script or a separate sheet that reads the last entry for each user. A simpler approach: use a Google Apps Script time-driven trigger to check the last status of each user every minute, and if all are "exit", call the webhook of the final action applet.
  3. Alternative: Use a smart home hub. If you have a Hubitat, SmartThings, or Home Assistant, skip the Sheets method. Each person's IFTTT applet sends a webhook to the hub with their user ID and enter/exit status. In the hub, create an automation that triggers when all specified presence sensors (virtual switches) are set to "away" (or any combination). This is more reliable and real-time.

Common Mistakes

  • Using the same IFTTT account for multiple phones. IFTTT's location triggers are tied to the phone that is logged in. You must use separate accounts for each person.
  • Not enabling location permissions properly. On iOS, go to Settings > Privacy > Location Services > IFTTT and set to "Always". On Android, ensure the IFTTT app has "Allow all the time" permission. Otherwise, the trigger won't fire reliably.
  • Webhook URL not accessible. If you use a Google Apps Script, make sure the deployment is set to "Anyone" and the URL is the /exec one, not the /dev one.
  • Creating a single applet that tries to check multiple users. IFTTT cannot natively combine multiple location triggers. You must use an external aggregator.

Tips

  • Use a smaller geofence radius (e.g., 200 meters) to reduce false triggers, but be aware that GPS accuracy varies.
  • Test each person's applet individually by having them cross the boundary and checking the log or hub.
  • For more complex logic (e.g., trigger when at least one person is home), modify the aggregator to check for any "enter" status.
  • If you have a smart home hub, use its built-in presence detection (like Home Assistant's device trackers) instead of IFTTT for better accuracy and no reliance on webhooks.
  • Consider using IFTTT Pro (paid) which offers multi-condition applets, but even then, location triggers are per-account.

Troubleshooting

  1. Applet not triggering at all. First, check that the IFTTT app has location permission and that the phone's battery optimization is not killing the app. On Android, add IFTTT to the battery optimization whitelist. On iOS, disable Low Power Mode.
  2. Webhook not received. Test the webhook URL manually using a tool like Postman or a browser (for GET). For Google Apps Script, check the script's execution log (View > Logs) to see if the POST arrived.
  3. Multiple triggers firing at once. This can happen if the phone's GPS jumps around. Add a debounce in your aggregator: ignore events that occur within 5 minutes of the last one for the same user.
  4. Final action not firing. Ensure the final action applet's webhook event name matches exactly what your aggregator sends. Also check that the IFTTT service (e.g., Hue) is connected and authorized.
  5. If all else fails, sign out and back into IFTTT on all phones, and restart the app. Then recreate the applets if necessary.

Frequently Asked Questions

Can I use one IFTTT account for multiple phones?

No. IFTTT's location triggers are tied to the device that is logged into the account. You need a separate IFTTT account for each person.

Does IFTTT Pro support multi-user geofencing natively?

No. Even with IFTTT Pro, location triggers are per-account. Pro adds multiple conditions, but not multi-phone location tracking.

What is the best smart home hub for this?

Home Assistant has the most flexible presence detection and can combine multiple device trackers easily. Hubitat and SmartThings also work well. Any hub that accepts webhooks and has presence sensors will do.

Is there a privacy concern with sharing location data?

Yes. You are sending location data to IFTTT and to your aggregator (Google Sheets or hub). Be aware that this data is stored. Use a private sheet or a local hub to minimize exposure.

Can I use this to automatically arm my security system when everyone leaves?

Yes, but ensure your security system's IFTTT integration supports arming away. Some systems require additional authentication. Always test the arming action manually first.

What if a family member doesn't have a smartphone?

You can't use IFTTT geofencing for them. Consider using a smart tag (like a Tile) with a hub that supports it, or manually set a virtual presence sensor in your hub.