Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: bump zwave-js@12 and fix breaking changes #3268

Merged
merged 18 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/guide/mqtt.md
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ Payload:
#### `firmwareUpdateOTA`

```ts
async firmwareUpdateOTA(nodeId: number, updates: FirmwareUpdateFileInfo[]): Promise<FirmwareUpdateResult>;
async firmwareUpdateOTA(nodeId: number, updateInfo: FirmwareUpdateInfo): Promise<FirmwareUpdateResult>;
```

<details>
Expand Down Expand Up @@ -1233,18 +1233,18 @@ Payload:

</details>

#### `healNode`
#### `rebuildNodeRoutes`

```ts
async healNode(nodeId: number): Promise<boolean>;
async rebuildNodeRoutes(nodeId: number): Promise<boolean>;
```

Heal a node.
Rebuild node routes.

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

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

Payload:

Expand Down Expand Up @@ -1851,16 +1851,16 @@ Payload:

</details>

#### `beginHealingNetwork`
#### `beginRebuildingRoutes`

```ts
beginHealingNetwork(options?: HealNetworkOptions): boolean;
beginRebuildingRoutes(options?: RebuildRoutesOptions): boolean;
```

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

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

Payload:

Expand All @@ -1874,16 +1874,16 @@ Payload:

</details>

#### `stopHealingNetwork`
#### `stopRebuildingRoutes`

```ts
stopHealingNetwork(): boolean;
stopRebuildingRoutes(): boolean;
```

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

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

Payload:

Expand Down
2 changes: 1 addition & 1 deletion lib/SocketEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export enum socketEvents {
valueUpdated = 'VALUE_UPDATED',
valueRemoved = 'VALUE_REMOVED',
metadataUpdated = 'METADATA_UPDATED',
healProgress = 'HEAL_PROGRESS',
rebuildRoutesProgress = 'REBUILD_ROUTES_PROGRESS',
healthCheckProgress = 'HEALTH_CHECK_PROGRESS',
info = 'INFO',
api = 'API_RETURN', // api results
Expand Down
Loading
Loading