Skip to content

Add new metadata fields from zwave-js v15.21.0 / SCHEMA 46#1367

Closed
AlCalzone wants to merge 4 commits intohome-assistant-libs:mainfrom
AlCalzone:new-metadata-fields
Closed

Add new metadata fields from zwave-js v15.21.0 / SCHEMA 46#1367
AlCalzone wants to merge 4 commits intohome-assistant-libs:mainfrom
AlCalzone:new-metadata-fields

Conversation

@AlCalzone
Copy link
Copy Markdown
Contributor

https://github.com/zwave-js/zwave-js/releases/tag/v15.21.0 adds new metadata fields:

  • allowed for defining value ranges with gaps and step sizes on config parameters and other value metadata
  • purpose for annotating a config parameter with a semantic meaning.

This PR adds both to the client lib.

Copy link
Copy Markdown
Contributor

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this data passed through from the server without any changes in the server?

Comment thread zwave_js_server/model/value.py Outdated
Comment thread zwave_js_server/model/value.py
@AlCalzone
Copy link
Copy Markdown
Contributor Author

This needs a new release of zwave-js-server with a schema bump. Going back to draft for now.

@AlCalzone AlCalzone marked this pull request as draft February 16, 2026 12:55
Comment thread zwave_js_server/model/value.py Outdated
@@ -13,7 +13,7 @@
# minimal server schema version we can handle
MIN_SERVER_SCHEMA_VERSION = 44
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this needs to be bumped. We just added support for optional properties.

@AlCalzone AlCalzone marked this pull request as ready for review February 19, 2026 13:24
@AlCalzone AlCalzone changed the title Add new metadata fields from zwave-js v15.21.0 Add new metadata fields from zwave-js v15.21.0 / SCHEMA 46 Feb 19, 2026
MIN_SERVER_SCHEMA_VERSION = 44
# max server schema version we can handle (and our code is compatible with)
MAX_SERVER_SCHEMA_VERSION = 44
MAX_SERVER_SCHEMA_VERSION = 46
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to process the other PR that adds support for schema 45 first.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at that - couldn't find anything requiring changes here. The existing code already expects dicts, and the upstream fix made sure those dicts are actually filled and not just {}.

zwave-js/zwave-js-server#1483

Bumping the schema there may have been overly cautious.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I don't think this changes anything at this point. We need to merge support for schema 45 before schema 46.

Copy link
Copy Markdown
Contributor Author

@AlCalzone AlCalzone Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh. I didn't see the other pending PR. The upstream work for that isn't even merged in zwave-js-server though.

@raman325 any suggestions on how to consolidate?

Copy link
Copy Markdown
Contributor

@raman325 raman325 Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a PR for schema 45. I didn't see this one so I pushed one for schema 46 as well. I can close that in favor of this one or vice versa doesn't matter to me - thoughts @MartinHjelmare ?

Regardless I do have schema 47 started and will continue working through that once one of these PRs is merged

@MartinHjelmare MartinHjelmare marked this pull request as draft February 20, 2026 07:07
@raman325 raman325 closed this Apr 13, 2026
@raman325
Copy link
Copy Markdown
Contributor

other PR was merged

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

Successfully merging this pull request may close these issues.

3 participants