zwave_add_association
Add a direct association from a source node's group to a target node, enabling one Z-Wave device to control another.
Instructions
Add an association from a source node's group to a target node.
Associations let a device control another directly (e.g. a switch driving a light). Use zwave_association_groups to pick a valid group. Raises ValueError for an unknown source node id.
Args: node_id: The source Z-Wave node id, e.g. 5 group: The association group id on the source node target_node_id: The node id to associate into the group source_endpoint: Optional source endpoint (defaults to the root device) target_endpoint: Optional target endpoint (defaults to the root device)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | ||
| node_id | Yes | ||
| target_node_id | Yes | ||
| source_endpoint | No | ||
| target_endpoint | No |