I experienced crashes of the plugin because 'device.deviceDescription(function (err, description)' was called with a 'null' description parameter. The 'err' object contained 'Error: socket hang up' in these cases. Of course the following access to 'var zoneType = description["zoneType"];' lead to a crash then.
Maybe the problem is local to me/my network, but...
Inserted a check against an 'undefined' 'description' argument.
I experienced crashes of the plugin because 'device.deviceDescription(function (err, description)' was called with a 'null' description parameter. The 'err' object contained 'Error: socket hang up' in these cases. Of course the following access to 'var zoneType = description["zoneType"];' lead to a crash then. Maybe the problem is local to me/my network, but...
Inserted a check against an 'undefined' 'description' argument.