Expose firmware version via Zigbee SWBuildID#13
Open
georgemclaughlin wants to merge 1 commit intoStuckAtPrototype:masterfrom
Open
Expose firmware version via Zigbee SWBuildID#13georgemclaughlin wants to merge 1 commit intoStuckAtPrototype:masterfrom
georgemclaughlin wants to merge 1 commit intoStuckAtPrototype:masterfrom
Conversation
Author
c167bfd to
27a7570
Compare
Owner
|
very nice! I will run this once I am back local at my HA and pull it in. Thanks! |
|
Perfect! I was hoping to find the firmware version displayed somewhere so that I could tell what my device came in on stock. Branch has conflicts, but anything else holding this up? @StuckAtPrototype |
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.

Summary
This adds Zigbee firmware version exposure via the Basic cluster
SWBuildIDattribute (0x0000 / 0x4000).AirCube already exposes manufacturer and model through the Basic cluster, so this extends that to also expose the running firmware/app version from ESP-IDF.
Changes
SWBuildIDto the Basic cluster infirmware/main/zigbee.cesp_app_get_description()->versionfirmware/version.txtesp_app_formatdependency needed to read the app description.gitignorefirmware/partitions_zigbee.csv, sincesdkconfig.defaultsalready references itNotes on the partition table
The repo currently references
firmware/partitions_zigbee.csvfromsdkconfig.defaults, but the file is missing and*.csvin.gitignoreprevents it from being added.The partition table in this PR is a working reconstruction based on the current firmware requirements:
zb_storagezb_fcthistorysized to matchhistory.c/history.hIf you still have the original intended partition layout, feel free to replace it.
Verification
Tested locally with ESP-IDF 5.5.3:
idf.py set-target esp32h2 buildsw_build_idis readableExample ZHA readback:
100x0000(Basic)0x4000(sw_build_id)1.3.1during initial validation, then1.3.2after switching toversion.txtThe PR currently leaves
firmware/version.txtat1.3.0so you can choose the final release/version value upstream.