ESPHome custom component for YKH531E IR remote control protocol. Controls compatible AC units via infrared signals.
Tested with: Frigidaire FHPC102AC1
Add to your ESPHome configuration:
external_components:
- source: github://smazurov/esphome-ykh531e
components: [ykh531e]
See ESPHome External Components for more installation options.
remote_transmitter:
pin: GPIO14
carrier_duty_percent: 50%
climate:
- platform: ykh531e
name: "AC Unit"
supports_heat: false
supports_cool: true
use_fahrenheit: true # Optional: use Fahrenheit instead of Celsius
- Temperature: 16-32°C (60-90°F)
- Modes: Auto, Cool, Dry, Fan, Heat (untested)
- Fan Speed: Low, Medium, High, Auto
- Swing: Vertical only
- Presets: Sleep mode
- Units: Celsius or Fahrenheit
Connect IR transmitter to GPIO14 (or your preferred pin).
Optional: Connect IR receiver to GPIO27 to update climate state when using the physical remote control.
remote_receiver:
pin: GPIO27
To modify and test:
# Install dependencies
uv sync
# Test compilation
uv run esphome compile test_device.yaml