ManagerRF

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

Table of Contents

Methods

(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 Attributes Description
signal Signal

used to transmit data

commandId string

name of the command as specified in the app manifest

opts Object <optional>

(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:
Type:
Promise.<void>

(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:
Type:
Promise.<T>

getSignal433(id) → {Signal433}

Parameters:
Name Type Description
id string

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

Returns:
Type:
Signal433

getSignal868(id) → {Signal868}

Parameters:
Name Type Description
id string

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

Returns:
Type:
Signal868

getSignalInfrared(id) → {SignalInfrared}

Parameters:
Name Type Description
id string

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

Returns:
Type:
SignalInfrared

(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 Attributes Description
signal Signal

used to transmit data

frame Array.<number> | Buffer

data to be transmitted

opts Object <optional>