genericmiot: add metadata command and cgllc-spec namespace#2088
Merged
Conversation
Unify the lookup API so get_metadata returns the source namespace on the result, removing the need for a separate paired method. Make the miot-spec-v2 -> common fallback implicit for all namespaces, dropping the per-namespace fallback field from the YAML files.
Adds a 'metadata' command that reports per-entity coverage against the loaded namespace metadata, distinguishing direct hits from fallbacks. Missing items can be saved as YAML stubs, which are merged into existing namespace files and automatically registered in the index.
Known settings get human-readable descriptions; entries with unclear purpose use empty entries to stay registered without name overrides.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2088 +/- ##
==========================================
- Coverage 84.35% 84.31% -0.04%
==========================================
Files 201 201
Lines 20377 20656 +279
Branches 1079 1121 +42
==========================================
+ Hits 17188 17417 +229
- Misses 2999 3047 +48
- Partials 190 192 +2 ☔ View full report in Codecov by Harness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add new CLI command to allow generating a metadata file for an unsupported device, and use it to add support for cgllc-spec used by Qingping air quality monitor lite (
cgllc.airm.cgd1st).metadataCLI command to GenericMiot that reports per-entity coverage ([ok]/[fb]/[??]/[--]) and can generate or merge namespace metadata YAML files for missing entries; entries without a description are listed at the end of each service block so gaps are easy to spotdescriptionto be omitted on property and action metadata entries, keeping them registered without overriding the device-given name