Umm, but your rule knows exactly what value it just updated the Item with … why don’t you use that value?
Don’t do that
postUpdate(Kidsroom_AirQ, kq)
airQ = String::format("%.0f %%", Kidsroom_AirQ.state as Number)
Do this
postUpdate(Kidsroom_AirQ, kq)
airQ = String::format("%.0f %%", kq)