Execution modes

Execution modes
0

#1

Introduction

If you are a user of Apilio, you probably love home automation. If you are a heavy user, you might have had one or two occasions where you would like to be able to have more control over the triggering of actions. And that’s exactly what execution modes are here for: To give you the option to step into the automation flow and cancel it sometimes.

When a logicblock is evaluated, it will result in either a positive or a negative result. For both two outcomes, you can configure an individual action chain. An action chain is a bundle of IFTTT actions in a certain order.
You could for instance configure an action chain to close your garage door and switch off the lights.

Execution mode “Immediate”

This is the default mode and the only one available in most automation systems. It is perfect for cases where the automation is happening very often and the consequences of an unwanted triggering are insignificant.
In this mode, the action chain will be started right after the evaluation of the logicblock without warning or asking for permission. You can of course set individual delays for action within the chain, but you can’t stop the chain from kicking off.

Execution mode “Warn”

In this mode, Apilio will send you a warning and the ability to stop the action chain from being started. This is perfect for all automation tasks that do not happen too often, shall normally run without confirmation, but which could be unsuitable in some conditions and you want the ability to stop them.

  • If you have no actions configured for the result (either positive or negative) you will not get a notification
  • Actions waiting in the queue until the time limit is up will be cancelled if new actions for the same logicblock are queud up.

Execution mode “Suggest”

In this mode, Apilio will send you notification to suggest some automation tasks which you can confirm or not. Without your explicit confirmation, nothing will be triggered. This is handy for automation tasks that will bother you quite a bit when running at the wrong occasion and you therefore want to have the last word.

  • If you have no actions configured for the result (either positive or negative) you will not get a notification

Setup Instructions

Before you can use the modes “Warn” and “Suggest”, you need to setup a communication channel where you can receive instant messages and open a web link. I recommend using the IFTTT app to receive the notifications, but most popular chat apps with an IFTTT integration will work as well.
The content for the notification consists of a short text and a weblink. Those two pieces of information are sent as value1 and value2 to your personal IFTTT webhook service with “apilio_notification” as the applet event name.

Using the IFTTT app to receive notifications

Among the functions to control your IFTTT settings, the IFTTT app also offers the ability to receive push notifications. It works well with the notifications you will receive from Apilio. Therefore I suggest that you use the IFTTT app to receive the notifications. If you want to follow that recommendation, you can copy the applet configuration details from the following list or have a look at the screenshot provided. Unfortunately, IFTTT doesn’t allow these kind of applets to be shared as template, so you need to create them yourself.

  1. Go to the IFTTT Webhooks Service page and connect to the service
  2. Click on the “Documentation” button on that page and copy the access key
  3. Save the access key on your Apilio profile
  4. Get the IFTTT app and sign in with your IFTTT account.
  5. Get ready to create a new applet: Go to the tab “My Applets” and tap the big “+” sign in the top right hand corner or open the IFTTT web app.
  6. The receiving service (“this”) is “Webhooks”:
    Trigger: Select “Receive a web request”
    Event Name: “apilio_notification”
  7. The acting service (“that”) is “Notifications”:
    Trigger: Select “Send a rich notification from the IFTTT app”
    Title: “Apilio Automation”
    Message: “{{Value1}}”
    Link: “{{Value2}}”

Making a custom applet to recieve notifications

If you want to receive the notifications in any other app (e.g. Skype, Slack, Facebook Messenger, …) you can of course build your own applet.
You can see the relevant elements (Message and Link) on the list above.