Code Monkey home page Code Monkey logo

humidifier-card's Introduction

humidifier-card

Humidifier card for Home Assistant Lovelace UI

Image alt

Installing

Download humidifier-card.js file.
Put humidifier-card.js file into your config/www folder.
Add a reference to humidifier-card.js in Lovelace. There's two way to do that:
Using UI: Configuration → Lovelace Dashboards → Resources → Click Plus button → Set Url as /local/humidifier-card.js → Set Resource type as JavaScript Module.
Using YAML: Add the following code to lovelace section.
resources:

- url: /local/humidifier-card.js/r/n
  type: module

Add custom:humidifier-card to Lovelace UI as any other card (using either editor or YAML configuration).

Typical example of using this card in YAML config would look like this:

- type: 'custom:humidifier-card'
  entity: fan.xiaomi_humidifier
  stats:
    - attribute: humidity
      unit: '%'
      subtitle: Влажность
    - attribute: temperature
      unit: '°C'
      subtitle: Температура
    - attribute: water_level
      unit: '%'
      subtitle: Уровень воды
  actions:
    - name: Низкая
      icon: 'mdi:weather-night'
      speed: Low
    - name: Средняя
      icon: 'mdi:circle-slice-4'
      speed: Mid
    - name: Высокая
      icon: 'mdi:circle-slice-7'
      speed: High
    - name: Auto
      icon: 'mdi:brightness-auto'
      speed: Auto
  show_name: true
  show_state: true
  show_toolbar: true
  compact_view: false

Original card: dmitrybabeshko/homeassistant-purifier-card

humidifier-card's People

Contributors

1vanchik 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.