Skip to main content

Macros

Lite-product-icon.png

iRidi lite

A macro is a sequence of control commands activated by a click.

A macro contains control commands that you can activate with a single button click in the Template. It contains actions and conditions. A condition is optional when triggering an event.

Lite_macros03.png

The Macros tab contains these settings:

  • Name - the macro name.
  • Icon - the macro icon, which helps distinguish it visually from other macros.
  • Place - the location where the macro is used.
  • DO - actions performed when the macro is activated.
  • BUT ONLY IF - a condition required for the macro to execute.
  • Delete macro - delete the selected macro.

Creating a macro​

Create two macros to turn on several dimmers simultaneously. Place the macros in the room where the dimmers are located. These examples examine how actions and conditions work in more detail.

  1. Open Macros.

Lite_macros01.png

  1. Create one using i3lite_plus.png or Create macro.

  2. Enter the macro name and save it.

Lite_macros02.png

Lite_macros03.png

Create two macros. Place them in the room where the dimmers are located. These macros demonstrate how actions and conditions work in detail.

Macro 1​

Under Add action, select Device.

Lite_macros08.png

Select Light 1. Lite_macros09.png

Click On.

Lite_macros10.png

Add Light 2. Select Brightness.

Lite_macros11.png

Set Value to 50.

Lite_macros12.png

Lite_macros13.png

Clicking the macro will turn on the dimmers.

Lite_macros14.png

Macro 2​

Create a macro named Second macro.

Under Add action, select Light 3.

Click On.

Set a condition for this macro by clicking Add condition.

Lite_macros15.png

Select Device and Light 1 with the value On.

Dimmer 3 will turn on only if dimmer 1 is on.

Lite_macros16.png

Start the project.

To test the macros, turn off the dimmers.

Lite_macros17.png

Clicking First macro turns on dimmer 1 and dimmer 2. Dimmer 2 uses the value set earlier.

Clicking Second macro turns on dimmer 3 because dimmer 1 is also on. If you turn off dimmer 1 and dimmer 3 and click Second macro again, dimmer 3 will not turn on.