Keep window ac from freezing up?

Renters always walk in, turn loft ac to 60 then head to the beach. The unit will never reach 60 and can freeze up trying to.

I have three tools. Power consumption of ac, temperature of loft and an ir tied to st to raise ac temp. (Will have no idea what ac is actually set at).

How do I say/do…
After temp <= 72 (can do that part) :slight_smile:

If power runs continuously for say 35 minutes, keep pushing button that raises temp until power drops below 400w?

UPDATE: Just read about advanced statements under option so I see some light. Input is always welcome though. Time to do some playing around. Already see the while loop, should solve the push button part. Now for the check for the next 35 minutes.