question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MeterCC.ts creates value labels that cannot be distinguished

See original GitHub issue

Describe the bug

When selecting a meter value in zwavejs2mqtt (e.g. from a Shenzehen Neo NAS-WR01ZE Wall Plug) the selection box shows identical labels for all meter values which cannot be distinguished for which unit it is (kWh, W, V, A).

This is a screenshot from the value selection: image

This is a screenshot that shows that multiple values have identical labels and would not be able to distinguish, if the UI would not output the unit as well: image

Maybe the value labels could be improved a bit as well (shorter with more meaningful names).

Device information

Which device(s) is/are affected (make/model)? Shenzehen Neo NAS-WR01ZE Wall Plug What are the node IDs? Node 080 (see logs). Device IDs: 600-4135-512 (0x0258-0x1027-0x0200)

The bug affects not only this device but all devices using the meter CC.

Installation information How did you install node-zwave-js? Zwavejs2mqtt (dev) docker image

To Reproduce Steps to reproduce the behavior:

  1. Go to zwavejs2mqtt settings
  2. Click on ‘New Value’ on the bottom left
  3. Select a device supporting the meter CC
  4. Open the value select - it shows multiple identically named values, unable to distinguish

Logfile: zwavejs-log.zip

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ahochstegercommented, Jan 24, 2021

I see.

What about the following suggestion for a generic label generation:

value: <meterType> <rateType> [<meterScale>]
previousValue: <meterType> <rateType> [<meterScale>] (previous)
deltaTime: <meterType> <rateType> [<meterScale>] (previous time delta)

This would generate the following labels:

value: Electric consumed [kWh]
previousValue: Electric consumed [kWh] (previous)
deltaTime: Electric consumed [kWh] (previous time delta)
0reactions
AlCalzonecommented, Jan 24, 2021

Not exactly much shorter, but unique. I’ll collect a few more votes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Metrics - Datadog Docs
Overview. Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. Optionally, include percentile aggregations on ...
Read more >
A biology-informed similarity metric for simulated patches of ...
Given a data point, its relevant transformations are placed closest to it, whereas data that can be easily distinguished based on labels is...
Read more >
label - Stata
label define creates a value label named lblname, which is a set of individual numeric values and their corresponding labels. lblname can ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found