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:
- Edit credentials.h and specify your WiFi / MQTT details
- Upload the program to a board
- Connect an IR receiver to D3 and an IR LED to D5 (possibly via a transistor if you need more power)
- 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