devices.esphome.io
SZMDLX IR Hub
SZMDLX IR Hub
Device Type: miscElectrical Standard: globalBoard: esp8266
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://amzn.to/3w5z6ec# 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 Configesphome:  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:  encryption:    key: !secret api_encryption_key
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