vd Brink Home Automations

Home automations: Home Assistant, ESPHome, Node-RED and more.

Follow me on GitHub

Introduction

With a small device, you can automate all your infrared controlled devices! Like a TV, air conditioner, fireplace, screens or lights.

NOTE: Affiliate links are used on this page.


smart infrared transmitter / receiver

infrared remote control With this small black box, powered on batteries, you can control any infrared device.

A fireplace, a TV, air conditioner, or lights, you can control them all with this device. Also, Christmas decorations, see my dedicated page about this subject.


Learn mode

To learn a new signal, set the device in learning mode by sending this payload to the MQTT topic of the device, for it that zigbee2mqtt/irremote/set


{     
  "learn_ir_code":"ON" 
}

Now a light turned on in front of the device. Now you can hold the original remote in front of the device and press a single button.

The response contains the infrared code to use to resend the signal via this device now.


{
  "battery" : 11,
  "last_seen" : "2024-11-03T09:21:03.343Z",
  "learn_ir_code" : null,
  "learned_ir_code" : "Bb8jphFIAuAXAQF9BuAVA0ABwCPgAwFAE0ABwAdAAUALwANAAUALCcqdvyPBCEgC///gAgcCCEgC",
  "linkquality" : 43,
  "voltage" : 1200
}

Resend signal

To resend the signal, send on the topic MQTT topic zigbee2mqtt/irremote/set this payload to send the same signal as from the original remote.


{
  "ir_code_to_send": "Bb8jphFIAuAXAQF9BuAVA0ABwCPgAwFAE0ABwAdAAUALwANAAUALCcqdvyPBCEgC///gAgcCCEgC"
}

Now the lights also turned on!

Now you can add these commands to your automation.


Home Assistant

From Home Assistant, you can create buttons on your dashboard and send a MQTT events to a specific topic.

Home Assistant button send MQTT event

# Sourcecode by vdbrink.github.io
# Dashboard button card code
type: button
name: Turn on
tap_action:
  action: perform-action
  perform_action: mqtt.publish
  data:
    topic: zigbee2mqtt/irremote/set
    payload: >-
      {"ir_code_to_send":"BcsjsBFGAuAXAQGFBuAZA0ABQCfgAwHgAw/AC0AHwANAAUALCc+dyyPDCEYC///gCgcCCEYC"}


Hardware

These hardware devices are examples of what can be used with this automation.

Infrared transmitter / receiver

  • An programmable infrared remote

    It can learn signals from the original remote, and via Wifi or Zigbee you can resend the copied signal to simulate the press on the button via an automation.

    infrared remote control

Infrared controlled devices

LEDS

Light curtains

Tea lights

Where do you use the infrared transmitter / receiver for in your smart home?


Top | Homepage | Best Buy Tips