## IR Repeater Module: Channel Configuration

### Overview
The "Channels" configuration page allows you to define the logic for individual functions. Here, you link the raw IR codes stored in the library to specific KNX actions. This module supports bidirectional communication: it can either transmit IR signals based on KNX commands (controlling AV equipment) or send KNX telegrams upon detecting specific IR signals (using a remote to control lights/blinds).

### Key Parameters
- ***Channel name***: Allows the user to assign a descriptive text to the channel (e.g., "TV Power On"). This name is reflected in the ETS project tree and automatically updates the corresponding Communication Object labels, making programming and identification significantly easier.
- ***Channel state***: Enables or disables the specific channel within the module configuration.
- ***Working style***: Defines the direction of the signal conversion.
  - **Knx -> Infrared**: The device listens for a KNX command and transmits a stored IR signal to control an appliance.
  - **Infrared -> Knx**: The device listens for a physical IR signal and sends a command to the KNX bus (e.g., allowing an unused button on a TV remote to control a KNX lighting circuit).
- ***IR code number***: Selects which slot number (1-64) from the "Codes" page is associated with this channel.
- ***IR code self replacement***: Enables the end-user to update the stored IR code without requiring ETS service (e.g., when replacing a TV).
  - **General Operation**: A dedicated communication object is created to trigger the learning mode.
  - **Scenario Feature**: If "Knx -> Infrared" is selected and the Input value type is set to 1 Byte, this feature functions like a standard KNX Scene object. A short press sends the IR code, while a long press (via the scenario object) triggers the device to learn and save a new IR code to this slot.
- ***Disabling object***: Activates a 1-bit communication object that allows the channel to be temporarily disabled or locked via the KNX bus.
- ***Remember disabling state after bus recovery***: Defines whether the channel retains its previous "Disabled" or "Enabled" status after a power failure and bus recovery.

### Conditional Parameters (Dependent on "Working style")
- ***If "Knx -> Infrared" is selected***:
  - **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 IR transmission.
  - **Input value**: Defines the specific value the KNX object must receive to trigger the IR transmission.
  - **Sending infrared signal delay**: Sets a delay time (in x100ms steps) between receiving the KNX command and transmitting the actual IR signal (0 = immediate transmission).
- ***If "Infrared -> Knx" is selected***:
  - **Output value type**: Specifies the Data Point Type (DPT) of the telegram to be sent to the KNX bus when the IR code is detected.
  - **Output value**: Defines the value/data to be sent to the KNX bus upon detection of the IR signal.
  - **Sending output value delay**: Sets a delay time (in x100ms steps) between detecting the IR signal and sending the KNX telegram (0 = immediate transmission).

### Purpose
- To create a bridge between the KNX system and infrared-controlled devices.
- To enable flexible control logic, allowing physical remotes to interact with the smart home or the smart home to automate AV equipment.
- To provide end-user maintenance capabilities via the "Self replacement" feature.

### Usage
Assign a unique name to each channel for clarity. Choose the Working style based on whether you are controlling an IR device or using an IR remote as an input.
For critical functions where equipment might change (like a TV), enable IR code self replacement to allow the user to update the IR commands locally using a wall switch (via Scene object logic) or a visualization interface.