I have a pump for main supply but if it has a problem (mainly running out of water supply) I want to switch to another supply automatically. I have a pressure sensor that I want to set up to read with python code to detect the pump problem as a separate program and modify operation of OSPi with API commands. It appears that I could do that with Change Station Name and Attibutes with n0=255, n1=255, etc for each board to switch to master 2. Can this be done “on the fly”? I.E. if a zone has started and a problem is detected with an n0=255 command switch the master immediately or would I need to shut down the zones and restart them? Can someone give me the commands needed to save the state and restart?
Or is there some other way I should consider?