I think I found a solution to my problem, but I haven’t gotten a chance to actually run programs due to all the rain. I modified the main.cpp portion called “process dynamic events” to run the function toggle_pause when the sensor is active instead of set rain delay. There is probably a more efficient way to accomplish this, but it works for now.
The sensor is a modified “power saving” current sensing power strip.
if(os.iopts[IOPT_SENSOR1_TYPE] == SENSOR_TYPE_RAIN || os.iopts[IOPT_SENSOR1_TYPE] == SENSOR_TYPE_SOIL){
if(os.status.sensor1_active && os.status.pause_state == 0){
sn1 = true;
pd.toggle_pause(300);
}
if(!os.status.sensor1_active && os.status.pause_state == 1){
pd.resume_stations();
os.status.pause_state = 0;
}