Skip to content

Commit

Permalink
SwitchMultilevel polling removed from JS - handled by C lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Poltorak Serguei committed Oct 5, 2015
1 parent c7f13d8 commit f3c16e4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/ZWave/index.js
Expand Up @@ -1411,11 +1411,6 @@ ZWave.prototype.parseAddCommandClass = function (nodeId, instanceId, commandClas

if (vDev) {
self.dataBind(self.gateDataBinding, self.zway, nodeId, instanceId, commandClassId, "level", function(type, arg) {
if (!(type & self.ZWAY_DATA_CHANGE_TYPE["PhantomUpdate"]) && this.updateTime > this.invalidateTime) {
setTimeout(function () {
self.zway.devices[nodeId].instances[instanceId].commandClasses[commandClassId].Get();
}, 1000);
}
try {
vDev.set("metrics:level", this.value);
} catch (e) {}
Expand Down

0 comments on commit f3c16e4

Please sign in to comment.