module.exports = function(server) { var buttonQuery = server.where({type: 'button'}); server.observe([buttonQuery], function(button){ button.on('click', function(b){ //This will log undefined because there are no inputs to this transition //You can use dot notation to access properties on devices //console.log(b); console.log(button.b); }) }); }