I currently use the following to let me know the air quality. It has been working fine but today because of the heat 109 degrees and an inversion layer the AQI went up to 85ish and I had an asthma attack because of it.
I would like to be notified when it hits certain ranges so from 50 to 55, 56 to 60 and so on. I have been fighting with this for a few hours before posting this.
Can some one help?
You are a genius.
Why could I not find this when I searched the forums yesterday.
This is exactly what I want.
This will help me stay better informed of the air quality along with a few other pieces of data I follow.
Thank you so much.
carltonb
Hallo
I have been playing with this for a few hours, and need some help if you do not mind.
I have now seen a few other posts you did about this and I think that is what confused me.
What do you have as the automation, and what do you have as a sensor (using mapper?)
Also if the aqi is on a scale as displayed on the aqi page how is that related to the trigger.
Having never used mapping before that is what I think is throwing me off.
Again appreciate the information.
carltonb
which the mapper transforms to a number. In the if then else I compare the to_state to the from_state, and based on it being either smaller or larger than the from_state output the change.
At least that’s is what it is supposed to to
it triggers on each state change of both sensors.
update
found the reason for not triggering just now! a type in the u_s_pollution_level trigger…