# ZWave
## Méthodes
### ZWave.AddNetwork
ADMIN
Add a new Z-Wave network with the given serial port.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `serialPort` | `String` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | optionnel |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
### ZWave.AddNode
ADMIN
Start the node inclusion procedure for the given Z-Wave network.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
### ZWave.CancelPendingOperation
ADMIN
Cancel any running node inclusion or removal procedure for the given Z-Wave network.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
### ZWave.FactoryResetNetwork
ADMIN
Factory reset the controller for the given Z-Wave network.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
### ZWave.GetNetworks
ADMIN
Get all the Z-Wave networks in the system.
**Paramètres :**
_Aucun paramètre._
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networks` | [ZWaveNetwork](../types.md#zwavenetwork)[] | |
---
### ZWave.GetNodes
ADMIN
Get the list of nodes in a network
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `nodes` | [ZWaveNode](../types.md#zwavenode)[] | optionnel |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
### ZWave.GetSerialPorts
ADMIN
Get the list of available serial ports from the host system.
**Paramètres :**
_Aucun paramètre._
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `serialPorts` | [SerialPorts](../types.md#serialports) | |
---
### ZWave.IsZWaveAvailable
ADMIN
Query if the Z-Wave subsystem is available at all.
**Paramètres :**
_Aucun paramètre._
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `available` | `Bool` | |
---
### ZWave.RemoveFailedNode
ADMIN
Remove the given failed node from the given Z-Wave network. This will not work if node is not marked as failed.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
| `nodeId` | `Uint` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
### ZWave.RemoveNetwork
ADMIN
Remove the given Z-Wave network from the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
### ZWave.RemoveNode
ADMIN
Start the node removal procedure for the given Z-Wave network.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `zwaveError` | [ZWaveError](../types.md#zwaveerror) | |
---
## Notifications
### ZWave.NetworkAdded
Emitted whenever a new Z-Wave network has been added to the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `network` | [ZWaveNetwork](../types.md#zwavenetwork) | |
---
### ZWave.NetworkChanged
Emitted whenever a Z-Wave network changes.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `network` | [ZWaveNetwork](../types.md#zwavenetwork) | |
---
### ZWave.NetworkRemoved
Emitted whenever a Z-Wave network has been removed from the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
---
### ZWave.NodeAdded
Emitted whenever a Z-Wave node is added.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
| `node` | [ZWaveNode](../types.md#zwavenode) | |
---
### ZWave.NodeChanged
Emitted whenever a Z-Wave node has changed.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
| `node` | [ZWaveNode](../types.md#zwavenode) | |
---
### ZWave.NodeRemoved
Emitted whenever a Z-Wave node is removed.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `networkUuid` | `Uuid` | |
| `nodeId` | `Uint` | |
---