Skip to content

rogodra/lovelace-fan-mi-smart-standing-fan_2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xiaomi Fan Lovelace Card

hacs_badge

Xiaomi Smartmi Fan Lovelace card for HASS/Home Assistant.

Features

  • Supports HACS installation
  • CSS fan blade and oscillation animation
  • UI config of card
  • Wide range of fans support by using HA standard speeds flag

Toggles

  • Oscillation
  • Natural mode
  • Child lock
  • Sleep mode

Cycling

  • Speed level
  • Oscillation angle
  • Timer duration

Requirements

By default, the Xiaomi Miio native integration will be used.

If you have a model that's not supported by the native integration yet, this card also supports the Xiaomi Mi Smart Pedestal Fan integration.

HACS Installation

Search for Xiaomi Smartmi Fan Card

Manual Installation

  1. Download fan-xiaomi.js
  2. Copy to www/community/lovelace-fan-xiaomi/fan-xiaomi.js
  3. Add the following to your Lovelace resources
    resources:
    - url: /community_plugin/lovelace-fan-xiaomi/fan-xiaomi.js
      type: js

Card Configuration

Example of Lovelace config views.cards key

entity: fan.entity_id
name: Fan Name
type: 'custom:fan-xiaomi'
platform: xiaomi_miio_airpurifier
Card attribute Default Description
entity_id - entity_id of your fan
type - Must be custom:fan-xiaomi
name - (Optional) Fan name shown on card title
platform default (Optional) If using Xiaomi Mi Smart Pedestal Fan integration, specify xiaomi_miio_fan.
disable_animation False (Optional) Disable fan image and animation
use_standard_speeds False (Optional) Use low/medium/high speeds, if you have issues using this card with your fan model.
force_sleep_mode_support False (Optional) Enables Sleep button in UI which sets speed to 1%
hide_led_button False (Optional) Hide LED toggle for supported models

Preview

Credits

fineemb (Original author)

shaonianzhentan

花神

About

Xiaomi Smartmi Fan Lovelace card with CSS fan animation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%