Trying to turn on cooling based on temperature state

It’s the bloody quotation marks!!! It works. :grinning:

You should consider a generic thermostat instead.
They are much better for temperature related automations than an automation

Sure. But this way you don’t learn any programming… Plus in my algorythm I’m after load compensation, not just “On/Off” logic. But thanks for the tip.