Xiaomi Smartmi Fan Lovelace card for HASS/Home Assistant.
- Supports HACS installation
- Works seamlessly with the iwzoo/xiaomi_fan integration
- Animations of the fan are made purely with CSS
- Hold to adjust fan speed
- Hold to adjust oscillating angle (30, 60, 90, 120, 140) degrees
- Translation for titles
- Navigate to HACS
- Choose "Frontend"
- Choose "Custom repositories" from the top right button
- Enter "https://github.com/iwzoo/lovelace-xiaomi-smartfan" in "Add custom repository URL", Choose "Lovelace" for "Category"
- Find "Xiaomi smartfan Card (Smartmi Fan 1x)" in "Frontend" and click "Install"
- Download
smartfan-xiaomi.js
- Copy to
www/plugins/lovelace-xiaomi-smartfan/xiaomi-smartfan.js
- Add the following to your Lovelace resources
resources: - url: /local/lovelace-xiaomi-smartfan/xiaomi-smartfan.js type: js
- Add the following to your Lovelace config
views.cards
keyReplace- entity: fan.entity_id name: Fan Name type: 'custom:smartfan-xiaomi' translate: #optional for titles in any language Angle: Child Lock: Natrual: Off: On: Oscillate: Speed Level: Timer:
fan.entity_id
with your fan's entity_id andFan Name
with any name you'd like to name your fan with
HA 智米风扇 1x lovelace 卡片
- 支持 HACS
- 配合 iwzoo/xiaomi_fan 使用
- 纯CSS 动画效果
- 长按风速按钮调整风扇速度
- 长按摆风按钮调整摆风角度(30, 60, 90, 120, 140)度
- 支持文本多语言
- 打开HACS
- 选择“前端”
- 右上角下拉菜单选择“自定义存储库”
- “添加自定义存储库URL“ 输入 "https://github.com/iwzoo/lovelace-xiaomi-smartfan" , “类别”选择“ "Lovelace"
- 在前端页面找到 "Xiaomi smartfan Card (Smartmi Fan 1x)" 点击 “安装”
- 下载
smartfan-xiaomi.js
- 拷贝 到
www/plugins/lovelace-xiaomi-smartfan/xiaomi-smartfan.js
- 在lovelace资源添加
resources: - url: /local/lovelace-xiaomi-smartfan/xiaomi-smartfan.js type: js
- 在视图卡片内添加
替换实际的设备id
- entity: fan.entity_id name: Fan Name type: 'custom:smartfan-xiaomi' translate: #optional for titles in any language Angle: Child Lock: Natrual: Off: On: Oscillate: Speed Level: Timer:
fan.entity_id
修改名称Fan Name
fineemb (Original author)
ikaruswill (forked from)