IKEA Alpstuga: Turn on display and switch to CO2/PM2.5 if threshold is surpassed

I have an Alpstuga air quality monitor. I generally want to have it turned off to avoid distraction, but if the CO2 level raises above a particular threshold, I’d like the display to turn on and show the CO2 level. Likewise for PM2.5. If the two values are both below a certain other threshold, I’d like the display to turn off again.

Alpstuga has an action I can trigger that is “Press button”. This button toggles between the reasons (temp, hum, co2, pm2.5), but I don’t know how to select any of these specifically.

Any hints?

May I ask, where is this action?
The only button I see is for the device and it is only an “identity” button.

Ah I see…that’s a Device Action.

That’s nice :slight_smile: , however in my case the Toggle just turns the ALPSTUGA display on/off.

Ah that’s right!

I created a Blueprint for it: Blueprint to turn IKEA Alpustuga Air Quality Sensor display On/Off automatically based on air quality · GitHub

Does this turn on the display and switch from, say, time to PM2.5?

It will only turn on the display.
It will show whatever the device decides to present.
I’m not sure if it will switch to PM2.5 automatically.

I know there is no way to force it from the home assistant side. At least not that I know of.