Very simple infrared repeater using MQTT

I have created a simple-to-use IR repeater that uses a WEMOS D1 Mini and MQTT to record and transmit IR commands

There are instructions for use in the Github repository: https://github.com/hotplot/BlastIR

Basically:

  1. Edit credentials.h and specify your WiFi / MQTT details
  2. Upload the program to a board
  3. Connect an IR receiver to D3 and an IR LED to D5 (possibly via a transistor if you need more power)
  4. Automate in Home Assistant

You can listen to received IR commands by subscribing to one MQTT topic, and transmit commands by publishing to another

Since the device simply records any IR command it receives and allows you to transmit it again later, it should be compatible with any IR-controlled appliance regardless of protocol or whether the command format has been reverse engineered

Example automation that turns my heat pump off whenever the house is empty or it’s after 9pm:

- alias: Stop Heatpump
  trigger:
    - platform: state
      entity_id: input_boolean.house_occupied
      to: 'off'
    - platform: time
      at: '21:00:00'
  action:
    - service: mqtt.publish
      data:
        topic: "ir/heatpump/send"
        payload: "4400 4400 560 1600 560 1600 560 1600 560 1600 560 560 560 560 560 1600 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 560 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 1600 560 1600 560 1600 560 1600 560 1600 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 560 560 560 560 1600 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 560 560 1600 560 1600 560 560 560 4400 4400 4400 560 1600 560 1600 560 1600 560 1600 560 560 560 560 560 1600 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 560 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 1600 560 1600 560 1600 560 1600 560 1600 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 560 560 560 560 1600 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 1600 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 1600 560 1600 560 560 560 1600 560 1600 560 560 560"
        qos: 2
2 Likes

hi, how can I read the codes I want to record? is there a software to “read” the mqtt messages?

From the docs:

Record transmitted IR commands by subscribing to ir//recv and transmit commands by publishing to ir//send