ZWaveNode
homey.zwave_node
A Z-Wave Device in Homey.
This class must not be initialized by the developer, but retrieved by calling ManagerZWave.get_node().
Ancestors
- SimpleClass
- homey.util.event_emitter.EventEmitter
- typing.Generic
Instance variables
battery
var battery : Final[bool]device_class_basic
var device_class_basic : Final[str]device_class_generic
var device_class_generic : Final[str]device_class_specific
var device_class_specific : Final[str]firmware_id
var firmware_id : Final[int]multi_channel_node
var multi_channel_node : Final[bool]manufacturer_id
var manufacturer_id : Final[int]multi_channel_node_id
var multi_channel_node_id : Final[int | None]node_id
var node_id : Final[int]product_id
var product_id : Final[int]product_type_id
var product_type_id : Final[int]online
var online : boolmulti_channel_nodes
var multi_channel_nodes : MappingProxyType[str, ZWaveNode]command_classes
var command_classes : MappingProxyType[str, ZWaveCommandClass]A mapping from command class IDs to their ZWaveCommandClass definitions.
Methods
send_command
async def send_command(self, command_class_id: int, command_id: int, params: bytes | None = None) ‑> NoneSend a raw command from the given command class with the given parameters.
on_online
def on_online(self, f: Callable[[bool], None]) ‑> SelfThis event is fired when a battery node changes its online status.
Args
| Name | Type | Description |
|---|---|---|
f |
Callable[[bool], None] | A callback that receives the new online status. |
on_nif
def on_nif(self, f: Callable[[str, str, list[bytes]], None]) ‑> SelfThis event is fired when a Node Information Frame is received.
Args
| Name | Type | Description |
|---|---|---|
f |
Callable[[str, str, list[bytes]], None] | A callback that receives the NIF event, node token, and a list of any arguments. |
on_unknown_report
def on_unknown_report(self, f: Callable[[bytes], None]) ‑> SelfThis event is fired when an unknown command is received.
Args
| Name | Type | Description |
|---|---|---|
f |
Callable[[bytes], None] | A callback that receives the report frame. |