Added support for WRT-10 as a Device Automation

This commit is contained in:
faanskit 2021-05-01 19:41:29 +02:00
parent 36e5c62b4f
commit 5a21290364
8 changed files with 174 additions and 22 deletions

View file

@ -116,6 +116,8 @@ 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);
} else {
logger.warn(`Unknown ble command ${command}`);
}