Configuration manager access #78
Replies: 3 comments 10 replies
-
Hi @pnpebeling You likely havant compiled the middleware image (PSI file) to the latest version - therefore, it's not pulling down the server version that included this functionality (config manager) See https://github.com/zwave-js/ZWaveJS.NET/tree/main/PSI for the PSI source The 'current' version of the PSI is based on schema 17 - quite old now, its currently on schema version 40 (I think The are a 2 parts to this project...
The PSI file contains an embedded version of the Zwave JS Driver, and the web socket server - its the web socket server, that will handle this functionality - and I doubt schema version 17 - contained this functionality. The PSI file is compiled to an exe - and hosts an embedded runtime of the Driver and Server - the DLL fires it up, and connects to it via web socket See : https://github.com/zwave-js/zwave-js-server Try using the V4 branch (be aware of a lot of breaking changes) + the need to now compile your own PSI |
Beta Was this translation helpful? Give feedback.
-
You could just try bumping the server and driver on the current version you have downloaded (and build as normal) |
Beta Was this translation helpful? Give feedback.
-
After updating my application to use the V4 branch, I can no longer connect to the server. I receive the following error message in the StartupErrorEvent event callback. From the log file, it appears that the server is connecting to the ZWave Stick (AEOTEC Gen5), however there appears to be a problem in the subsequent GetControllerVersion requests. The last few lines from the log file are as follows. 2025-01-27T16:53:48.630Z DRIVER » [REQ] [GetControllerVersion] In addition, when I run the application, an instance of server.500001.psi is created alongside of the existing server.psi file. Note that I am using the NodeJS version that shipped with my Visual Studio 2022 environment, node -v reports version v20.13.1 { The PSI build process reports several warnings in the npm install phase npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. added 344 packages, and audited 345 packages in 26s as well as the build phase
Any additional guidance is appreciated. thx -p |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am converting the ZWave portion my home automation .NET project from openZWave to ZWaveJS via ZWaveJS.NET. I am using the current version of ZWaveJS.NET in "Self Hosted" mode. The conversion has gone quite smoothly. I have a need to access the manufacturer information and since there are no public methods within ZWaveJS.NET to access the ZWaveJS configuration manager I am attempting to add some.
I have include the JWaveJS.NET source code as a project within my solution and am in the process of adding extension methods to provide configuration manager access. My extension methods follow the established pattern for sending requests to the server code. I have successfully added an extension method to retrieve a node's neighbor nodes.
My attempts to access the server configuration manager have not been successful. My extension method and the server response are shown below. From reviewing the server documentation I believe I have formatted the command correctly, however I get Unknown Command responses.
Any insight into this issue is appreciated.
paul ebeling
{
"type": "result",
"success": false,
"messageId": "5edbfc06-73ae-464c-b9f6-bfe6ebac08b5",
"errorCode": "unknown_command",
"args": {
"command": "config_manager.lookup_manufacturer"
}
}
Beta Was this translation helpful? Give feedback.
All reactions