Link

SZMDLX IR Hub

  1. GPIO Pinout
  2. Basic Configuration

GPIO Pinout

Pin Function
GPIO04 Green Status LEDs
GPIO05 IR Receiver
GPIO13 Push Button
GPIO14 IR Transmitter

Basic Configuration

# This config is for the unit sold by Amazon (US): https://www.amazon.com/SZMDLX-Universal-Compatible-Automation-Controlled/dp/B082R44LJM/
# It can also be found on AliExpress: https://www.aliexpress.com/i/4000145673070.html
# The AliExpress model appears to have a nightlight function, but the GPIOs for that are currently unknown.
# The Amazon model does not mention nightlight anywhere, but the LEDs are present on the board.
# Please update if you figure out the nightlight function.

# Basic Config
esphome:
  name: SZMDLX IR Hub
  platform: ESP8266
  board: esp8285

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "IR Fallback AP"
    password: <password>

captive_portal:

logger:

api:
  password: !secret api_password

ota:
  password: !secret ota_password

status_led:
  pin: GPIO4

sensor:
  - platform: uptime
    name: "IR Uptime"

  - platform: wifi_signal
    name: "IR WiFi signal"
    update_interval: 60s

binary_sensor:
  - platform: status
    name: "IR Status"

  - platform: gpio
    pin: GPIO13
    id: physical_button

text_sensor:
  - platform: version
    name: "IR ESPHome version"

remote_transmitter:
  pin:
    number: GPIO14
  carrier_duty_percent: 50%

remote_receiver:
  pin: GPIO5
  dump: all

switch:
  - platform: template
    name: Turn on TV
    turn_on_action:
      - remote_transmitter.transmit_sony:
          data: 0x00000750
          repeat:
            times: 5
            wait_time: 45ms
    id: tv_on

alt text alt text