R PiHome+ | Add New Task

Basic Task

The basic task contains only one trigger and an action.


 

Step 1

Go to  the I/O Remote Page and click on the task icon of the output you wish to create new task.

home automation raspberry pi
New Task – R Pihome +

Step 2 – Select Type 

  • For the State Outputs, choose from the following:
    • Turn On Task – The output turns on after triggered
    • Turn Off Task – The output turns off after triggered
    • Invert Task – The output reverses the current status after triggered
  • For the Pulse Outputs you can only add a Pulse Task
raspberry pi, home automation
New Task – R Pihome +

Step 3- Define Trigger

When you are creating a new task, you need to specify a trigger. Trigger is an event (e.g. movement, opening of the door, scheduled time…), which executes an action (Turn on Light, Close Garage door, Turn off central heating…).

raspberry pi home automation
New Task – R Pihome +

Advanced Task

An advanced task contains one or multiple triggers, one or more conditions, and an action.

  • If you choose multiple triggers, the logical function (logical operator) between those triggers can only be “OR”. This means the task is triggered after any of the triggers occur.

  •  If you choose more conditions, the logical function (logical operator) betwen conditions can only be “AND”. This means the action is executed after all of the conditions are met.


Step 4 – Select Conditions

You can add as many conditions as you need. The conditions are checked one by one from the top to the bottom. R PiHome+  stops checking after it finds the first unmet condition, and will log this unsatisfied condition as the reason for this action not beeing executed (if you select “Save error logs”).

raspberry pi home automation
New Task – R Pihome +

The variables you can employ for trigger(s) and condition(s) are displayed in the table below.

Trigger

Condition

Input/Output Status

Yes

Yes

Wifi/LAN Device Status

Yes

Yes

Scheduler

Yes*

No

Time Frame

No

Yes*

Loop

No

Yes

Wait

No

Yes

* Scheduler can be only used as a trigger, Time Frame can be only used as a condition; however, they cannot be employed simultaneously in a task.

 

Input/Output Status: The system checks the current status of the input/output and it recognises any changes that have lasted for at least 0.5 seconds.

Wifi/Lan Device Status: The system checks the current status of the devices connected/disconnected to your Local Network (some routers does not support this feature). You can add a new device while creating a new task by selecting the feature “ADD NEW DEVICE” from the devices list.  Alternatively, you can do this by clicking on a device icon via Main Menu. In the Setings Tab, you can configure there the frequency betwen individual checks that you wish the system to perform.

Scheduler: The system checks current time/day/date. You can add a new scheduler while creating a new task by selecting the feature “ADD NEW SCHEDULER” from the scheduler list.  Alternatively, you can do this by clicking on a scheduler icon via Main Menu.

Loop: R PiHome+ checks the status of the input/output in a specified time frame. You can use 2 types of the loop:

1. The status IS Low/High during entire set time frame – the status of the input/output has to be Low/High during the whole time frame, otherwise the conditions in not met.

2. The status BECOMES Low/High during set time frame – the status of the input/output has to be Low/High for at least 0.5 second during set time frame, otherwise the condition in not met. Once the condition is met the system exits the loop.

Wait: Pause checking the conditions or executing action for set time.


Step 5 – Save success/error log

Select what kind of event should R PiHome- save.

The success logs are recorded into the database if the task was triggered, all conditions were met, and an action was executed.

suc
Success log – R PiHome+

 

The error logs are recorded into the database if a condition was not met.

raspbery pi home automation
Error log – R PiHome+

 


Step 6 – Advanced settings

To execute an inverted action or to get en email notification after the execution of the action, you can do this in the advanced settings.

raspberry pi home automation
New Task – R Pihome +