Xiaomi Mi Smart Pedestal Fan

August 24, 2026 ยท View on GitHub

GitHub actions GitHub stars GitHub forks GitHub watchers "Buy Me A Coffee"

This is a custom component for home assistant to integrate the Xiaomi Mi Smart Fan.

Please follow the instructions on Retrieving the Access Token to get the API token to use in the configuration.yaml file.

Credits: Thanks to Rytilahti for all the work.

Supported devices

NameModelModel no.Specs
Pedestal Fan Fan V2zhimi.fan.v2
Pedestal Fan Fan V3zhimi.fan.v3
Pedestal Fan Fan SA1zhimi.fan.sa1
Pedestal Fan Fan ZA1zhimi.fan.za1
Pedestal Fan Fan ZA3zhimi.fan.za3
Pedestal Fan Fan ZA4zhimi.fan.za4ZLBPLDS04ZM
Smartmi Standing Fan 3zhimi.fan.za5
Pedestal Fan Fan 1Cdmaker.fan.1c
Pedestal Fan Fan P5dmaker.fan.p5
Pedestal Fan Fan P8dmaker.fan.p8
Pedestal Fan Fan P9dmaker.fan.p9
Pedestal Fan Fan P10dmaker.fan.p10
Mijia Pedestal Fandmaker.fan.p11BPLDS03DM2800mAh, 24W, <=58dB
Smart Standing Fan 2 Prodmaker.fan.p33BPLDS03DM2800mAh, 24W, <=58dB
Pedestal Fan Fan P15dmaker.fan.p15
Mi Smart Standing Fan 2 P18dmaker.fan.p18BPLDS02DMAC, 15W, 30.2-55.8dB
Mi Smart Standing Fan 2 P30dmaker.fan.p30BPLDS02DMAC, 15W, 30.2-55.8dB
Rosou SS4 Ventilatorleshow.fan.ss4
Xiaomi Smart Tower Fandmaker.fan.p39BPTS01DM22W, <=63dB
Xiaomi Smart Standing Air Circulation Fanxiaomi.fan.p76JLLDS01XY-
Xiaomi Smart Desktop Air Circulation Fanxiaomi.fan.p70--
Mi Smart Standing Fan 2 Litexiaomi.fan.2lite--
Xiaomi Smart Standing Fan Pro Slimxiaomi.fan.p85--
Xiaomi Smart Standing Fan Pro Slim 2xiaomi.fan.p43--
Mijia Smart Evaporative Cooling Fandmaker.fan.p44--

Features

Pedestal Fan

  • Power (on, off)
  • Preset modes (Level 1, Level 2, Level 3, Level 4)
  • Speed percentage (0...100)
  • Oscillate (on, off)
  • Oscillation angle (30, 60, 90, 120, 140, 150)
  • Natural mode (on, off)
  • Rotate by 5 degrees (left, right)
  • Child lock (on, off)
  • LED brightness (bright, dim, off)
  • Attributes
    • model
    • temperature (zhimi.fan.v2 and v3 only)
    • humidity (zhimi.fan.v2 and v3 only)
    • led_brightness
    • buzzer
    • child_lock
    • natural_level
    • oscillate
    • delay_off_countdown
    • speed
    • direct_speed
    • natural_speed
    • angle
    • use_time
    • ac_power
    • battery (zhimi.fan.v2 and v3 only)
    • battery_charge (zhimi.fan.v2 & v3 only)
    • button_pressed (zhimi.fan.v2 & v3 only)
    • led (zhimi.fan.v2 only)
    • battery_state (zhimi.fan.v2 only)
    • anion (zhimi.fan.za5 only)

Rosou SS4 Ventilator (leshow.fan.ss4)

  • Power (on, off)

  • Operation modes (manual, sleep, strong, natural)

  • Preset modes (Level 1, Level 2, Level 3, Level 4)

  • Speed percentage (0...100)

  • Oscillate (on, off)

  • Buzzer (on, off)

  • Delayed turn off (minutes)

  • Attributes

    • model
    • mode
    • speed
    • buzzer
    • oscillate
    • delay_off_countdown
    • error_detected

