ManagerRF

homey.manager.rf

Manages radio frequency communication on the Homey. You can access this manager through the Homey instance as self.homey.rf.

Ancestors

Methods

cmd

async def cmd(self,
signal: Signal,
command_id: str,
repetitions: int | None = None,
device: Device | None = None)
‑> None

Send a predefined command using the given signal.

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

Args

NameTypeDescription
signal Signal The Signal used to transmit the data.
command_id str The ID of the command, as defined in app.json.
repetitions int | None How often the signal gets transmitted.
device Device | None The Device to send the signal to.

tx

async def tx(self,
signal: Signal,
frame: list[int] | bytes | bytearray,
repetitions: int | None = None,
device: Device | None = None)
‑> None

Transmit a raw frame using the given signal.

Args

NameTypeDescription
signal Signal The Signal used to transmit the data.
frame list[int] | bytes | bytearray The data to be transmitted.
repetitions int | None How often the signal gets transmitted.
device Device | None The Device to send the signal to.

disable_signal_rx

async def disable_signal_rx(self, signal: Signal) ‑> None

Disable receiving commands for the given signal.

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

Args

NameTypeDescription
signal Signal The Signal to disable receiving for.

enable_signal_rx

async def enable_signal_rx(self, signal: Signal) ‑> None

Enable receiving commands for the given signal.

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

Args

NameTypeDescription
signal Signal The Signal to disable receiving for.

get_signal_433

def get_signal_433(self, id: str) ‑> Signal433

Get the 433 MHz signal with the given ID, as defined in app.json.

get_signal_868

def get_signal_868(self, id: str) ‑> Signal868

Get the 868 MHz signal with the given ID, as defined in app.json.

get_signal_infrared

def get_signal_infrared(self, id: str) ‑> SignalInfrared

Get the infrared signal with the given ID, as defined in app.json.

Inherited members