Module homey.zwave_node

Classes

class ZWaveNode

A Z-Wave Device in Homey.

This class must not be initialized by the developer, but retrieved by calling ManagerZWave.get_node().

Ancestors

Instance variables

var battery : Final[bool]
var device_class_basic : Final[str]
var device_class_generic : Final[str]
var device_class_specific : Final[str]
var firmware_id : Final[int]
var multi_channel_node : Final[bool]
var manufacturer_id : Final[int]
var multi_channel_node_id : Final[int | None]
var node_id : Final[int]
var product_id : Final[int]
var product_type_id : Final[int]
prop online : bool
prop multi_channel_nodes : MappingProxyType[str, ZWaveNode]
prop command_classes : MappingProxyType[str, ZWaveCommandClass]

A mapping from command class IDs to their ZWaveCommandClass definitions.

Methods

async def send_command(self, command_class_id: int, command_id: int, params: bytes | None = None) ‑> None

Send a raw command from the given command class with the given parameters.

def on_online(self, f: Callable[[bool], None]) ‑> Self

This event is fired when a battery node changes its online status.

Args

f
A callback that receives the new online status.
def on_nif(self, f: Callable[[str, str, list[bytes]], None]) ‑> Self

This event is fired when a Node Information Frame is received.

Args

f
A callback that receives the NIF event, node token, and a list of any arguments.
def on_unknown_report(self, f: Callable[[bytes], None]) ‑> Self

This event is fired when an unknown command is received.

Args

f
A callback that receives the report frame.

Inherited members