All Projects → ikaruswill → lovelace-fan-xiaomi

ikaruswill / lovelace-fan-xiaomi

Licence: Apache-2.0 license
Xiaomi Smartmi Fan Lovelace card with CSS fan animation

Projects that are alternatives of or similar to lovelace-fan-xiaomi

linak-desk-card
Home Assistant Lovelace Card for controlling desks based on linak bluetooth controller.
Stars: ✭ 26 (-56.67%)
Mutual labels:  hacs, lovelace, custom-card
lovelace-battery-entity-row
Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI
Stars: ✭ 49 (-18.33%)
Mutual labels:  hacs, lovelace
uptime-card
Minimalistic uptime card for Home Assistant Lovelace UI
Stars: ✭ 152 (+153.33%)
Mutual labels:  hacs, lovelace
hass-shutter-card
Shutter card for Home Assistant Lovelace UI
Stars: ✭ 151 (+151.67%)
Mutual labels:  hacs, lovelace
hass-miwifi
MiWiFi for Home Assistant
Stars: ✭ 116 (+93.33%)
Mutual labels:  xiaomi, hacs
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+158.33%)
Mutual labels:  hacs, lovelace
slider-button-card
A button card with integrated slider
Stars: ✭ 319 (+431.67%)
Mutual labels:  hacs, lovelace
atomic-calendar-revive
An advanced calendar card for Home Assistant Lovelace.
Stars: ✭ 218 (+263.33%)
Mutual labels:  hacs, lovelace
bom-radar-card
A rain radar card using the new tiled images from the Australian BOM
Stars: ✭ 52 (-13.33%)
Mutual labels:  hacs, lovelace
entur-card
Home Assistant Lovelace card card for the Entur public transport component.
Stars: ✭ 38 (-36.67%)
Mutual labels:  hacs, lovelace
myconfig
My Home Assistant config
Stars: ✭ 143 (+138.33%)
Mutual labels:  xiaomi, lovelace
lovelace-valetudo-map-card
Draws the map available from a Xiaomi Vacuum cleaner flashed with Valetudo in a Home Assistant Lovelace card
Stars: ✭ 149 (+148.33%)
Mutual labels:  hacs, lovelace
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+1.67%)
Mutual labels:  hacs, lovelace
MeteoalarmCard
Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
Stars: ✭ 48 (-20%)
Mutual labels:  hacs, lovelace
charger-card
A lovelace card for electrical vehicle (EV) home chargers and charging robots.
Stars: ✭ 57 (-5%)
Mutual labels:  hacs, lovelace
content-card-linky
cardLinky comptatible with sensor apiEnedis
Stars: ✭ 48 (-20%)
Mutual labels:  hacs, lovelace
roku-card
📺 Roku Remote Card
Stars: ✭ 86 (+43.33%)
Mutual labels:  lovelace, custom-card
home-assistant-sun-card
Home assistant sun card based on Google weather design
Stars: ✭ 279 (+365%)
Mutual labels:  hacs, custom-card
custom-brand-icons
Custom brand icons for Home Assistant
Stars: ✭ 242 (+303.33%)
Mutual labels:  xiaomi, hacs
fullscreen-card
Make your Home Assistant browser fullscreen with one tap.
Stars: ✭ 23 (-61.67%)
Mutual labels:  hacs, custom-card

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
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

Contributing

  1. Clone the repo and install the latest node LTS
  2. Run npm install then npm run build from the root of the repo

Build output should appear in the /dist directory.

Development Inner Loop

  1. npm install
  2. Run npm run start to do a watch build and host the built files at http://127.0.0.1:8234/xiaomi-fan-card.js.
  3. On a running Home Assistant installation add this to your Lovelace resources:
- url: "http://127.0.0.1:8234/xiaomi-fan-card.js"
  type: module

You may need to change "127.0.0.1" to the IP of your development machine if you are developing remotely.

If your Home Assistant UI is running on https, you'll need to provide the resources via https as well. Use npm run start -- --https to serve via https, and switch the url: http://127.0.0.1 above to url: https://localhost.

Credits

fineemb (Original author)

shaonianzhentan

花神

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].