Updates based om comments from @SweVictor
This commit is contained in:
parent
531aa8ee3e
commit
c8890b8cd7
5 changed files with 29 additions and 15 deletions
|
|
@ -117,7 +117,7 @@ class PlejdDeviceCommunication extends EventEmitter {
|
|||
} else if (command === COMMANDS.TRIGGER_SCENE) {
|
||||
this.emit(PlejdDeviceCommunication.EVENTS.sceneTriggered, data.sceneId);
|
||||
} else if (command === COMMANDS.BUTTON_CLICK) {
|
||||
this.emit(PlejdDeviceCommunication.EVENTS.buttonPressed, data);
|
||||
this.emit(PlejdDeviceCommunication.EVENTS.buttonPressed, data.deviceId, data.deviceInput);
|
||||
} else {
|
||||
logger.warn(`Unknown ble command ${command}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue