Haier Climate

The haier climate platform creates a Haier climate device. The component can be used as a replacement of a Haier proprietary WiFi modules such as KZW-W001 and KZW-W002.

This component requires a UART Bus to be setup.

logger:
    baud_rate: 0 #Disable UART logging for ESP8266

uart:
    rx_pin: GPIO3
    tx_pin: GPIO1
    baud_rate: 9600

climate:
    platform: haier
    name: Haier AC
    supported_swing_modes:
      - VERTICAL
      - HORIZONTAL
      - BOTH

Configuration variables:

  • id (Optional, ID): Manually specify the ID used for code generation.

  • name (Required, string): The name of the climate device.

  • update_interval (Optional, Time): How often device will be polled for status. Defaults to 5s.

  • supported_swing_modes (Optional, list): List of supported swing modes. Possible values are: VERTICAL, HORIZONTAL, BOTH.

  • All other options from Climate.

Hardware setup

Most units will have a dedicated USB-A port for Haier WiFi module. The physical USB port is in fact UART and does not “speak” USB protocol. It uses four USB pins as 5V, GND, RX, TX. You can use spare male USB cable to connect esphome device directly to the climate appliance.

Other units will not have USB ports, but will still probably have UART exposed somewhere on the main board.

Haier UART pinout

Board

USB

Wire color

ESP8266

5V

VCC

red

5V

GND

GND

black

GND

TX

DATA+

green

RX

RX

DATA-

white

TX

../../_images/usb_pinout.png

USB Pinout

See Also