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(mock-server): support node dumps as input #6907

Merged
merged 3 commits into from
Jun 7, 2024
Merged

Conversation

AlCalzone
Copy link
Member

@AlCalzone AlCalzone commented Jun 7, 2024

With this PR, the mock-server can parse node dumps created by node.createDump(). This can either be done programmatically using the createMockNodeOptionsFromDump method, or by passing a file with extension .dump as the mock server config, either a standalone file or in a directory with mocks.

As a followup we should create more CC-specific capabilities from CC values. I don't have a useful dump handy right now.

@AlCalzone AlCalzone marked this pull request as draft June 7, 2024 09:39
@AlCalzone AlCalzone marked this pull request as ready for review June 7, 2024 12:01
@AlCalzone
Copy link
Member Author

@zwave-js-bot automerge

@zwave-js-bot zwave-js-bot enabled auto-merge (squash) June 7, 2024 12:01
@zwave-js-bot zwave-js-bot merged commit 2c11420 into master Jun 7, 2024
17 checks passed
@zwave-js-bot zwave-js-bot deleted the mock-dump branch June 7, 2024 12:06
AlCalzone added a commit that referenced this pull request Jun 10, 2024
### Features
* Add `ZWaveNode.createDump()` method to save debug information in a format Z-Wave JS understands (#6906)
* Support node dumps created by `ZWaveNode.createDump()` as input for `mock-server' (#6907)
* `mock-server`: enable mDNS discovery (#6909)
* Add driver option to configure vendor-specific constants Z-Wave JS uses to reply to requests from other nodes, including manufacturer ID, product type/ID and hardware version (#6876)

### Bugfixes
* Fixed a race condition that would cause a timeout error to be shown after an actually successful OTW update (#6912)
* Create `supportedNotificationTypes` and `supportedNotificationEvents` values with `alarmMapping` compat flag (#6914)

### Config file changes
* Correct config parameters for Minoston MP21ZD Dimmer Plug (#6686)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants