Pro-grade automation for the IKEA ALPSTUGA E2495 Matter Air Quality sensor. This blueprint allows you to trigger specific actions when any environmental metric (CO2, PM2.5, Air Quality Index, Temperature, or Humidity) crosses your custom thresholds.
[!NOTE]
The Air Quality entity is a general âAir Quality Indexâ (AQI) calculated by the device (usually based on PM2.5 and CO2 levels). While the ALPSTUGA does not have a dedicated VOC sensor, this summary state is a great way to trigger whole-room air clear actions.
Manual Import URL
If the button above doesnât work, you can copy the URL below and paste it into the âImport Blueprintâ dialog in Home Assistant:
https://github.com/aledziko/HA-blueprints/blob/main/IKEA/Matter/ikea-alpstuga-e2495/ikea-alpstuga-e2495-matter-air-quality-sensor.yaml
Key Features
- Five Environmental Triggers: Dedicated actions for CO2, PM2.5, Air Quality summary, Temperature, and Humidity.
- Dual-Phase Actions: Set numeric cutoffs (CO2, PM2.5, Temp, Humidity) or state lists (AQI Summary) for both âAlertâ and âNormalâ phases. This allows you to start and stop devices automatically as conditions change.
- Stabilization Time: Prevent notification âflappingâ by requiring states to remain active for a configurable duration (e.g., 30 seconds).
- Parallel Execution: Handles multiple environmental shifts concurrently (e.g., boosting the air purifier while notifying about high CO2).
Example Use Cases
Air Purification:
- Air Quality High: Automatically boost your air purifier to âHighâ when the general air quality index drops.
- PM2.5 High: Trigger targeted actions for dust or smoke levels above 25 Âľg/mÂł.
Healthy Sleep & Focus:
- CO2 High: Receive an alert or flash a light in your office or bedroom when CO2 levels exceed 1000 ppm, signaling itâs time to open a window.
Ventilation & Recuperation:
- High Humidity: Automatically trigger the bathroom fan or a whole-home recuperation system when humidity levels spike.
HVAC Control:
- High Temp: Turn on cooling when the room hits 26°C (79°F).
- Low Temp: Activate heating when it drops below 18°C (64°F).
Pro Tip: Dynamic Notifications
You can make your alerts smarter by including the actual sensor value or state in your message. When setting up a notification action, use the following template in your message text:
- For CO2/PM2.5:
CO2 level is now {{ trigger.to_state.state }} ppm - For Air Quality:
Air quality status is now {{ trigger.to_state.state }}
Preventing âNotification Stormsâ
If you are receiving too many notifications in a short time, itâs usually caused by the sensor âflappingâ between states. To fix this:
- Adjust Trigger States: In the Air Quality settings, ensure you unselect âGoodâ and âFairâ. This prevents getting an alert every time the air improves back to normal.
- Use Stabilization Time: Increase the Stabilization Time (e.g., to 30 or 60 seconds). The blueprint will then wait for the sensor to stay at the new state for that duration before alerting you.
Requirements
- IKEA ALPSTUGA (E2495) sensor connected via Matter.
- Entities for CO2, PM2.5, Air Quality Index, Temperature, and Humidity.
License
Licensed under the MIT License.
Troubleshooting
Troubleshooting
Preventing Repeated Actions?
If you notice actions firing multiple times (e.g., your ventilation toggling on/off or receiving duplicate alerts) even when the air quality is stable, this blueprint has robust filtering built-in:
- Strict Logic: Actions only trigger if the value actually crosses the threshold. If CO2 drops from 798 to 797 (both below the default 800 limit), the automation ignores it.
- Blip Filtering: Brief âUnavailableâ states from the sensor are automatically filtered out.
- Optimization: Use the Action Trigger Stabilization Time (e.g., 30s) to further smooth out noisy data. This ensures your siren or fan doesnât toggle rapidly due to minor sensor fluctuations.
More Blueprints & Community
Check out my other blueprints for IKEA Matter devices on the Home Assistant Community: