diff --git a/index.js b/index.js index bec77d3..945e290 100644 --- a/index.js +++ b/index.js @@ -188,16 +188,16 @@ HttpSprinkler.prototype = this.log("Setting power state to off"); } -// this.httpRequest(url, "", "GET", function (error, response, body) -// { -// if (error) -// { -// that.log("HTTP set status function failed %s", error.message); -// } -// }.bind(this)) + this.httpRequest(url, "", "GET", function (error, response, body) + { + if (error) + { + that.log("HTTP set status function failed %s", error.message); + } + }.bind(this)) this.log("HTTP power function succeeded!"); - this.valveService.getCharacteristic(Characteristic.InUse).updateValue(inuse); + //this.valveService.getCharacteristic(Characteristic.InUse).updateValue(inuse); callback(); },