A Home Assistant custom component that provides comprehensive climate control for Hitachi Air Conditioners via IR remote controls (Broadlink, Xiaomi MiIO / Pronto, ESPHome, or native HA Infrared transmitters).
This integration features a self-contained 344-bit protocol engine (protocol.py) built upon Home Assistant's standard infrared-protocols architecture, generating exact Hitachi AC IR timings dynamically without relying on bloated static code tables.
- 🌡️ Full Climate Control: Supports Cooling, Heating, Dehumidification (Dry), Fan Only, and Auto modes.
- 🌀 Multi-Stage Fan & Swing: Full 5-stage fan speeds (Auto, High, Medium, Low, Silent), 2-stage vertical swing, and configurable horizontal swing (
simple2-stage vsmulti_step6-stage). - 🌙 Preset Modes: Includes
Eco,Sleep(舒眠),Comfort(舒適), andMoisturizing(保濕) presets. - 🎛️ Auxiliary Control Entities: Optional select entities (Display Brightness 4-level, Mold Prevention Duration), switches (Mold Prevention / Ionization), and buttons (Frost Wash, PM2.5 Display Toggle).
- 📡 Universal Emitter Compatibility: Supports native HA
infraredtransmitters, Broadlink Base64 (b64:), Pronto Hex, and Raw Microsecond timings (ESPHome/GPIO). - 🌡️💧 External Sensor Binding: Bind external temperature and humidity sensor entities for real-time room ambient tracking.
- 🔄 State Restoration: Persists HVAC mode, target temperature, fan speed, swing settings, and presets across Home Assistant restarts.
- 🛠️ Custom Services: Entity services for Display Brightness (
set_display), PM2.5 Toggle (set_pm25), On/Off Timers (set_timer,cancel_timer), Sleep Timer (set_sleep_timer), Mold Prevention (set_mold_prevention), and Clean Cycle (run_clean). - ⚙️ Configurable Feature Toggles: Enable or disable optional UI cards and controls (Timers, Display Brightness, Somatosensory, Mold Prevention, Frost Wash, PM2.5) directly in Config Flow / Options Flow.
- 🔔 Debug Notifications: Live UI notifications showing transmitted command parameters and Hitachi frame hex payload when DEBUG logging is active.
- 🌐 Multi-Language Support: Fully localized in English (
en) and Traditional Chinese (zh-Hant).
This integration uses a modular protocol engine designed to support various Hitachi IR remotes and emitters.
| Category | Verified & Supported |
|---|---|
| Protocol | ac344 (344-bit / 43 Bytes) |
| IR Emitters | Native HA infrared, Broadlink (RM4/RM Pro), Xiaomi MiIO IR |
| Device Types | Air Conditioners (climate), Selects, Switches, Buttons |
⚠️ Disclaimer & Community ContributionsThis integration is primarily developed and verified on Hitachi split-type (HV)AC units using the
ac344protocol.While the codebase is designed to support other Hitachi protocols, devices, and IR emitters, the maintainer does not own every hardware combination to verify compatibility.
- Tested successfully on your model? Please open a GitHub Issue or Discussion to let us know so we can update the tested device matrix!
- Ensure HACS is installed in your Home Assistant.
- Open HACS ➔ Integrations.
- Click the three dots in the top right corner ➔ Custom repositories.
- Add Repository URL:
https://github.com/petercpg/hitachi_infrared, Category: Integration. - Search for Hitachi Infrared Remote Integration and click Download.
- Restart Home Assistant.
- Download the latest release source code.
- Copy the
custom_components/hitachi_infrareddirectory to your Home Assistant'sconfig/custom_components/directory. - Restart Home Assistant.
- In Home Assistant, go to Settings ➔ Devices & Services.
- Click Add Integration and search for Hitachi Infrared Remote.
- Fill in the setup form:
- Name (Optional): e.g.,
Living Room AC. - Infrared / Remote Entity: Select your transmitter (e.g.,
remote.broadlink_rm4_miniorremote.xiaomi_ir_remote). - IR Signal Encoding: Choose
Broadlink Base64,Pronto Hex (Xiaomi / MiIO), orRaw Microseconds (ESPHome). - Temperature / Humidity Sensors (Optional): Select ambient sensors for room tracking.
- Cool Only: Check if your AC is a cooling-only unit (hides HEAT mode).
- Horizontal Swing Mode: Choose
Simple (Off / Auto)orMulti-Step (6 positions). - Feature Toggles: Selectively enable or disable Timers, Display Control, Somatosensory Mode, Mold Prevention, Frost Wash, or PM2.5 display.
- Name (Optional): e.g.,
💡 Re-configuring Options: Click Configure on the integration card anytime to change emitters, encoding, sensors, or feature toggles. All updates take effect instantly without restarting Home Assistant.
Add the following to your configuration.yaml:
climate:
- platform: hitachi_infrared
name: "Living Room AC"
remote_entity: "remote.broadlink_rm4_mini"
encoding: "broadlink" # broadlink, pronto, or raw
temperature_sensor: "sensor.living_room_temperature"
humidity_sensor: "sensor.living_room_humidity"
cool_only: false
h_swing_mode: "simple" # simple or multi_step
enable_timer: true
enable_display_control: true
enable_somatosensory: false
enable_mold_prevention: true
enable_frost_wash: true
enable_pm25: falseThis integration registers custom Home Assistant services for advanced Hitachi AC features:
| Service | Action Description | Parameters |
|---|---|---|
hitachi_infrared.set_display |
Set indoor LCD panel display brightness | display (bright, medium, dim, off) |
hitachi_infrared.set_pm25 |
Toggle PM2.5 concentration reading on panel | None |
hitachi_infrared.set_timer |
Schedule On/Off timer duration | minutes (positive integer, 1..1440) |
hitachi_infrared.cancel_timer |
Cancel active scheduled timer | None |
hitachi_infrared.set_sleep_timer |
Activate sleep mode and optional timer | minutes (optional, positive integer) |
hitachi_infrared.run_clean |
Trigger Frost Wash / Clean Cycle (凍結洗淨) | None (allowed when AC is OFF) |
hitachi_infrared.set_mold_prevention |
Enable/disable Mold Prevention (機體防霉) | active (boolean), duration (10, 20, 30, 45, 60) |
To enable verbose debug logging for this integration, add the following to your configuration.yaml or use Enable Debug Logging on the integration page:
logger:
default: info
logs:
custom_components.hitachi_infrared: debugWhen DEBUG mode is enabled:
- Integration startup prints integration and base
infrared-protocolspackage version to the logs. - Every transmitted IR action triggers a Debug Notification popup in the Home Assistant UI detailing the exact parameters sent and the Hitachi frame hex payload, while complete raw payloads (Base64/Pronto/timings) are logged in Home Assistant System Logs without truncation.
This project is licensed under the MIT License - see the LICENSE file for details.
