People at home

tutorial

Introduction

Often you want a sequence to run or an action to be performed only if there is someone at home, for example you may have a water feature which you only want running when you're home to enjoy it, or perhaps you want lights to come on at night when there's no-one home to deter burglars.

This tutorial will show you how to set up the sequences required to achieve this.

To do this we will create a variable, called ppl_at_home to keep track of how many people are at home. Then, you can use the value of this variable to control whether or not other sequences run.

Tracking arrivals

Let's start with the sequence to track when someone arrives home. We will use IFTTT to trigger a sequence when someone arrives home. This sequence will increase the count ppl_at_home.

  1. Start a new sequence with the IFTTT webhook trigger and set the event name to someone_arrives_home.
  2. Add the variable change step with the following settings:
    • variable name is ppl_at_home
    • change is +1

Your sequence should look something like this.

Sequence to track people arriving home

  1. Create a new IFTTT applet as follows:
    • Trigger: Location service
      • You enter an area
    • Action: Webhook service
      • Make a web request
      • URL: Copy the URL displayed below the trigger step in SEQUEmatic
      • Leave the other values on their defaults

For more detailed instructions on how to set up this IFTTT applet, see this tutorial.

You will need to set up the IFTTT applet on the mobile phone of everyone you want to track.

Click here to view a screenshot of the IFTTT applet.

Tracking departures

This is similar to the sequence above, but instead of increasing ppl_at_home we will subtract one. Follow these steps:

  1. Start a new sequence with the IFTTT webhook trigger and set the event name to someone_leaves_home
  2. Add the variable change step with the following settings:
    • variable name is ppl_at_home
    • change is -1

Your sequence should look something like this.

Sequence to track people leaving home

  1. Create a new IFTTT applet as follows:
    • Trigger: Location service
      • You exit an area
    • Action: Webhook service
      • ​​​​​​​Make a web request
      • URL: Copy the URL displayed below the trigger step in SEQUEmatic
      • Leave the other values on their defaults

You will need to set up the IFTTT applet on the mobile phone of everyone you want to track.

Click here to view a screenshot of the IFTTT applet.

What to do when there's no-one home

This sequence will be used to trigger whatever steps you want to occur when the number of people drops to zero.

  1. Start with the variable value trigger using the following settings:
    • variable name is ppl_at_home
    • comparison is equal to
    • value is 0
  2. Add whatever steps you want to perform when there is no-one home

Below is an example which triggers 3 IFTTT applets when there is no-one home: one to turn off the water feature, one to turn off Hue lights and another to turn off the salt lamp.

Sequence to trigger steps when no-one is home

What to do when someone arrives home

This sequence will be used to trigger whatever steps you want to occur when the first person arrives home:

  1. Start with the variable value trigger using the following settings:
    • variable name is ppl_at_home
    • comparison is rises above
    • value is 0
  2. Add whatever steps you want to perform when the first person arrives home

The following example turns on the water feature and salt lamp when the number of people increase from 0.

Sequence to trigger steps when someone arrives home

If you have any questions, please head to the Q&A site and we can guide you through the process of setting this up.

Still need help? Ask a question on our Q&A site or chat with me using the button below right.
The SEQUEmatic bot is still new and learning. If you don't get the answer you need, just ask to speak with Derek and your chat will be transferred.