Air Quality Cards

3 years ago by we_were_never_here to c/homeassistant

Given that the air quality is going to shit in m y area again, I figured I'd show off my air quality cards! Let me know if you have any questions. The colors for the AQI cards are from US EPA's color set and the the PM2.5 color values are based off EPA's PM2.5 exposure over 24 hours

^ These are based off the stock gauge card.

type: gauge
entity: sensor.airnow_aqi
name: AQI
unit: ' '
needle: true
min: 20
max: 500
segments:
  - from: 0
    color: '#00e400'
  - from: 51
    color: '#ffff00'
  - from: 101
    color: '#ff7e00'
  - from: 151
    color: '#ff0000'
  - from: 201
    color: '#8f3f97'
  - from: 301
    color: '#800000'
type: gauge
entity: sensor.airnow_pm2_5
name: PM2.5
needle: true
min: 0
max: 200
segments:
  - from: 0
    color: '#64a13c'
  - from: 12.6
    color: '#eac51c'
  - from: 26
    color: '#d67900'
  - from: 51
    color: '#a90737'
  - from: 151
    color: '#50051e'

^ This one is based off the mini-graph-card, which I really like.

type: custom:mini-graph-card
name: Air Quality
icon: mdi:air-purifier
hours_to_show: 12
points_per_hour: 1
smoothing: false
color_thresholds:
  - value: 0
    color: '#00e400'
  - value: 51
    color: '#ffff00'
  - value: 101
    color: '#ff7e00'
  - value: 151
    color: '#ff0000'
  - value: 201
    color: '#8f3f97'
  - value: 301
    color: '#800000'
entities:
  - entity: sensor.airnow_aqi
    name: AQI
  - entity: sensor.airnow_o3
    name: Ozone
    color: '#3399ff'
    show_state: true
  - entity: sensor.airnow_pm2_5
    name: PM2.5
    color: '#ff7777'
    show_state: true
    y_axis: secondary
awsome306 5 points 3 years ago

These are great!! I didn't even know about the AirNow integration!

path: 0 589562, hotness: undefined, score: 5, children: 1
we_were_never_here 3 points 3 years ago

Glad you like them! Now you gotta share whatever you build :)

I was originally using the Airvisual cloud integration, which wasn't accurate at all. I found the Airnow one right when the wildfire smoke got bad around here and it made a huge difference.

path: 0 589562 590083, hotness: undefined, score: 3, children: 0
g13g 3 points 3 years ago path: 0 602644, hotness: undefined, score: 3, children: 0
GreatAlbatross 3 points 3 years ago

Cheers for that. I've recently added WAQI integration to my system, and hadn't thought that you could add more colours.

path: 0 653813, hotness: undefined, score: 3, children: 0
EyesEyesBaby 2 points 3 years ago

I tend to not use the mini-graph-card as I find it not customizable enough; too much room is taken up by other things than the graph itself (legend mostly).

path: 0 594840, hotness: undefined, score: 2, children: 3
we_were_never_here 1 point 3 years ago

What are you using instead?

path: 0 594840 599014, hotness: undefined, score: 1, children: 2
EyesEyesBaby 2 points 3 years ago

I'm using [https://community.home-assistant.io/...(Plotly Graph) for my solar panels. I do use some small mini-graph-cards without a legend though, but not as much as I expected to use them in the beginning.

path: 0 594840 599014 600862, hotness: undefined, score: 2, children: 1
we_were_never_here 1 point 3 years ago

Honestly that looks 10x better, and there's a decent chance I'm switching tomorrow. Thanks!

path: 0 594840 599014 600862 642486, hotness: undefined, score: 1, children: 0
bazingabot 2 points 3 years ago
path: 0 599265, hotness: undefined, score: 2, children: 0
limelight79 2 points 3 years ago

These look good. What source of data are you using?

path: 0 616132, hotness: undefined, score: 2, children: 1
we_were_never_here 2 points 3 years ago

I forgot to mention that, but the Airnow integration has been pretty good. I was using Airvisual Cloud, but that doesn't seem to be as accurate.

path: 0 616132 642466, hotness: undefined, score: 2, children: 0
nate 2 points 3 years ago

Upper Midwest? Milwaukee here, yesterday was awful.

path: 0 599826, hotness: undefined, score: 2, children: 1
we_were_never_here 1 point 3 years ago

Western NY. It's been pretty rough, but I think the lakes help moderate it a bit

path: 0 599826 642498, hotness: undefined, score: 1, children: 0
bazingabot 1 point 3 years ago
path: 0 599187, hotness: undefined, score: 1, children: 0
Finite 1 point 3 years ago

Are you having my computer? I literally did this today

path: 0 592252, hotness: undefined, score: 1, children: 0
captainastronaut 1 point 3 years ago

Nice! Thank you for posting the color thresholds, your combos match Air Visual perfectly

path: 0 678183, hotness: undefined, score: 1, children: 0
Pacers31Colts18 1 point 3 years ago

Wow, i didn't know AirNow was a thing. Making that card now! Will be more and more helpful as time goes on unfortunately

path: 0 978681, hotness: undefined, score: 1, children: 0
homeassistant
homeassistant

@lemmy.world

login for more options
20878
942
1212

Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk

go to feed...