Skip to content

Commit

Permalink
Merge branch 'master' into heatit-ztemp3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Oct 24, 2024
2 parents 93b55d2 + 80fb6f2 commit fbd9a1f
Show file tree
Hide file tree
Showing 236 changed files with 18,668 additions and 40,080 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"COREPACK_ENABLE_DOWNLOAD_PROMPT": "0" // Avoids interactive prompt causing container creation to hang
},

"updateContentCommand": "sudo corepack enable && yarn && yarn build",
"updateContentCommand": "sudo corepack enable && yarn && yarn bootstrap",
"customizations": {
"vscode": {
"extensions": [
Expand Down
8 changes: 4 additions & 4 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
".yarnrc.yml",
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.90.0.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/markdown-0.16.4.wasm",
"https://plugins.dprint.dev/prettier-0.39.0.json@896b70f29ef8213c1b0ba81a93cee9c2d4f39ac2194040313cd433906db7bc7c",
"https://plugins.dprint.dev/typescript-0.93.0.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/prettier-0.46.1.json@e5bd083088a8dfc6e5ce2d3c9bee81489b065bd5345ef55b59f5d96627928b7a",
],
}
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

206 changes: 0 additions & 206 deletions .eslintrc.js

This file was deleted.

13 changes: 13 additions & 0 deletions .github/DISCUSSION_TEMPLATE/request-support-investigate-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ body:
If you are using something non-standard, tell us here: ...
- type: textarea
id: controller
attributes:
label: Z-Wave Controller (Stick/Dongle/...)
description: |
Some issues are known to be caused by the Z-Wave controller.
Please let us know which controller and firmware you are using:
value: |
Manufacturer: ...
Model name: ...
Firmware version: ...
- type: textarea
id: devices
attributes:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/dist/index.js b/dist/index.js
index 924f1d410edf7ad3a217b9542d0455ee0954846e..92113759cd21a17b937c6b18369644a01802a9ae 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -7,6 +7,7 @@ var commaFilter = { filter: (token) => token.value === "," };
var includeCommentsFilter = { includeComments: true };
function makePredicate(isImport, addFixer) {
return (problem, context) => {
+ if (!problem.node && !problem.loc) return false;
const sourceCode = context.sourceCode || context.getSourceCode();
const { parent } = _nullishCoalesce(problem.node, () => ( // typescript-eslint >= 7.8 sets a range instead of a node
sourceCode.getNodeByRangeIndex(sourceCode.getIndexFromLoc(problem.loc.start))));
diff --git a/dist/index.mjs b/dist/index.mjs
index c9d421a8620f17748b9eef51d1480c2ba4a1b541..0752516e7adce3de842127f1a5e06bb0314e73e7 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -3,6 +3,7 @@ var commaFilter = { filter: (token) => token.value === "," };
var includeCommentsFilter = { includeComments: true };
function makePredicate(isImport, addFixer) {
return (problem, context) => {
+ if (!problem.node && !problem.loc) return false;
const sourceCode = context.sourceCode || context.getSourceCode();
const { parent } = problem.node ?? // typescript-eslint >= 7.8 sets a range instead of a node
sourceCode.getNodeByRangeIndex(sourceCode.getIndexFromLoc(problem.loc.start));
74 changes: 74 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,80 @@
<!--
Add placeholder for next release with `wip` snippet
-->
## 13.10.0 (2024-10-24)
### Features
* `mock-server` now supports putting the simulated controller into add and remove mode (#7314)

## 13.9.1 (2024-10-17)
### Bugfixes
* Fixed an issue where preferred scales were not being found when set as a string (#7286)

## 13.9.0 (2024-10-14)
### Features
* Zniffer: allow filtering frames when saving the capture (#7279)

### Bugfixes
* Fixed an issue where the `StartLevelChange` command for `Window Covering CC` was sent with an inverted direction flag (#7278)

### Config file changes
* Add manual and reset metadata for Danfoss LC-13 (#7274)

## 13.8.0 (2024-10-11)
### Features
* Support playing tones on mocked sirens, improve support for node dumps of switches/dimmers (#7272)

## 13.7.0 (2024-10-10)
### Features
* Thermostat Setback CC: Fix encoding of the setback state, add mocks, remove non-functional CC values (#7271)

## 13.6.0 (2024-10-10)
### Features
* Skip rebuilding routes for nodes with priority return routes (#7252)
* Add `node info received` event (#7253)
* OTA firmware updates now use the task scheduler. This allows running multiple OTA updates at once. (#7256)
* Implement Multilevel Switch mocks, add default state for Binary Switch mocks (#7270)

### Bugfixes
* Use configured network keys on secondary controller if learned keys are absent (#7226)
* Pending tasks are removed when hard-resetting or entering bootloader (#7255)

### Config file changes
* Add incompatibility warning to UZB1 (#7225)
* Override Central Scene CC version for Springs Window Fashions VCZ1 (#7263)

### Changes under the hood
* Dependency updates
* Fix bootstrap command in devcontainer (#7254)

## 13.5.0 (2024-10-07)
This release adds an internal task scheduler that will allow more control over longer running tasks like device interviews, route rebuilding, firmware updates, etc. These improvements include pausing/resuming tasks, better prioritization for user-initiated actions, queueing tasks without interrupting ongoing ones, and more. Migration of existing features to the new scheduler will be done incrementally, starting with route rebuilding.

### Features
* Reworked route rebuilding to use the task scheduler. This enables rebuilding routes for multiple individual nodes at once. (#7196, #7203)

### Bugfixes
* Fixed a regression from `13.4.0` that prevented restoring NVM backups on 700/800 series controllers (#7220)

### Config file changes
* Add fingerprint to Aeotec ZWA024 (#7191)
* Correct max. value of SKU parameters for Kwikset locks (#7178)
* Add fingerprint to Remotec ZXT-800 (#7195)

### Changes under the hood
* Implement task scheduler (#7193)
* Upgrade to ESLint v9, typescript-eslint v8 (#6987)
* Update FAQ on secondary controllers (#7190)

## 13.4.0 (2024-09-24)
### Features
* Added `Controller.nvm` property to enable incremental modification of NVM contents on the fly (#7153)
* When the `NODE_ENV` env variable is set to `development`, debugging information for S0 encryption is included in logs (#7181)
* Add driver preset `NO_WATCHDOG` to disable watchdog (#7188)

### Config file changes
* Update Z-Wave SDK warnings to mention recommended versions (#7187)
* Update Zooz devices (#7186)

## 13.3.1 (2024-09-17)
### Bugfixes
* Fixed the identification of the primary controller role on some older controllers (#7174)
Expand Down
6 changes: 6 additions & 0 deletions docs/api/controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ async rebuildNodeRoutes(nodeId: number): Promise<boolean>

Rebuilds routes for a single alive node in the network, updating the neighbor list and assigning fresh routes to association targets. The returned promise resolves to `true` if the process was completed, or `false` if it was unsuccessful.

> [!ATTENTION] Rebuilding routes for a single node will delete existing priority return routes to end nodes and the SUC. It is recommended to first check if priority return routes are known to exist using `getPriorityReturnRoutesCached` and `getPrioritySUCReturnRouteCached` and asking for confirmation before proceeding.
#### `beginRebuildingRoutes`

```ts
Expand All @@ -449,6 +451,8 @@ The `options` argument can be used to skip sleeping nodes:
interface RebuildRoutesOptions {
/** Whether the routes of sleeping nodes should be rebuilt too at the end of the process. Default: true */
includeSleeping?: boolean;
/** Whether nodes with priority return routes should be included, as those will be deleted. Default: false */
deletePriorityReturnRoutes?: boolean;
}
```

Expand Down Expand Up @@ -628,10 +632,12 @@ As mentioned before, there is unfortunately no way to query return routes from a

```ts
getPriorityReturnRouteCached(nodeId: number, destinationNodeId: number): MaybeUnknown<Route> | undefined;
getPriorityReturnRoutesCached(nodeId: number): Record<number, Route>;
getPrioritySUCReturnRouteCached(nodeId: number): MaybeUnknown<Route> | undefined;
```

- `getPriorityReturnRouteCached` returns a priority return route that was set using `assignPriorityReturnRoute`. If a non-priority return route has been set since assigning the priority route, this will return `UNKNOWN_STATE` (`null`).
- `getPriorityReturnRoutesCached` returns an object containing the IDs of all known end node destinations a node has priority return routes for and their respective routes.
- `getPrioritySUCReturnRouteCached` does the same for a route set through `assignPrioritySUCReturnRoute`.

The return type `Route` has the following shape:
Expand Down
Loading

0 comments on commit fbd9a1f

Please sign in to comment.