Setting thermostat to off via PLEG, something isn't working...

I have my logic set so that when a window opens, the AC should shut off:

[b]Properties[/b]
Name	Device Name	Device Variable
Hightemp	High Temperature[425]	CurrentTemperature[urn:upnp-org:serviceId:TemperatureSensor1]
InsideTemp	Thermostat[396]	CurrentTemperature[urn:upnp-org:serviceId:TemperatureSensor1]
LowTemp	Low Temperature[424]	CurrentTemperature[urn:upnp-org:serviceId:TemperatureSensor1]
OutsideTemp	Temperature[423]	CurrentTemperature[urn:upnp-org:serviceId:TemperatureSensor1]

[b]Conditions[/b]
CoolingDay		((HighTemp + LowTemp) / 2) > 65
HeatingDay		((HighTemp + LowTemp) /2) <= 65
AllwindowsClosed		!LivingRoomWindowROpen and !LivingRoomWindowLOpen and !DenWindowOpen and !KitchenWindowOpen 
SetThermostatModeHeat		(HeatingDay)
SetThermostatModeCool		CoolingDay and AllWindowsClosed and (AlarmDisarmed or ArmedStay or ArmedNightStay) and (InsideTemp < OutsideTemp)
SetThermostatModeOff		(!SetThermostatModeHeat and !SetThermostatModeCool)

[b]Actions[/b]
Action: SetThermostatNormal
Device Actions:
Immediate
Device	Action	Arguments
Thermostat[396]	SetEnergyModeTarget	NewModeTarget=Normal

Action: SetThermostatModeCool
Device Actions:
Immediate
Device	Action	Arguments
Thermostat[396]	SetModeTarget	NewModeTarget=CoolOn

Action: SetThermostatModeHeat
Device Actions:
Immediate
Device	Action	Arguments
Thermostat[396]	SetModeTarget	NewModeTarget=HeatOn

Action: SetThermostatModeOff
Device Actions:
Immediate
Device	Action	Arguments
Thermostat[396]	SetModeTarget	NewModeTarget=Off

First, do I need a repeat on any of my conditions?

Right now:
SetThermostatModeOff is true
SetThermostatModeCool is false
SetThermostatModeHeat is false

yet, my thermostat that I had set manual to cool a few hours ago is set to Cool, not off.

What is more helpful is posting a status report. It gives us valuable information like when last true and when last false, and the specific actions.

I rarely look at things unless I see a status report!

I totally get it… but in this case, it’s now considered a heating day, so the status report isn’t going to help much… although maybe it will.

It’s attached…

That is a pretty complicated condition for SetThermostatModeCool. Are you sure it is working correctly? It appears Off was last true when Heat was last false but Cool has not been false since 7/20.