ManagerRF

You can access this manager through the Homey instance as this.homey.rf

Methods

cmd

(async) cmd(signal, commandId, optsopt)

Send a predefined command using the specified signal.

Requires the homey:wireless:433, homey:wireless:868 and/or homey:wireless:ir permissions. 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:868 and/or homey:wireless:ir permissions. For more information about permissions read the Permissions tutorial.

Parameters

Name Type Description
signal
Signal

Returns

Promise.<void>

enableSignalRX

(async) enableSignalRX(signal): Promise.<T>

Enables a signal to start receiving events.

Requires the homey:wireless:433, homey:wireless:868 and/or homey:wireless:ir permissions. For more information about permissions read the Permissions tutorial.

Parameters

Name Type Description
signal
T

Returns

Promise.<T>

getSignal433

getSignal433(id): Signal433

Parameters

Name Type Description
id
string

The ID of the signal, as defined in the app's app.json.

Returns

getSignal868

getSignal868(id): Signal868

Parameters

Name Type Description
id
string

The ID of the signal, as defined in the app's app.json.

Returns

getSignalInfrared

getSignalInfrared(id): SignalInfrared

Parameters

Name Type Description
id
string

The ID of the signal, as defined in the app's app.json.

Returns

tx

(async) tx(signal, frame, optsopt)

Transmit a raw frame using the specified signal.

Requires the homey:wireless:433, homey:wireless:868 and/or homey:wireless:ir permissions. 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>