Skip to content

Commit

Permalink
docs: update mqtt docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Sep 26, 2023
1 parent f1641aa commit c331207
Showing 1 changed file with 65 additions and 6 deletions.
71 changes: 65 additions & 6 deletions docs/guide/mqtt.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,33 @@ Payload:

</details>

#### `setNodeDefaultSetValueOptions`

```ts
setNodeDefaultSetValueOptions(
nodeId: number,
props: Pick<ZUINode, 'defaultTransitionDuration' | 'defaultVolume'>
): void;
```

<details>
<summary>Mqtt usage</summary>

Topic: `zwave/_CLIENTS/ZWAVE_GATEWAY-<mqtt_name>/api/setNodeDefaultSetValueOptions/set`

Payload:

```json
{
"args": [
nodeId,
props
]
}
```

</details>

#### `_createScene`

```ts
Expand Down Expand Up @@ -1027,7 +1054,7 @@ Payload:
async getAvailableFirmwareUpdates(
nodeId: number,
options?: GetFirmwareUpdatesOptions
): Promise<FirmwareUpdateInfo[]>;
): Promise<{ version: string; changelog: string; channel: "stable" | "beta"; files: FirmwareUpdateFileInfo[]; downgrade: boolean; normalizedVersion: string; device: { manufacturerId: number; productType: number; productId: number; firmwareVersion: string; rfRegion?: RFRegion; }; }[]>;
```

<details>
Expand Down Expand Up @@ -1065,7 +1092,7 @@ Payload:
{
"args": [
nodeId,
updates
updateInfo
]
}
```
Expand Down Expand Up @@ -1405,7 +1432,8 @@ Payload:
async assignCustomReturnRoutes(
nodeId: number,
destinationNodeId: number,
routes: Route[]
routes: Route[],
priorityRoute?: Route
): Promise<boolean>;
```

Expand All @@ -1423,7 +1451,8 @@ Payload:
"args": [
nodeId,
destinationNodeId,
routes
routes,
priorityRoute
]
}
```
Expand Down Expand Up @@ -1458,7 +1487,11 @@ Payload:
#### `assignCustomSUCReturnRoutes`

```ts
async assignCustomSUCReturnRoutes(nodeId: number, routes: Route[]): Promise<boolean>;
async assignCustomSUCReturnRoutes(
nodeId: number,
routes: Route[],
priorityRoute?: Route
): Promise<boolean>;
```

Assigns up to 4 return routes to a node to the controller.
Expand All @@ -1474,7 +1507,8 @@ Payload:
{
"args": [
nodeId,
routes
routes,
priorityRoute
]
}
```
Expand Down Expand Up @@ -1698,6 +1732,31 @@ Payload:

</details>

#### `abortHealthCheck`

```ts
abortHealthCheck(nodeId: number): void;
```

Aborts an ongoing health check if one is currently in progress.

<details>
<summary>Mqtt usage</summary>

Topic: `zwave/_CLIENTS/ZWAVE_GATEWAY-<mqtt_name>/api/abortHealthCheck/set`

Payload:

```json
{
"args": [
nodeId
]
}
```

</details>

#### `isFailedNode`

```ts
Expand Down

0 comments on commit c331207

Please sign in to comment.