## IR Repeater Module: Macros Configuration

### Overview
The "Macros" page allows for the creation of complex, sequential command chains. Unlike a standard channel which sends a single IR code, a Macro can execute a series of up to 8 distinct IR commands triggered by a single KNX telegram. This is ideal for scenario-based controls, such as a "Cinema Mode" that turns on the TV, switches the input to HDMI, and powers on the soundbar sequentially.

### Key Parameters
- ***Macro name***: Allows the user to assign a descriptive text to the macro (e.g., "Cinema Mode"). This name is reflected in the ETS project tree and automatically updates the corresponding Communication Object labels, facilitating easy identification during programming.
- ***Macro state***: Enables or disables the specific macro within the module configuration.
- ***Disabling object***: Activates a 1-bit communication object that allows the macro function to be temporarily disabled or locked via the KNX bus.
- ***Remember disabling state after bus recovery***: Defines whether the macro retains its previous "Disabled" or "Enabled" status after a power failure and bus recovery.
- ***Physical output selection***: This parameter allows you to choose which of the three physical infrared output ports on the device will be used to transmit IR control signals.
Each output corresponds to an independent infrared emitter on the hardware. By selecting one or multiple outputs, the gateway will send the generated infrared data through the selected ports simultaneously.
- ***Input value type***: Specifies the Data Point Type (DPT) of the KNX object that will trigger the macro sequence.
- ***Input value***: Defines the specific value the KNX object must receive to start the macro execution.

### Macro Sequence Parameters (Part 1 - Part 8)
The macro executes parts sequentially from 1 to 8.

- ***Part [n] - IR code number***: Selects the IR code to be transmitted for this step from the library defined in the "Codes" page.
  - **Selection**: Choose a code number (1-64).
  - **Note**: Setting this value to 0 disables this specific part. The macro will skip this step (sending no signal) and immediately proceed to check the next part in the sequence.
- ***Part [n] - Transmission delay***: Sets the wait time (in x100ms steps) after this part is executed before the device proceeds to the next part in the sequence.
- ***Part [n] - Transmission count***: Defines how many times this specific IR code should be repeated consecutively before the delay timer starts and the macro moves to the next part.

### Purpose
- To automate multi-step processes with a single user action.
- To manage timing requirements of AV equipment (e.g., power-up delays).
- To ensure command reliability by repeating specific signals within a sequence.

### Usage
Use this page when you need to control multiple devices or execute multiple functions on a single device with one button press.

Example: For a "Turn On System" macro:

  - **Part 1**: Code 1 (TV Power), Delay 50 (wait 5s).
  - **Part 2**: Code 0 (Disabled/Skipped).
  - **Part 3**: Code 12 (TV Source HDMI), Delay 0.
  
In this example, Part 2 is ignored, and the macro executes Part 3 immediately after Part 1's delay finishes.