GithubHelp home page GithubHelp logo

scythk / lovelace-xiaomi-purifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iwzoo/lovelace-xiaomi-purifier

0.0 0.0 0.0 53 KB

Xiaomi Purifier lovelace card with css animation

JavaScript 100.00%

lovelace-xiaomi-purifier's Introduction

lovelace-xiaomi-purifier

Xiaomi Purifier lovelace card with css animation. Fits the entity formats for Xiaomi Miot Auto intergration.

Extra Features

  1. compact view to show temperature and humidity
  2. button to turn on/off buzzer
  3. double click to swith led
  4. hold "Favorite" button to adjust fan speed

HACS Installation

  1. HACS -> Settings -> Add custom repository <-> Plugin
  2. Find 'xiaomi purifier' in HACS Plugins
  3. Install and add to Lovelace

Manual Installation

  1. Download xiaomi-purifier.js to www/plugins/xiaomi-purifier.js
  2. Add to lovelace resources
    resources:
     - url: /local/plugins/xiaomi-purifier.js
       type: js

Add lovelace card

type: 'custom:xiaomi-purifier'
entity: fan.anyid
title: name of the purifier device
advanced: #optional (true for showing temperature and humidity in the middle, otherwise shows in green panel)

Language

Displays English texts by default, for Chinese language users, add

language: chs

to card configuration for displaying texts in Chinese.

Add translations to get your own language support.

translate: 
   'Good': '优',
   'Moderate': '良',
   'Mild Unhealthy':'轻度污染',
   'Unhealthy': '中度污染',
   'Very Unhealthy': '重度污染',
   'Hazardous': '严重污染',

   'Air Purifier': '空气净化器',

   'On': '开启',
   'Off': '关闭',

   'Set speed': '设置速度',
   'Device turned on': '开启设备',
   'Device turned off': '关闭设备',
   'Indoor AQ': '室内空气',

   'Auto': '自动',
   'Silent': '睡眠',
   'Favorite':'最爱',

   'Temperature': '温度',
   'Humidity': '湿度'

Credits

shaonianzhentan (Original Author)

lovelace-xiaomi-purifier's People

Contributors

iwzoo avatar scythk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.