Updated run status logic

This commit is contained in:
2020-02-27 10:46:23 -06:00
parent bd0f7def24
commit b417f78535
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,6 @@
},
"deviceName": "flowmonitor",
"driverId": "0140",
"releaseVersion": "19",
"releaseVersion": "20",
"driverFileName": "flow-monitor.py"
}

View File

@@ -184,7 +184,7 @@ class start(threading.Thread, deviceBase):
self.force_send = False
self.daemon = True
self.version = "19"
self.version = "20"
self.finished = threading.Event()
threading.Thread.start(self)
@@ -379,6 +379,8 @@ class start(threading.Thread, deviceBase):
runstatus = "Stopped" #Stopped
elif din1_val == 0 and gpm_val > 10:
runstatus = "Running" #Assumed running might not have run indication
elif din1_val == 0 and gpm_val > 0:
runstatus = "Running: Low Flow"
elif din1_val == 1 and gpm_val == 0:
runstatus = "Running: No Flow" #no flow warning
elif din1_val == 1 and gpm_val < self.lowflow: