# Infrared (IR)

## How to Send Multiple IR Commands with Delays?

Smart IR remotes, such as the LinknLink eRemote or eHub, can assist with app or voice control. But how can an IR remote handle setups that require multiple IR operations to be performed sequentially with controllable intervals?

For instance, if you want to switch your input to HDMI2, you might need to:

Turn ON the TV (15s)\
Press Up (2s)\
Press OK (2s)\
Press Right (2s)\
Press OK (2s) to select HDMI2 as the input

Here is a simple and effective way to set this up:&#x20;

1/ In LinknLink App, add a "General Scene"\
2/ Add actions\
3/ Click the "Timer" icon next to each action to set delay

You can refer to the [Tutorial Video](https://youtu.be/r2AEgaliXKY) for a better understanding:

{% embed url="<https://youtu.be/r2AEgaliXKY>" %}

## Add IR device to eRemote

#### 1. Add with Auto-Matching

Click the "+" icon in the top-right corner and select an appliance type (e.g., TV).

<figure><img src="/files/smMUanvrlIYG75jmQwHd" alt=""><figcaption></figcaption></figure>

2. To control your lR device using both the app and HA, select "Add for HA". \
   Follow the wizard to select the brand, test the lR options, and save your settings. You can then controlthe device from your phone

<figure><img src="/files/Q9KUzYlFrqUaeUKhRy52" alt=""><figcaption></figcaption></figure>

3. **Add with Manual-Learning**\
   If no lR options match the selected brand, click "Learn Remote Now" tocreate a blank template. Assign a room and rename the device to continue, then click "Use DeviceNoW". \
   Click the grey buttons and follow the wizard to manually learn the lR codeusing your physical remote.

<figure><img src="/files/xVJdOR7eLcAS25UJPzXa" alt=""><figcaption></figcaption></figure>

## SYNC IR device to HA

#### 1. Configure MQTT for HA

Return to the eRemote HA device page. Click the ".." icon in the top-right corner, then select "MQTT Connection."

<figure><img src="/files/pd1KOLbhnCG7GTEfEArM" alt=""><figcaption></figcaption></figure>

2. Enter the required information based on your MQTT server settings and click "Save"Reopen "MQTT Connection" to verify that the status shows "Connected".

<figure><img src="/files/tE3O9efNttxlHbKktDlV" alt=""><figcaption></figcaption></figure>

#### 3. Control IR device in HA

Once MQTT is connected, the added lR device will automatically appear in your HA, with theavailable buttons synced and ready for use. You can now use the IR device in HA for complete local automations.

<figure><img src="/files/TuFa7gIpptVayRpxa1Qq" alt=""><figcaption></figcaption></figure>

## Alexa / Google Voice Control

* If you're already logged into the Alexa or Google Home APP, you can now directly link to the LinknLink skill.&#x20;
* On the App homepage, click on the "+" in the top right corner and select "Add Voice Assistant". Select "Alexa" or "Google Home", then click "Link Now".&#x20;
* You will be redirected to the Alexa / Google Home APP and click "Link" to complete this process.&#x20;
* After successfully discovering the device, you will be able to control the device through the Alexa / Google Home APP or speaker.

<figure><img src="/files/Cr1ybhza9yCt2BL11f7S" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.linknlink.com/kb/smart-home-devices/eremote/infrared-ir.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
