Replies: 3 comments 1 reply
|
I'll have a look at it |
0 replies
|
Just a reminder that the number shows the download count for the latest release. Example command to get the download count for each release: curl -sH "Accept: application/vnd.github+json" \
https://api.github.com/repos/BenPru/luxtronik/releases | \
jq -r '.[] | .tag_name as $t | [.assets[].download_count] | add | select(. > 0) | "\($t): \(.)"'If you have GitHub CLI: gh api repos/BenPru/luxtronik/releases --jq '.[] | .tag_name as $t | [.assets[].download_count] | add | select(. > 0) | "\($t): \(.)"' |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Tracking HACS download counts per release
Hi @AJediIAm, @rhammen,
I'd like to suggest switching the release process to use zip release assets instead of relying on GitHub's auto-generated source code archives.
Problem
Currently, when HACS installs this integration, it downloads the auto-generated source code archive (the "Source code (zip)" that GitHub creates automatically for every release). The issue is that GitHub API does not expose download counts for these auto-generated archives — the
download_countfield is only available for explicitly uploaded release assets (via the Release Assets API).This means there's no way to see how many users have installed each specific release through HACS or via the GitHub API.
Solution
By switching to a zip release asset workflow, each release would have an explicitly uploaded
.zipfile. HACS would then download this asset instead of the auto-generated source archive, and GitHub would track thedownload_countfor each asset — giving visibility into how many times each release was actually downloaded/installed.Required changes
hacs.json— add two keys:{ "name": "Luxtronik", "render_readme": true, "homeassistant": "2025.6.0", "filename": "luxtronik.zip", "zip_release": true }luxtronik.zipasset containing thecustom_components/luxtronik/directory for each release.Reference
This is documented in the HACS manifest documentation:
As a practical example, I use this approach in my own integration homeassistant-vistapool-modbus, where
hacs.jsoncontains:{ "name": "VistaPool Modbus Integration (for NeoPool Controllers)", "filename": "vistapool_modbus.zip", "homeassistant": "2025.1.0", "render_readme": true, "zip_release": true }This has been working well and provides clear download statistics per release.
Benefits
download_counton each asset)zip_releasetransparently, the installation experience is the sameAll reactions