All Projects → dnguyen800 → air-visual-card

dnguyen800 / air-visual-card

Licence: MIT License
A Lovelace card showing air quality data from airvisual.com. Requires the AirVisual component.

Projects that are alternatives of or similar to air-visual-card

purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+121.43%)
Mutual labels:  home-assistant, lovelace
ESPHome-Air-Quality-Monitor
ESPHome configuration for a DIY indoor air quality monitor for CO₂ concentration, PM2.5 and PM10 concentrations, and temperature, humidity and pressure
Stars: ✭ 42 (-40%)
Mutual labels:  air-quality, home-assistant
uptime-card
Minimalistic uptime card for Home Assistant Lovelace UI
Stars: ✭ 152 (+117.14%)
Mutual labels:  home-assistant, lovelace
ha-iaquk
Indoor Air Quality Sensor Component for Home Assistant
Stars: ✭ 57 (-18.57%)
Mutual labels:  air-quality, home-assistant
lovelace-soft-ui
💫 Simple and clean Lovelace configuration
Stars: ✭ 807 (+1052.86%)
Mutual labels:  home-assistant, lovelace
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (-12.86%)
Mutual labels:  home-assistant, lovelace
lovelace-battery-entity-row
Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI
Stars: ✭ 49 (-30%)
Mutual labels:  home-assistant, lovelace
entur-card
Home Assistant Lovelace card card for the Entur public transport component.
Stars: ✭ 38 (-45.71%)
Mutual labels:  home-assistant, lovelace
roku-card
📺 Roku Remote Card
Stars: ✭ 86 (+22.86%)
Mutual labels:  home-assistant, lovelace
pymusiccast
Group MusicCast Speakers with Home Assistant
Stars: ✭ 34 (-51.43%)
Mutual labels:  home-assistant, lovelace
M5Stack-Air-Quality-ESPHome
ESPHome configuration for M5Stack's PM2.5 Air Quality Kit with the PMSA003 particulate matter sensor and the SHT20 temperature and humidity sensor
Stars: ✭ 19 (-72.86%)
Mutual labels:  air-quality, home-assistant
rpi-enviro-mqtt
Send air quality data from a Pimoroni RPi Enviro+ over MQTT
Stars: ✭ 30 (-57.14%)
Mutual labels:  air-quality, home-assistant
Home Assistantconfig
🏠 Home Assistant configuration & Documentation for my Smart House. Write-ups, videos, part lists, and links throughout. Be sure to ⭐ it. Updated FREQUENTLY!
Stars: ✭ 3,687 (+5167.14%)
Mutual labels:  home-assistant, 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 (+112.86%)
Mutual labels:  home-assistant, lovelace
lovelace-canary
🐤 Adds many useful extensions to lovelace, such as templating secondary info, stacking within a card and more!
Stars: ✭ 28 (-60%)
Mutual labels:  home-assistant, lovelace
linak-desk-card
Home Assistant Lovelace Card for controlling desks based on linak bluetooth controller.
Stars: ✭ 26 (-62.86%)
Mutual labels:  home-assistant, lovelace
Home-Assistant-Main
My Home Assistant Configuration Be sure to ⭐ my repo so you can keep up to date on the daily progress!
Stars: ✭ 54 (-22.86%)
Mutual labels:  home-assistant, lovelace
bom-radar-card
A rain radar card using the new tiled images from the Australian BOM
Stars: ✭ 52 (-25.71%)
Mutual labels:  home-assistant, lovelace
ha-card-weather-conditions
Weather condition card (Lovelace) for Home Assistant.
Stars: ✭ 101 (+44.29%)
Mutual labels:  home-assistant, lovelace
lovelace-climate-mode-entity-row
Climate mode entity for Lovelace
Stars: ✭ 49 (-30%)
Mutual labels:  home-assistant, lovelace

Air Visual Card

example

This is a Home Assistant Lovelace card that uses the AirVisual component or World Air Quality Index (WAQI) component to provide air quality index (AQI) data and creates a card like the ones found on AirVisual website. Requires the AirVisual component or World Air Quality Index (WAQI) component. Tested with Yahoo and Darksky Weather component.

Features

  • Card colors and icons change depending on AQI level

Options

Main Options

Name Type Default Supported options Description
type string Required custom:air-visual-card Type of the card
air_pollution_level string Required sensor.u_s_air_pollution_level Name of the Air Pollution Level sensor.
air_quality_index string optional sensor.u_s_air_quality_index Name of the Air Quality Index sensor. If sensor does not exist, do not add this config value.
main_pollutant string optional sensor.u_s_main_pollutant Name of the Main Pollutant sensor. If sensor does not exist, do not add this config value.
weather string optional weather.dark_sky Name of the weather entity if you wish to display temperature, humidity and wind information on the card.
country string US mdi:air-conditioner Name of the country that Airvisual is collecting AQI data from.
city string optional San Francisco Name of the city that AirVisual is collecting AQI data from.
icons string /hacsfiles/air-visual-card /hacsfiles/air-visual-card The local directory where the .svg files are located. For example, 'icons: "/hacsfiles/air-visual-card"' is appropriate if this plugin is installed using HACS. If left blank, icons will be loaded from default location.
hide_title boolean true true false
hide_face boolean false true false
hide_weather boolean true true false

HACS Installation

  1. Open the HACS on your Home Assistant instance.
  2. Open the Plugins section and click on the Air Visual Card.
  3. Click on Install, then click on "Add to Lovelace"

Manual Installation

  1. Download the AirVisual Card
  2. Place the file in your config/www folder
  3. Include the card code in the Resources section of your ui-lovelace-card.yaml like below:
resources:
  - url: /local/air-visual-card/air-visual-card.js
    type: js
  1. Optional: If you wish to store the Airvisual icons locally, then download the icons here.

  2. Save the icons in a directory in Home Assistant, such as /local/air-visual-card

  3. Update the card configuration in ui-lovelace.yaml to include the following (use directory name in step #7):

     icons: "/local/air-visual-card"

Instructions

  1. Install the AirVisual sensor and confirm AQI, APL, and Main Pollutant sensors are created, like below.

sensors

  1. Add a card in the Lovelace UI.
  2. Search for air-visual-card and click the search result. add-card
  3. Fill out the card editor. card-editor

FAQ

  • The card doesn't show the temperature properly.

    Let me know which weather provider you are using and I'll try to fix the issue. I have only tested with the Yahoo! Weather component. Optionally, if you create a template sensor that reports the temperature as its state, you can use that sensor as for the temp config.

  • This card doesn't work in Fully Kiosk Browser on Amazon Fire tablets. Why?

    This card uses a new CSS function, CSS Grid Layout, which was implemented in October 2018, and isn't compatible with browsers using old versions of Android WebView. That's my guess anyways.

  • The card is showing the word 'unavailable' instead of the AQI data!

    Most likely your Airvisual key expired (it has a one-year expiration) and needs to be recreated. Delete and recreate a new key on airvisual.com and save the key in your HA config file.

Support

I am studying programming as a hobby and this is my first set of Home Assistant projects. Unfortunately, I know nothing about Javascript and relied on studying other Lovelace custom cards to write this. Suggestions are welcome but no promises if I can fix anything! If you're familiar with CSS, then you can edit the CSS style in the .js file directly.

Credits

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