Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check the status of a cistern when SIP zone is active
#4
So does your REST code allow to control things or just report status?

Just off the top of my head:
Using the signaling in SIP you could do something like:

def notify_zone_change(name, **kw):
    running = any(gv.srvals) #  gv.srvals shows the state of the zones as a list with 1's for zones that are on an 0's for ones that are off.
    loop()

def loop():
    global running

    while running:
        your loop code
Reply


Messages In This Thread
RE: Check the status of a cistern when SIP zone is active - by dan - 2016 May 14, 01:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)