No, both zones would be controlled in one script. Maybe I'll tinker with it in the next few days and send you something to try. The existing script has all the operations so all the complicated stuff is figured out already, just a matter of copying pasting, and some minor edits.
Yes, more people have boards with dual zones than ones like mine. I think @Stux may have a script that deals with dual zone control, but I don't think it uses PID. The PID logic works very well for the drive zone.
Your Script seems to be the way the board should control the fans from IPMI. Seems so logical. Its super dynamic. I'm really surprised this isn't something SM or all the mother boards don't already implement already.
Was looking over the script again. I don't see where the cpu is assigned a FANX (assignment) I see FAN1 2 etc but how where does it set a FAN header to CPU and your HDD. Its a 1 zone fan sript but your clearly controlling a fan for cpu and a different set of fans for HDD. Trying to understand the script....