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

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefined #8

Open
v1ckdesigns opened this issue Oct 4, 2021 · 3 comments

Comments

@v1ckdesigns
Copy link

v1ckdesigns commented Oct 4, 2021

Hello,
I am trying to run nibepi in a docker container connected with USB to 485 adapter
i have setup /etc/nibepi/config.json to point to the /dev/ttyUSB0 and as soon as i enable modbus on my SMO-40 unit i got an error message :

Waiting for the core to initiate...
About to exit with code: 1
node:internal/validators:119
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at validateString (node:internal/validators:119:11)
    at Module.require (node:internal/modules/cjs/loader:998:3)
    at require (node:internal/modules/cjs/helpers:102:18)
    at /usr/app/nibepi/index.js:435:27
    at checkPump (/usr/app/nibepi/index.js:394:9)
    at announcment (/usr/app/nibepi/index.js:433:13)
    at ChildProcess.<anonymous> (/usr/app/nibepi/index.js:270:25)
    at ChildProcess.emit (node:events:390:28)
    at emit (node:internal/child_process:917:12) {
  code: 'ERR_INVALID_ARG_TYPE'
}

any help would be appreciated

@v1ckdesigns
Copy link
Author

i managed to troubleshoot it further, my model is reported as NIBE,BA-SVM,10-200/12,E
i have hardcoded to SMO40 and it seems to work, but i only get the alarm register showing up.

any steps to discover register values?

@szuki
Copy link

szuki commented Dec 3, 2021

Any progress with it?

@tanelvakker
Copy link

tanelvakker commented Jan 8, 2022

This seems to happen when the model number from the unit does not match any of the https://github.com/anerdins/nibepi/blob/master/lib/models.json
You should be able to override this with config.system.pump variable

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

No branches or pull requests

3 participants