diff --git a/server.js b/server.js index 6036d3e..6a95440 100644 --- a/server.js +++ b/server.js @@ -54,7 +54,9 @@ busEmitter.on('changeState', function(mode) { logger.info('Changing state..'); if (wemoClient !== null) { - wemoClient.setBinaryState(0); + wemoClient.setBinaryState(mode); + } else { + console.error('No wemoClient'); } });