I want to drop the temp 2 degrees if the humidity is higher than the setpoint. The code below partially works. The issue is every 15 minutes when HVAC DEHUM is turned on for 30 minutes the WHEN HVAC DEHUM ON line runs again so the temp continually lowers by 2 degrees. Is there an easy fix to just reset the 30 minute timer without triggering the WHEN ON event?
38. EVERY 15 MINUTES
AND IF Main Level HUMIDITY IS GREATER THAN Main Level DEHUMIDIFY SETPOINT
OR
AND IF Upstairs HUMIDITY IS GREATER THAN Upstairs DEHUMIDIFY SETPOINT
THEN HVAC DEHUM ON FOR 30 MINUTES
39. WHEN HVAC DEHUM ON
THEN ALL THERMOSTATS LOWER COOL SETPOINT 2
40. WHEN HVAC DEHUM OFF
THEN ALL THERMOSTATS RAISE COOL SETPOINT 2
38. EVERY 15 MINUTES
AND IF Main Level HUMIDITY IS GREATER THAN Main Level DEHUMIDIFY SETPOINT
OR
AND IF Upstairs HUMIDITY IS GREATER THAN Upstairs DEHUMIDIFY SETPOINT
THEN HVAC DEHUM ON FOR 30 MINUTES
39. WHEN HVAC DEHUM ON
THEN ALL THERMOSTATS LOWER COOL SETPOINT 2
40. WHEN HVAC DEHUM OFF
THEN ALL THERMOSTATS RAISE COOL SETPOINT 2