How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (2024)

There are several WiFi-based universal IR blasters available online from manufacturers, such as Tuya and its rebranded versions, sold across the world. They allow you to get rid of all remote controllers and control your TV, heaters, HVAC, home theater, fan, or other IR remote-controlled devices through a smartphone app. You can also integrate and send commands to these IR blasters for controlling the devices through Alexa or Google Assistant.

However, there are a few considerable challenges associated with the smart Wi-Fi IR blaster, such as:

  • Requires internet to work and will not work if the internet is down or unavailable.
  • Slow response time as commands go through the internet via cloud servers before reaching the IR blaster.
  • Comes with a limited preset list of supported devices.
  • Provides limited or no option for automation.
  • Not compatible with Home Assistant.

Converting IR Blaster to Create Custom IR Remote for Home Assistant

There are two different ways to convert a universal IR baster with the TYWE3S chip into a custom IR remote for Home Assistant:

  • Flash Tasmota firmware
  • Flash ESPHome firmware

In this DIY guide, you will learn the process of converting these universal IR devices into a custom Tasmota firmware-based IR blaster, add them to Home Assistant for local Wi-Fi remote control, and set automation triggered by events.

Things You Will Need

To get started, you will require the following hardware:

  • A cheap Wi-Fi universal IR blaster with the TYWE3S module, such as Tuya, Oakter, Broadlink, etc.
  • Soldering iron and solder wire (tin). If you are a novice, it’s recommended that you learn how to solder before proceeding with this project.
  • Male-to-male jumper wires
  • A USB to TTL Serial converter module
  • Home Assistant set up on Raspberry Pi or any old laptop

Steps to Flash and Convert Cheap Universal IR Blaster to Custom IR Remote

To flash the Tasmota firmware onto a universal IR blaster, you need to interface the IR blaster with the USB to TTL Serial converter module. The steps are as follows.

Flashing custom firmware could be dangerous and may render your device unusable. Follow this DIY guide at your own risk.

Step 1: Disassemble the Universal IR Blaster

Disassemble the IR blaster to access the hardware inside for flashing the Tasmota firmware. Use a screwdriver to remove the screws and then use some force to remove the outer cover.

Step 2: Flash Tasmota Firmware

Once you have access to the hardware, solder jumper wires to the 3.3V power supply, TX and RX communication pins, GND, and IO0.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (1)

After soldering the jumper wires, connect them to the USB to TTL Serial converter module as shown in the table.

IR Blaster

USB to TTL

3V3

3v3

TXD

RXD

RXD

TXD

IO0

GND

GND

GND

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (2)

Download the Tasmota.bin firmware file and Tasmotizer.exe flashing tool.

Connect the USB to TTL Converter module to the PC or laptop and launch the Tasmotizer flashing tool

Click Refresh and then select the COM port and click Open to choose the downloaded Tasmota.bin firmware file.

Click Tasmotize!

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (3)

Wait for the tool to finish flashing the firmware.

Step 3: Setup Custom IR Remote

After the flashing completes, disconnect the IO0 pin from the ground pin and press the reset button on the USB to TTL module.

On your PC or laptop, open Wi-Fi settings and connect to the tasmota-XXXX-XX Wi-Fi network

Open a web browser and go to 192.168.4.1.

Select the available Wi-Fi network and enter the password. Click Save.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (4)

An IP address will be displayed. Note down and then open the IP in the web browser. You may also click on the IP address to open the Sonoff Basic Tasmota web interface.

Click Configuration > Configure Module.

From the Module Type, choose Generic and click Save. The device will restart.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (5)

Click Configuration > Configure Module and select the pins as shown in the screenshot below, then click Save.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (6)

Step 4: Connect to Home Assistant

To connect this converted custom IR blaster to Home Assistant, you must install and configure MQTT on your Home Assistant.

Once set up, go to Configuration > Configure MQTT in the custom IR blaster web interface and enter the MQTT parameters, such as IP address of the Host, User, and password, and click Save.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (7)

Step 5: Send/Receive IR Commands

Once setup is finished, open the web interface and go to Console.

When you press a button on your IR remote, the converted IR blaster receives an IR signal and displays it in the Console.

tele/tasmota_XXXX/RESULT = {"Time":"2022-03-06T12:00:42","IrReceived":{"Protocol":"RC6","Bits":20,"Data":"0x1040C"}} 

You can send this IR signal from the converted IR blaster via the Console using IRSend:

IRsend {"Protocol":"RC6","Bits":20,"Data":"0x1040C"} 

The command will be sent, and the device will perform the action based on the IR data transmitted.

Step 6: Integrate With Home Assistant

To integrate with Home Assistant, you need to install the File Editor add-on and then use it to open the configuration.yaml file and add the following lines,

switch:
- platform: mqtt
name: "Home Theatre Switch"#This is the entity name
command_topic: "cmnd/tasmota_F4EFCE/irsend"#replace tasmota_F4EFCE with your device name
payload_on: '{"Protocol":"RC6","Bits":20,"Data":"0x1040C"}'#replace with the IrReceived value
payload_off: '{"Protocol":"RC6","Bits":20,"Data":"0x1040C"}'
How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (8)

After the restart, go to the Dashboard and click Edit Dashboard.

Click Add a Card and choose Horizontal Stack.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (9)

Select the Button and choose the name of the IR entity you want to control. Test the button and then repeat the steps to add all other entities and buttons.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (10)

Now you can control the IR device with your Home Assistant. You may repeat the steps to add as many devices as you want to control.

Make Traditional HVACs Smart

Besides adding toggle buttons to Home Assistant for controlling your home appliances or air conditioner, you can take advantage of the MQTT Climate component in Home Assistant to further customize the controls.

You may also use ESPHome to build custom firmware for your HVAC (heating, ventilating, and air conditioning) and thermostat controls with the Climate component in Home Assistant and flash it on any cheap IR blaster.

Further, you can add automation to control IR devices. For instance, turn off/on the home theater when the TV is switched off/on, or slow the fan speed when the air conditioner is switched on.

  • DIY
  • Smart Home
  • Remote Control

Your changes have been saved

Email Is sent

Please verify your email address.

You’ve reached your account maximum for followed topics.

Manage Your List

Follow

Followed

Follow with Notifications

Follow

Unfollow

Readers like you help support MakeUseOf. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

How to Convert and Add a Cheap IR Blaster to Home Assistant for Automations (2024)
Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 6502

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.