Instance Methods
cmd
(async) cmd(signal, commandId, optsopt)Send a predefined command using the specified signal.
Requires the
homey:wireless:433,homey:wireless:868and/orhomey:wireless:irpermissions. For more information about permissions read the Permissions tutorial.
Parameters
| Name | Type | Description |
|---|---|---|
signal
|
Signal | used to transmit data |
commandId
|
string | name of the command as specified in the app manifest |
opts
|
Object
<optional> |
disableSignalRX
(async) disableSignalRX(signal): Promise.<void>Disables a signal from receiving events.
Requires the
homey:wireless:433,homey:wireless:868and/orhomey:wireless:irpermissions. For more information about permissions read the Permissions tutorial.
Parameters
| Name | Type | Description |
|---|---|---|
signal
|
Signal |
Returns
enableSignalRX
(async) enableSignalRX(signal): Promise.<T>Enables a signal to start receiving events.
Requires the
homey:wireless:433,homey:wireless:868and/orhomey:wireless:irpermissions. For more information about permissions read the Permissions tutorial.
Parameters
| Name | Type | Description |
|---|---|---|
signal
|
T |
Returns
getSignal433
getSignal433(id): Signal433Parameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the signal, as defined in the app's |
Returns
getSignal868
getSignal868(id): Signal868Parameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the signal, as defined in the app's |
Returns
getSignalInfrared
getSignalInfrared(id): SignalInfraredParameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the signal, as defined in the app's |
Returns
tx
(async) tx(signal, frame, optsopt)Transmit a raw frame using the specified signal.
Requires the
homey:wireless:433,homey:wireless:868and/orhomey:wireless:irpermissions. For more information about permissions read the Permissions tutorial.
Parameters
| Name | Type | Description |
|---|---|---|
signal
|
Signal | used to transmit data |
frame
|
Array.<number> | Buffer | data to be transmitted |
opts
|
Object
<optional> |