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

[bug] Meter report errors #1316

Closed
blhoward2 opened this issue Jan 8, 2021 · 8 comments
Closed

[bug] Meter report errors #1316

blhoward2 opened this issue Jan 8, 2021 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@blhoward2
Copy link
Collaborator

blhoward2 commented Jan 8, 2021

Describe the bug
All of my devices that check-in with energy reports throw an error under the node-zwave-js master branch with the zwavejs2mqtt fix#23 branch.

Master Branch

2021-01-08 03:42:44.407 ERROR GATEWAY: Error while discovering value 103-50-0-deltaTime-65537 of node 103: The config has not been loaded yet! The config has not been loaded yet!

ZWaveError: The config has not been loaded yet!

    at lookupMeter (/usr/src/app/node_modules/@zwave-js/config/src/Meters.ts:80:9)

    at Object.meterType (/usr/src/app/lib/Constants.js:21:19)

    at Gateway.discoverValue (/usr/src/app/lib/Gateway.js:1598:32)

    at Gateway.onValueChanged (/usr/src/app/lib/Gateway.js:234:10)

    at ZwaveClient.emit (events.js:314:20)

    at ZwaveClient.EventEmitter.emit (domain.js:483:12)

    at ZwaveClient.updateValue (/usr/src/app/lib/ZwaveClient.js:742:12)

    at ZwaveClient.onNodeValueUpdated (/usr/src/app/lib/ZwaveClient.js:390:15)

    at ZWaveNode.emit (events.js:314:20)

    at ZWaveNode.EventEmitter.emit (domain.js:483:12)

    at ZWaveNode.translateValueEvent (/usr/src/app/node_modules/zwave-js/src/lib/node/Node.ts:352:8)

    at ValueDB.emit (events.js:314:20)

    at ValueDB.EventEmitter.emit (domain.js:483:12)

    at ValueDB.setValue (/usr/src/app/node_modules/zwave-js/node_modules/@zwave-js/core/src/values/ValueDB.ts:224:10)

    at MeterCCReport.persistValues (/usr/src/app/node_modules/zwave-js/src/lib/commandclass/MeterCC.ts:602:12)

    at new MeterCCReport (/usr/src/app/node_modules/zwave-js/src/lib/commandclass/MeterCC.ts:534:8)

I get the same error message for all three values.

Under the zwavejs2mqtt-dev image

2021-01-07 23:22:14.668 INFO ZWAVE: Node 103: value updated: 50-0-value-65537 1.506 => 1.506

2021-01-07 23:22:14.671 INFO ZWAVE: Node 103: value updated: 50-0-previousValue-65537 1.506 => 1.506

2021-01-07 23:22:14.675 INFO ZWAVE: Node 103: value updated: 50-0-deltaTime-65537 30 => 30
23:22:44.669 SERIAL « 0x0114000400670e32022164000005e2001e000005e2ed                      (22 bytes)
23:22:44.671 CNTRLR   [Node 103] [~] [Meter] value[65537]: 1.506 => 1.506               [Endpoint 0]
23:22:44.675 CNTRLR   [Node 103] [~] [Meter] previousValue[65537]: 1.506 => 1.506       [Endpoint 0]
23:22:44.680 CNTRLR   [Node 103] [~] [Meter] deltaTime[65537]: 30 => 30                 [Endpoint 0]
23:22:44.684 SERIAL » [ACK]                                                                   (0x06)
23:22:44.689 DRIVER « [Node 103] [REQ] [ApplicationCommand]
                      └─[MeterCCReport]
                          type:        Electric
                          scale:       kWh
                          rate type:   Consumed
                          value:       1.506
                          time delta:  30 seconds
                          prev. value: 1.506

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Device information
I'm see this on multiple devices including Aeotec Switch 6s, Aeon Nano Dimmers, and an Aeon Microdimmer.

Logfile:

I can't generate better logfiles because logging does not work as described in the fix#23 PR.

@blhoward2 blhoward2 added the bug Something isn't working label Jan 8, 2021
@AlCalzone
Copy link
Member

What's the difference to the zwavejs2mqtt-dev image?

You could try and run zwavejs2mqtt without Docker, to make sure the build process of that isn't the problem.

@blhoward2
Copy link
Collaborator Author

I can try that tonight.

@jcam
Copy link
Contributor

jcam commented Jan 9, 2021

Hmm, I'm getting this on my bridge controller branch too. After a half dozen flips between on/off, it got an unhandled exception (with the same GATEWAY error) and the whole server shut down

@AlCalzone
Copy link
Member

AlCalzone commented Jan 9, 2021

I'm like 99% certain this happens due to the faulty docker image. This is just zwave-js:

grafik

@blhoward2
Copy link
Collaborator Author

So what’s breaking the image then? It’s in every image I’ve built off fix#23/master.

@AlCalzone
Copy link
Member

My guess is this zwave-js/zwave-js-ui#181 but I'm not sure.

@blhoward2
Copy link
Collaborator Author

@AlCalzone I do not get this error in a container built with both zwave-js/zwave-js-ui#181 and zwave-js/zwave-js-ui#84. Since it exists when built with only fix#23, zwave-js/zwave-js-ui#181 must fix it.

@blhoward2
Copy link
Collaborator Author

I’ve also confirmed that this is fixed when zwave-js/zwave-js-ui#181 is built with the config directory properly linked (per my comment on that PR). As such, this seems to be an artifact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants