DheerajKhajuria / pimatic-mysensors

mysensors
http://forum.mysensors.org/topic/797/pimatic-mysensors-controller-plugin
GNU General Public License v2.0
23 stars 24 forks source link

Uncaught exception mysensors 0.8.23 #58

Closed edautz closed 8 years ago

edautz commented 8 years ago

Occasionally I don't recieve any sensor data anymore. I have to restart Pimatic to recieve sensor readings again:

2016-02-01 05:06:08 error [pimatic]: A uncaught exception occured: ReferenceError: payload is not defined at Board._rfReceived (/usr/local/pimatic-app/node_modules/pimatic-mysensors/MySensors.coffee:192:49) at SerialPortDriver. (/usr/local/pimatic-app/node_modules/pimatic-mysensors/MySensors.coffee:148:10) at SerialPortDriver.EventEmitter.emit (events.js:95:17) at SerialPort. (/usr/local/pimatic-app/node_modules/pimatic-mysensors/serialport.coffee:44:10) at SerialPort.EventEmitter.emit (events.js:95:17) at /usr/local/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/parsers.js:25:17 at Array.forEach (native) at Object.parser (/usr/local/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/parsers.js:24:13) at Object.SerialPort.opts.dataCallback (/usr/local/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/serialport.js:181:12) at SerialPortFactory.SerialPort._emitData (/usr/local/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/serialport.js:396:20) at afterRead (/usr/local/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/serialport.js:372:20) at /usr/local/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/serialport.js:388:9 at Object.wrapper as oncomplete This is most probably a bug in pimatic or in a module, please report it! 05:06:08debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;0;3;0;9;read: 23-23-0 s=64,c=3,t=2,pt=7,l=4,sg=0:85 05:06:07debug [pimatic-mysensors]: <- Presented Node [ '21', '1', '0', '0', '0', '217.6' ] 05:06:07debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;0;3;0;9;read: 21-23-0 s=1,c=0,t=0,pt=7,l=5,sg=0:217.6 05:05:53debug [pimatic-mysensors]: <- MySensorsMulti { sender: 9, sensor: 3, type: 23, value: '0.0' } 05:05:53debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;0;3;0;9;read: 9-9-0 s=3,c=1,t=23,pt=7,l=5,sg=0:0.0 05:05:53debug [pimatic-mysensors]: <- MySensorsMulti { sender: 9, sensor: 2, type: 5, value: 'Zonnig' } 05:05:53debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;0;3;0;9;read: 9-9-0 s=2,c=1,t=5,pt=0,l=6,sg=0:Zonnig

DheerajKhajuria commented 8 years ago

yes this is a bug and fixed..

@_rfsendTime(sender, sensor)
        when I_VERSION
          env.logger.debug "<- I_VERSION ", payload
        when I_ID_REQUEST
edautz commented 8 years ago

Ok. Thnx. When do you release a new version, so that i can test it?

sweebee commented 8 years ago

Its released today