# Chang Hong Ice Maker Esphome

长虹CH-Z6Y3制冰机接入HomeAssistant ESPHome固件，通过ESP32-C3实现状态识别、远程开关、大小冰切换与UV控制

长虹CH-Z6Y3制冰机接入HomeAssistant ESPHome固件，通过ESP32-C3实现状态识别、远程开关、大小冰切换与UV控制

- id: ljzd-pro-chang-hong-ice-maker-esphome
- author: Ljzd-PRO
- repository: https://github.com/Ljzd-PRO/chang_hong_ice_maker_esphome
- license: BSD-3-Clause
- shape: square
- scenes: art, tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/ljzd-pro-chang-hong-ice-maker-esphome/
- html_zh: https://esp32gallery.com/zh/projects/ljzd-pro-chang-hong-ice-maker-esphome/
- json: https://esp32gallery.com/data/catalog/projects/ljzd-pro-chang-hong-ice-maker-esphome.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A Changhong CH-Z6Y3 ice maker gains a Home Assistant presence by tapping its five-wire P1–P5 panel with an ESP32-C3 Super Mini. The board reads the panel lines as high-impedance ADC inputs at about 1 kHz and recognises standby, large ice and small ice from relative signatures such as `0HHHH` and `MHMHH`, then presses the original keys by pulling a GPIO low for roughly 100 or 80 ms. Power, large/small ice and an UV toggle show up as HA entities over ESPHome's native API. No common ground is used and the C3 runs from its own USB supply; the direct GPIO hookup is called electrically risky, with current limiting or isolation advised for long-term use. Only CH-Z6Y3 is supported.
```

## 中文

```
把长虹 CH-Z6Y3 制冰机接进 Home Assistant：一块 ESP32-C3 Super Mini 直接搭在原机五线 P1–P5 面板上。它以高阻输入、约 1 kHz 读这五根线的 ADC，用 0HHHH、MHMHH 这类相对特征判断待机、大冰、小冰，再靠把某个 GPIO 拉低 100 或 80 毫秒来模拟按开关和选择键。HA 里得到电源、大小冰和 UV 翻转眼三个实体，走 ESPHome 原生 API。整套不共地，C3 自己用 USB 供电，电脑 USB 会扰到面板扫描；直连 GPIO 有电气风险，长期最好加限流或隔离，且只声明支持 CH-Z6Y3 这一款。普通用户可以直接刷 Release 里的 factory.bin，配网走后备热点或 BLE Improv，之后日常控制都在 Wi-Fi 上。
```