Install

You can install this custom component via HACS. Search for 'Xiaomi Mi Smart Pedestal Fan Integration' at the integration page of HACS. Alternatively, you can install it manually by copying the custom_components folder to your Home Assistant configuration folder.

As next step you have to setup the custom component at your configuration.yaml. This custom component doesn't provide a config-flow right now. A restart of Home Assistant is required afterwards.

Setup

# configuration.yaml

fan:
  - platform: xiaomi_miio_fan
    name: Xiaomi Smart Fan
    host: 192.168.130.71
    token: b7c4a758c251955d2c24b1d9e41ce47d

Configuration variables:

  • host (Required): The IP of your fan.
  • token (Required): The API token of your fan.
  • name (Optional): The name of your fan.
  • model (Optional): The model of your device. This setting can be used to bypass the device model detection and is recommended if your device isn't always available.
  • preset_modes_override (Optional): Overrides the list of preset modes. Can be used to suppress the preset mode switches at homekit by passing an empty list (preset_modes_override: []).

Platform services

Service fan.set_percentage

Set the fan speed percentage.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific fan entity. Else targets all.
percentagenoPercentage speed setting. Valid values are between 0 and 100.

Service fan.set_preset_mode

Set a preset mode.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific fan entity. Else targets all.
preset_modenoPreset mode. Valid values are Level 1, Level 2, Level 3 and Level 4.

Service fan.oscillate

Oscillates the fan.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific fan entity. Else targets all.
oscillatingnoFlag to turn on/off oscillation. Valid values are True and False.

Service fan.set_direction

Rotates the fan 5 degrees to the left/right.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific fan entity. Else targets all.
directionnoRotate the fan 5 degrees. Valid values are left/reverse and right/forward.

Service xiaomi_miio_fan.fan_set_oscillation_angle

Set the oscillation angle. Supported values are 30, 60, 90 and 120 degrees.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.
anglenoAngle in degrees. Valid values are 30, 60, 90, 120, and 140.

Service xiaomi_miio_fan.fan_set_delay_off

Set the scheduled turn off time. Supported values are 0, 60, 120, 180, 240, 300, 360, 420, 480 minutes. When 0 is passed, delay_off is disabled.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.
delay_off_countdownnoTime in minutes. Valid values are 0, 60, 120, 180, 240, 300, 360, 420, 480 minutes.

Service xiaomi_miio_fan.fan_set_natural_mode_on

Turn the natural mode on.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_natural_mode_off

Turn the natural mode off.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_buzzer_on

Turn the buzzer on.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_buzzer_off

Turn the buzzer off.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_child_lock_on

Turn the child lock on.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_child_lock_off

Turn the child lock off.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_led_brightness

Set the led brightness. Supported values are 0 (Bright), 1 (Dim), 2 (Off).

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.
brightnessnoBrightness, between 0 and 2.

Service xiaomi_miio_fan.fan_set_anion_on

Turn the ionizer on.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_anion_off

Turn the ionizer off.

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_air_cooler_on

Turn the evaporative water cooling on. (P44 only)

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_air_cooler_off

Turn the evaporative water cooling off. (P44 only)

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_turn

Turn to the given direction. Supported values are left, right, up and down. (P76 only)

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.
directionnoDirection. Valid values are left, right, up and down.

Service xiaomi_miio_fan.fan_set_vertical_oscillation_on

Turn the vertical oscillation on. (P70 and P76 only)

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_vertical_oscillation_off

Turn the vertical oscillation off. (P70 and P76 only)

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.

Service xiaomi_miio_fan.fan_set_vertical_oscillation_angle

Set the vertical oscillation angle. (P70 and P76 only)

Service data attributeOptionalDescription
entity_idyesOnly act on a specific xiaomi miio entity. Else targets all.
vertical_anglenoVertical angle in degrees. Valid values are 30, 60, 90 and 100.