OpenSprinkler Forums OpenSprinkler Unified Firmware Switching active master valve

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #52702

    JimS
    Participant

    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?

    #52792

    Ray
    Keymaster

    The HTTP API for changing station attributes is all documented on the support site;
    https://openthings.freshdesk.com/solution/articles/5000716363-os-api-documents
    In particular the /cs command can be used to change master zone attributes on the fly.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Switching active master valve