error after upgrade to 2.3.7 Cannot read property 'CurrentDataGet' of undefined

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
larry
Posts: 25
Joined: 01 May 2015 19:36

error after upgrade to 2.3.7 Cannot read property 'CurrentDataGet' of undefined

Post by larry » 31 Mar 2018 03:46

after i update my systme i get problem with my energy reader:

logs says this:

[2018-03-31 02:20:00.912] [core] Data Poll NewMeterLoggin
[2018-03-31 02:20:00.921] [E] [core] Callback execution error: TypeError: Cannot read property 'CurrentDataGet' of undefined
at AutomationController.onPoll (automation/userModules/NewMeterLoggin/index.js:79:84)
at AutomationController.EventEmitter.emit (automation/lib/eventemitter2.js:333:30)
at automation/modules/Cron/index.js:138:27
at Array.forEach (native)
at automation/modules/Cron/index.js:126:18
at Array.forEach (native)
at Function.<anonymous> (automation/modules/Cron/index.js:123:31)

here is linje:

76 this.onPoll = function() {
77 console.log('Data Poll NewMeterLoggin');
78 if (zway.devices[deviceid].instances[devinstance]!==undefined)
79 zway.devices[deviceid].instances[devinstance].commandClasses[devcommandclass].CurrentDataGet();
80 };
81
82 this.controller.on('NewMeterLoggin.poll', this.onPoll);
83
84 this.bindFunc = function(zwayName) {
85 debugPrint("Binding called with name: " + zwayName);
86 if (zwayName != "zway") return; // you want to bind to default zway instance
87
88 debugPrint("Binding enabled!");
89
90 var devices = global.ZWave[zwayName].zway.devices;
91
92 //Instantaneous Primary Active Power (kW) ,Current power consumption.
93 devices[deviceid].instances[devinstance].commandClasses[devcommandclass].data[5].val.bind(function() {
94 debugPrint("Instantpw Event " + this.value + " " +this.updateTime);
95 self.handler(this);
96 });
97
98 };

anyone who can help?

Post Reply