UNPKG

node-zway

Version:

Node JS interface for Z-Way (Razberry)

11 lines (10 loc) 276 B
exports.create = function(commandClass, deviceApi, deviceId) { return { on: function(eventId, cb) { deviceApi.on(deviceId, commandClass, eventId, cb); }, get: function(key) { return deviceApi.getDeviceInfo(deviceId, commandClass)[key]; } }; };