feat(cli): read should print the label of an enum value
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- cli
Research direction
Start by locating the read command's JSON and table output paths, then check how driver enumValues reach the data points. Add the label to JSON while preserving the numeric value, show it beside the number in the table, and document the field in the CLI README. Done when tests cover both formats and the README shows the new field.
Written by the indexing model from the issue text.
Description
Found while testing driver PRs on real devices (2026-11-19).
ya-modbus read --all --format json prints an enum data point as its number only, for example "id": "mode", "value": 1. The drivers have the labels (enumValues, for example heating), and the old homy readers published the labels as text. To compare a real read with the old reader's message one must look up each label by hand in the driver source. The JSON also has no enumValues for these data points.
Done when
- For a data point with
enumValues,read --format jsonalso gives the label (for example"label": "heating"), keepingvalueas the number. - The table format shows the label next to the number.
- The CLI README shows the new field.
- A test covers both formats.
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 0
- Avg merge
- 13h 46m
- Merged PRs (30d)
- 58
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from groupsky/ya-modbus
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
codex-ok
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
codex-ok type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
All issues in groupsky/ya-modbus
Similar issues
-
enhancement UX
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
online-go/online-go.com#4000 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
SnosMe/awakened-poe-trade#1976 ·
-
[BUG]Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
jonp-h/TillerQuest#319 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
terrazzoapp/terrazzo#902 ·