Stringify is an incredibly powerful automation tool that connects your favorite web apps and smart home gadgets. In this guide, we’ll take a look at one of its more advanced features, which is called Mode. This «thing» allows you to run multiple threads at the same time, based on whether you’re at home or away, and whether you’re awake or asleep.

RELATED: How to Use Stringify for Crazy Powerful Home Automation

The mode is one of the built-in things in Stringify. This allows you to set one of four states for your home: Home, Away, Wake, and Sleep. You can then use these states to activate threads. For example, you can turn on the lights in your living room, set your nest to «Home», and start playing music when your state is set to «Home». The mode comes with three triggers and actions:

  • WHEN the trigger is “Mode changes to…”: this trigger is activated whenever you change your mode to something else. So if your mode changes from Away to Home, you can tell Stringify to turn on the living room lights.
  • ONLY IF Trigger is «My Mode…»: this trigger allows you to restrict the stream to a specific mode. For example, you can set your Nest Cam to send you an email whenever it detects motion, but only if your mode is set to sleep.
  • Action — «Change my mode to…»: it can change your mode in response to the trigger. For example, change your mode to «Home» when the GPS location is at your home.

These three triggers and actions combine to create a powerful system that can be used to create more complex flows as well as make it easy to add new ones to existing settings.

First, connect Stringify to «Mode»

Before you add it to your streams, you need to add a Stringify Mode Thing to your collection (at least «Thing» is actually a technical term). To do this, open the Stringify app on your phone and tap the plus icon. Then click «Add New Item».

Scroll down the list and find «Mode», then click on it.

Click the big green «Connect» button to add it to your item collection.

Now that you’re selecting items from your collection, you can add a mode. So, it’s time to start using it.

Change your mode with the flow

Using the mode consists of two parts. You will need one thread to change your mode and another thread (or threads) to fire when the modes change. For our guide, we’ll create a stream that changes your mode to home when you get home. To get started, click the plus icon on the main page of the Stringify app and click Create New Stream.

At the top of the screen, click «Name your stream» and give it a name. For the sake of clarity, we’ll call this «Set to Home» and later on we’ll connect other threads to do certain things, like turn on the lights or adjust the temperature.

Click the plus icon at the bottom of the screen to add your items.

Scroll down and select Location and Mode from the list. Click «Add» at the top of the screen when you’re done.

Drag the Location and Mode icons onto the grid. Place Location on the left and Mode on the right. When you’re done, click the gear icon peeking out from behind the location icon.

In the list of actions, click «I am entering the area …». On the next screen, enter your address and select a radius around it. As soon as you enter this circle, the Flow will activate. When you’re done verifying your address, click Save.

Back on the grid screen, tap the gear icon behind the mode icon.

Click the «Actions» tab at the top of the screen and select «Change my mode to…». On the next screen, make sure «Home» is selected under «Mode» and click «Save» at the bottom.

On the grid screen, swipe between the Location and Mode icons to create a link like the one shown below. When you’re done, click Enable Stream.

That’s all you need to do to set your mode. As you may have noticed, this doesn’t really do anything on its own. However, this gives you more flexibility. For example, you can add another stream that will change your mode to «Home» if a car with automatic Pro, say your spouse or child, arrives home, or when a motion sensor detects motion in the lobby. Stringify only allows one WHEN trigger per thread, but this allows you to assign multiple triggers to change your mode.

Start other threads depending on your mode

Now that you have a Flow that will set your Mode to Home, you can build it. To demonstrate, we are going to create a stream that will turn on your lights if the Nest Cam detects motion, but only when your mode is set to Home. First, click the plus icon on the main screen of the Stringify app and click «Create New Stream».

Give your Thread a name. In this case, we use «Enable Living Room».

Click the plus icon at the bottom of the screen to add your items.

For this stream, we will be using Nest Cam, Philips Hue and Mode. Select your items and click Add.

First drag the three Thing icons as shown below. Jack and mode should be in the same column, and Hue next to one of them in the second column. When you’re done, click on the gear icon behind the socket icon.

Select «Motion Detected» from the list of triggers. On the next screen, click Save.

Back on the grid screen, tap the gear symbol behind the mode icon.

In the «ONLY IF» section, in the list of triggers, select «My Mode…». On the next screen, make sure Home mode is selected, then click Save.

On the grid screen, tap the gear symbol behind the tint icon.

Under the list of actions, select Turn Lights On. On the next screen, click Save.

Back on the grid screen, quickly swipe from the mode icon to the tint icon. Then swipe from the Nest icon to the yellow link icon you just created, as shown by the arrows below. The result should look like the image on the right. This will create a trigger that will fire whenever your Nest camera detects motion, but only if your mode is set to «Home».

When you’re done, click Enable Stream.

Now, this thread will turn on your living room lights whenever your Nest Cam detects any movement, but only if you’re at home so your cats won’t turn on the lights while you’re away.

Of course, if you only want to do it one way, you can replace Mode with a simple ONLY IF Location trigger. However, splitting this function into a variable gives you more flexibility. As we mentioned earlier, you can create multiple triggers that will include Home, so this flow will work even if you’re not home alone in particular. You can also add more threads that will be triggered by the same mode change.

Похожие записи