Select Page

Sample project: If Then


INTRODUCTION

The purpose of this example is to show you how to use the “If Then” component with a real example.

Preparing and loading the project in EVE Manager:

  • unzip the file;
  • open EVE Manager, go to the top left, File – Open – press “Ok” on the message that appears and select the file just decompressed;
  • Start the virtual machine or the Raspberry;
  • Download and Install the Logic by following this guide.
the IF Then components configuration within the ilevia's software configuration
By accessing EVE Manager, after the project is uploaded, the components that are used to configure the project are visible in the “My Components” area:

The “Water Sensor” switch will simulate a water detector instead the “Lamp” switch will simulate a lamp.

Access the If-Then component to see its configuration:

  • Our goal is to configure the “If Then” component so that when the water detector activates, the lamp turns off;
  • Operation’s condition: The lamp must be set with value equal to 1 (ON);
  • Primary condition: set the “Water Sensor” component with value 1;
  • Then: Set the “Lamp” component with the 0 value;
  • This configuration can be translated into simple words, If the water sensor is activated, then the lamp is switched off.”

Empty fields are these non-mandatory. For more information on the component configuration screen, we recommend that you read the guide that you find on the previous page.

The If-Then component not to be inserted in the user interface, in fact, you will find only the two switches.

If then component configuration within the ilevia's configuration software
After uploading the project to the server, clicking on the top of the EVE Manager on “Project” menu – Upload to server, here enter the IP address of the virtual machine or Raspberry, as the “admin” user and as password “password”, login to the EVE Remote Plus app.

LOGIN ACCOUNT  

user: admin  password: password

The interface shows a planimetry where the two elements Lamp and water sensor are placed, as you can see from the picture below, the once the the Water sensor change its state to ON the Lamp immediately turns OFF.

If then component logic displayed within the Ilevia's Home automation app

Click the link below to download the IF-Then component demo project and try it your self.

Download the demo project here!

Still Need Help? Our Customer Service Is Here For You.