TheThingSystem / steward

The Thing System is a set of software components and network protocols that aims to fix the Internet of Things. Our steward software is written in node.js making it both portable and easily extensible. It can run on your laptop, or fit onto a small single board computer like the Raspberry Pi.
http://thethingsystem.com
Other
346 stars 81 forks source link

MultiSensor crashes steward #275

Open ErikDeBruijn opened 9 years ago

ErikDeBruijn commented 9 years ago

When I have the Z-Stick plugged in and configured I can now finally see "discovery" notifications in the console when I press the button on a Z-Wave device. For one of the MuIti sensors, It crashes the stward process. I believe it's this one.

This is what the log shows when it crashes:

info: [discovery] openzwave:184dda3:4 manufacturer=, product=, type=Routing Binary Sensor
alert: [steward] exception diagnostic=Cannot read property 'value' of undefined
alert: [steward] exception stack=[{"fileName":"exports.Device (/home/pi/steward/steward/devices/devices-sensor/sensor-zwave-multilevel.js","lineNumber":49,"functionName":"new","typeName":"Object","methodName":null,"columnNumber":55,"native":false},{"fileName":"/home/pi/steward/steward/core/device.js","lineNumber":223,"functionName":"","typeName":"Statement","methodName":null,"columnNumber":35,"native":false}]
uncaught exception: TypeError: Cannot read property 'value' of undefined
Faeranne commented 8 years ago

@ErikDeBruijn Thanks for letting us know about the issue. Due to recent changes, and new curators taking on TTS, can you do me a favor and verify this issue still exists? We're working on bug fixes for the new TTS version now.