Location-Based Workflow

Location-Based Workflow

You can trigger workflows based on location. This gives you full control over which device is used for presence detection and even Android devices can be integrated.

🛠️ Good to know: Setting up the States and automations is a one-time task. Once configured, you can use the presence detection across all your workflows - as a Start Event, Condition, Step, or Stop Event.

Set Up States

Start by creating a separate State for each person in Workflows. These states will be used to track presence.

Create Presence Detection with Shortcuts

Next, set up an automation in the Shortcuts app on the device that should detect presence:

  1. Open the Shortcuts app and go to the Automation tab.

  2. Create a new automation with the “Arrive” trigger.

  3. Choose your location, select “Anytime” and enable “Run Immediately”.

  4. Tap Next and select “Create New Shortcut”.

Option A: Device with Controller and access to States

In the newly created shortcut:

  1. Add the “Set State” action from the Controller app.

  2. Select the previously created State (e.g. “Lisa is home”).

  3. Save the shortcut.

Option B: Housemates, iPhones without Controller or Android Phones

In the newly created shortcut:

  1. Add “URL” as action.

  2. Copy the required URL from the State’s context menu in Controller (long-press the State > Copy URL > Turn State on) and paste it into the URL field.

  3. Then add the “Get Contents of URL” action.

Set Up the “Leave” Trigger

Add another automated shortcut on the device, but this time choose “Leave” as the trigger. Make sure to configure the State action accordingly (“Turn State off”).

Pro Tip: Android and Manual Triggers Supported

Android phones can also be integrated – you can use location-based automation apps (like Tasker or MacroDroid) to automatically trigger the State URL when arriving or leaving a place.

And if you ever leave the house without your smartphone (e.g. for a quick walk or run), you can still update your presence manually - either via the Controller app or by using a physical switch at the entrance.

That way, you don’t have to give up presence detection and all workflows linked to it will continue to run as expected.

Using Presence in Workflows

You can use presence detection across all your workflows - as a start event, condition, step, or stop event. Below are a few examples.

Person X arrives home / Person X left home

Create a workflow and select the corresponding state (person) as the trigger.

The workflow runs as soon as this person arrives or leaves.

The first person arrives / The last person leaves

To set this up, create a new workflow called “Someone Arrives”. Add each person’s presence as a start event, triggered when their state turns on. Then add a State step, create a new state called “Someone is Home”, and turn it on. Enable the workflow and save it.

Next, create another workflow called “Everyone Left”. Add each person’s presence as a start event, this time triggered when their state turns off. Then add a condition for each person to make sure everyone is away, using AND as the comparison operator. Finally, add a State step and turn off “Someone is Home”.

After that, you can use the “Someone is Home” state as a start event, condition, or stop event. It turns on when the first person arrives home and turns off when the last person leaves the house.