feat: add on-off capability
This commit is contained in:
parent
aef438e4d6
commit
f2785c52b8
1
index.js
1
index.js
|
@ -172,6 +172,7 @@ class IRUSBDevice extends Device {
|
|||
constructor(adapter, uuid, ip, port) {
|
||||
super(adapter, uuid);
|
||||
this.name = uuid;
|
||||
this['@type'] = [ 'OnOffSwitch' ];
|
||||
this.socket = new net.Socket();
|
||||
this.socket.setEncoding('ascii');
|
||||
this.addProperty(new IRUSBProperty(this, 'power', {
|
||||
|
|
Loading…
Reference in a new issue