6. Utilities

Automation defines the following types of events:

Formatter

The Formatter block helps you use output parameters from Events in Actions and format access to the Actions parameters. 

 

Parameters

  • Format – define the text to be sent to the output of the Text variable. Use braces {} to enter the Param1 value.
  • Param 1 – set an output parameter for the Format parameter. Typically, it is connected to the Events variable.
  • Param 2 – set an output parameter for the Format parameter. Typically, it is connected to the Events variable.
  • Param 3 – set an output parameter for the Format parameter. Typically, it is connected to the Events variable.
  • Param 4 – set an output parameter for the Format parameter. Typically, it is connected to the Events variable.
  • Param 5 – set an output parameter for the Format parameter. Typically, it is connected to the Events variable.


Output parameters

  • Text – final Format text with the set output parameters if any. In Param 1. 


Example

Prepare an HTTP command including the value of the key pressed in KeyPressed.

 

Example

Use the parameter value received via HTTP as an action variable.

When the following command is sent to the device: http://<device_address>/enu/trigger/id?param1=value1&param2=value2the variables are available via the {param_input.param_name} command.

HTTP command to be sent: http://10.27.24.15/enu/trigger/PlaySound?Sound=3

Format: {1.Sound}

Use sound to be played: 3