Skip to content

Commit 99f8d07

Browse files
jpettittclaude
andcommitted
todo: queue v0.1.1 AQI category/color attrs + other v0.2 followups
- v0.1.1: extra_state_attributes on AQI entities exposing `category` (good / moderate / unhealthy / ...) and `category_color` (the EPA official hex per category). Lets Mushroom / button-card / Tile card color icons by air quality with one line of config. - v0.2+: 5-piece extended EPA correction (AirNow F&S map formula) and the smart-fallback (lowest-short-term-variance) primary value the design doc originally specified. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 495de08 commit 99f8d07

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

TODO.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,26 @@ landable on its own.
109109

110110
## Post-v0.1.0 (not committed)
111111

112+
- **AQI category + color as entity attributes** — add
113+
`extra_state_attributes` on each `_AqiEntity` exposing `category`
114+
(`good` / `moderate` / `unhealthy_for_sensitive_groups` /
115+
`unhealthy` / `very_unhealthy` / `hazardous`) and `category_color`
116+
(the official EPA hex: `#00e400` / `#ffff00` / `#ff7e00` /
117+
`#ff0000` / `#8f3f97` / `#7e0023`). Lets dashboard cards
118+
(Mushroom, button-card, the built-in Tile card via templates)
119+
color icons by air quality with one line of card config. Optional
120+
side: surface the sensor's own `p25aqic` RGB string as
121+
`device_color` (uses pre-2024 EPA breakpoints, same caveat as the
122+
on-device AQI value). Ship as v0.1.1.
112123
- Zeroconf discovery if PA firmware ever advertises one.
113124
- `?live=true` toggle per sensor.
114125
- Multi-sensor "site average" derived entity (outdoor average of all
115126
outdoor sensors).
127+
- 5-piece extended EPA correction (the piecewise formula AirNow Fire
128+
and Smoke Map uses; better than simple Barkjohn above ~250 µg/m³).
129+
Add as an additional option, don't replace `EPA`.
130+
- Smart channel fallback for primary on disagreement (lowest-short-
131+
term-variance — needs a small rolling history on the coordinator).
132+
Current v0.1 uses min(a, b) which is conservative for the canonical
133+
stuck-high failure mode.
116134
- HA core upstream PR if there's demand.

0 commit comments

Comments
 (0)