Update auto-humidity-vent.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Tue, 6 Aug 2019 23:56:55 +0000 (16:56 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Tue, 6 Aug 2019 23:56:55 +0000 (16:56 -0700)
official/auto-humidity-vent.groovy

index a0d4544..91e6385 100755 (executable)
@@ -243,7 +243,7 @@ def set_fans(fan_state) {
                 if (emeters) {
                     log.debug emeters.currentValue('energy')
                     //TODO: How to ensure latest (most accurate) energy reading?
-                    emeters.poll() //[configure, refresh, on, off, poll, reset]
+                    //emeters.poll() //[configure, refresh, on, off, poll, reset]
 //                    emeters.refresh() //[configure, refresh, on, off, poll, reset]
                     state.fansLastRunEnergy = emeters.currentValue('energy').sum()
                     state.fansLastRunCost = ((state.fansLastRunEnergy * price_kwh) / 100.0)