Skip to content

v2.10.0 — pressure sensor, recommendation actions, expandable mode + bug fixes

Choose a tag to compare

@KadenThomp36 KadenThomp36 released this 06 Jun 16:04

Adds atmospheric pressure monitoring, one-tap recommendation actions, an expandable display mode, and fixes two graphing/recommendation bugs.

Install via HACS: search Air Quality Card → Update.

Bug fixes

  • Steady/zero readings no longer drop off the graph (#39). HA's minimal_response history collapses runs of identical states, so a sensor sitting at 0 (clean-air PM) or 1 (NOx) only emitted a point when it changed — leaving the line ending hours ago. The card now carries the latest reading forward to "now", matching HA's native history-graph. Thanks @harryvandervossen for the detailed report.
  • Outdoor "keep windows closed" no longer false-fires when there's no indoor counterpart (#35). With indoor CO₂ + outdoor PM2.5 only, the missing indoor PM2.5 defaulted to 0, so any outdoor reading looked "worse." It now uses an absolute concerning-threshold when no indoor sensor exists, and compares directly when one does. Thanks @freaktechnik.

New features

  • #38 — Atmospheric pressure sensor. New pressure_entity (and outdoor_pressure_entity). Informational bell-curve coloring with a wide green band so typical weather stays calm; thresholds assume hPa/mbar and are overridable via pressure_thresholds. Useful for Airthings and similar. Thanks @polskikrol.
  • #34 — One-tap recommendation action. New recommendation_action using Home Assistant's standard action format surfaces a button on the recommendation strip — e.g. toggle a purifier/fan or run a script. Shown only when there's something to act on. Thanks @mzspicoli (who also offered to implement it).
  • #36 — Expandable display mode. display: expandable starts as a compact summary and expands to the full card on tap (chevron indicates the toggle; tap the header to collapse). History loads lazily on first expand. Thanks @dumitrudan608.

Config additions

pressure_entity: sensor.airthings_pressure
outdoor_pressure_entity: sensor.outdoor_pressure
pressure_thresholds: [990, 1005, 1025, 1040]   # hPa, optional
recommendation_action:
  action: perform-action
  perform_action: homeassistant.toggle
  target: { entity_id: fan.air_purifier }
display: expandable                              # full | compact | expandable

All new options are also available in the visual editor (pressure under Additional/Outdoor Sensors; the rest under Advanced). Pressure is included in custom thresholds, sensor ordering, min/max overlay, outdoor comparison, and all four UI languages (en/es/fr/de/pt).

Tests

node test.js397 passed, 0 failed (up from 360).

Known limitations (unchanged)

  • Per-sensor status labels and the radon advisory subtitle are still English-only; the status badge, recommendations, and editor are translated.
  • recommendation_action is a single action — for per-recommendation routing, point it at a script that branches.

Closes #34, #35, #36, #38, #39.