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: add compat flag to override (almost) arbitrary CC API queries #5987

Merged
merged 6 commits into from
Jul 10, 2023

Conversation

AlCalzone
Copy link
Member

@AlCalzone AlCalzone commented Jul 8, 2023

A lot of device issues are caused by incorrect responses to certain queries. This PR attempts to solve this issue by declaratively overriding what a CC API call returns and which values need to be stored in the value DB. It is set up this way, because device interviews internally use the CC API methods.
By hooking into this process, we simply skip the original API call and simulate the result.

This allows us to avoid interview-specific implementations and provides a framework to solve this issue for most problematic devices.

closes: #4609
fixes: #1625

@AlCalzone AlCalzone marked this pull request as ready for review July 10, 2023 11:34
@AlCalzone
Copy link
Member Author

@zwave-js-bot automerge

@zwave-js-bot zwave-js-bot merged commit fb13619 into master Jul 10, 2023
@zwave-js-bot zwave-js-bot deleted the compat-api branch July 10, 2023 12:56
AlCalzone added a commit that referenced this pull request Jul 10, 2023
### Config file changes
* Add missing product type to `Aeotec Water Sensor 7 Basic ZWA018` (#5989)
* Override endpoint indizes for `heatapp! floor` (#5994)
* Override schedule slot count for `P-KFCON-MOD-YALE` (#5991)
* Override supported color channels for `Zipato RGBW Bulb2` (#5993)
* Override supported thermostat modes for Z-Wave.me ZME_FT (#5997)

### Changes under the hood
* Fixed a typo in the `discoverNodeNeighbors` JSDoc (#5984)
* Added Node.js 20 to the test matrix (#5983)
* Added a compat flag to override (almost) arbitrary CC API queries (#5987, #5995)
* Added the `yarn configfind ...` CLI command to quickly find a config file by ID
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.

Add compat flag to override values reported by a device
2 participants