A custom Lovelace component for displaying an aqi for Home Assistant.
Current version: 0.0.1
-
Download and copy lovelace-nonow-aqi.js into your
config/www
directory. -
Add a reference to
lovelace-nonow-aqi.js
inside yourui-lovelace.yaml
.
resources:
- url: /local/lovelace-nonow-aqi.js?v=0.0.1
type: module
Clone this repository into your config/www
folder using git.
$ git clone https://github.com/brunosabot/lovelace-nonow-aqi.git
Add a reference to the card in your ui-lovelace.yaml
.
resources:
- url: /local/lovelace-nonow-aqi/lovelace-nonow-aqi.js?v=1
type: module
-
Find your
lovelace-nonow-aqi.js
file inconfig/www
or wherever you ended up storing it. -
Replace the local file with the latest one attached in the here: lovelace-nonow-aqi.js.
-
Change the version number with the new one to the end of the cards reference url in your
ui-lovelace.yaml
like below.
resources:
- url: /local/lovelace-nonow-aqi.js?v=0.0.2
type: module
You may need to empty the browsers cache if you have problems loading the updated card.
entity: input_datetime.bruno_birth title: Bruno type: 'custom:lovelace-nonow-aqi'
Name | Type | Default | Since | Default | Description |
---|---|---|---|---|---|
type | string | required | v0.0.1 | custom:lovelace-nonow-aqi |
|
index | string | required | v0.0.1 | A quality index entity | |
level | integer | required | v0.0.1 | A pollution level entity | |
pollutant | integer | required | v0.0.1 | A main pollutant entity |
- type: custom:lovelace-nonow-aqi
index: sensor.u_s_air_quality_index
level: sensor.u_s_air_pollution_level
pollutant: sensor.u_s_main_pollutant
This project is under the MIT licence