Switch Setup

From OpenMotics
Jump to: navigation, search

Welcome to the Switch setup guide which will explain how to link 1 or more different functions to a switch by using the graphical cloud interface

General

This document describes how to perform the setup of switches and how to add 1 or more function to it. The general initialization of the modules must be done as well as the output configuration (outputs has got a name), for more details see System cloud setup.

Every switch can be configured in 5 different ways:

  • "Not in use": If this option is selected, the switch will have no function
  • "All Lights Off": If this option is selected, the switch will turn off all lights
  • "All outputs Off": If this option is selected, the switch will turn off all lights and all outputs (including valves, heating outputs etc)
  • "Trigger output": When this option is selected, the configured output will toggle every time the switch is used
  • "Execute series of Basic actions": When this option is selected, more complex configurations can be done including having multiple functions per switch (see examples)

In the following 2 simple examples, we will focus on the 2 last items ("Trigger Output" and "Execute series of Basic actions").

Example 1: Link an output to a switch

This is the most simple and most used function: 1 switch will trigger 1 light/output. Before doing this, make sure the outputs you want to use has got a name.

Step 1

Use your credentials to login to the Openmotics portal (https://cloud.openmotics.com). If you have more then 1 installation, select the desired installation on top of the page in the section "My Installation".

If you have created some group actions by using CLI mode, please sync the system by using the "resync" button in the Settings-Maintenance page:

Maintenance1.jpg

Go to the "Configuration" page and select "5. Inputs"

In this page, you can easily detect which input is activated, even when this input is not programmed yet. This page shows all inputs. When an input start flickering in blue, that switch is used and the flickering will continue for a few seconds.

Input1.jpg

As you can see in the above example, we pushed the switch and we see that input 56 start flickering. So we select input 56 by mouse clicking on input 56.

Step 2

So we've selected our input 56 and we will select the option "trigger output". the only thing we need to do is select the right output from the drop down menu and apply save.

Input2.jpg

So after applying save, when input 56 is triggered, the light of the terrace will be switched on or off.

Example 2: Toggle light when normal press, switch off all lights when applying a long press

When you normally push a switch, function 1 will apply, when you push for a few seconds, function 2 will apply. Function 1 and 2 can be any function like toggle a light, toggle multiple lights, switch on lights with a certain timer or intensity, set the thermostat function, apply IF THEN ELSE etc

We take a simple example to show how a switch can have multiple functions. In our example, the switch of the garage will toggle the light of the garage when applying a normal press, when however applying a long press, all lights will be switched off and the light outside will be switched on.

Step 1

Use your credentials to login to the Openmotics portal (https://cloud.openmotics.com). If you have more then 1 installation, select the desired installation on top of the page in the section "My Installation".

If you have created some group actions by using CLI mode, please sync the system by using the "resync" button in the Settings-Maintenance page:

Maintenance1.jpg

Go to the "Configuration" page and select "5. Inputs"

In this page, you can easily detect which input is activated, even when this input is not programmed yet. This page shows all inputs. When an input start flickering in blue, that switch is used and the flickering will continue for a few seconds.

Input3.jpg

As you can see in the above example, we pushed the switch and we see that input 37 start flickering. So we select input 37 by mouse clicking on input 37.

Step 2

So we've selected our input 37 and we will select the option "Execute a series of basic actions".

Input4.jpg

Select the "View or update" button and the below window will open:

Input5.jpg

Step 3

We want to toggle the light of the garage when the switch is pressed normally. In the section short press, we will add the output action to toggle the light of the garage. By clicking the output action on the right side, a standard output action will appear in the action list.

Input6.jpg

As you can see below, we will change the output action by changing the action and output.

Input7.jpg

Input8.jpg

Step 4

Now, we will add the necessary actions when a longer press is executed by selecting the 3 sec tab.

Input9.jpg

First we will add the "All lights off" function and secondly, we will add the function to switch on the light of the driveway.

Input10.jpg

By pressing the "Save" button, all the function are programmed and ready to use.

Input11.jpg