Added support for WRT-10 as a Device Automation
This commit is contained in:
parent
36e5c62b4f
commit
5a21290364
8 changed files with 174 additions and 22 deletions
|
|
@ -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}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue