Get all your GitHub activity, inside Home Assistant.
GitHub API → sensors, events & history → dashboards & automations
GitHub Pulse turns your GitHub account into Home Assistant entities. It looks at the whole account, not only a single repository:
- 📊 commits and pull requests this month, compared with last month and last year
- 🗓️ your busiest month, contribution streaks and weekday rhythm
- 🧑💻 the programming languages you use most, and how that changed over time (an estimate, see below)
- 📦 per-repository stats, releases, CI state and workflow runs
- 🔔 events for failed workflows, new releases and review requests
- 🔧 your own GraphQL queries as sensors
You choose which parts to enable. That also decides which access token permissions you need.
- In HACS, search for GitHub Pulse and download it.
- Restart Home Assistant.
- Go to Settings → Devices & services → Add integration → GitHub Pulse.
- Paste a personal access token and choose the modules you want.
- Use Add repository to pick one or more repositories from a list of those your token can read, or type
owner/name.
Requires Home Assistant 2026.9 or newer.
Fallback: add it as a custom repository
If GitHub Pulse does not show up in the HACS search:
- Open HACS → ⋮ → Custom repositories.
- Add
https://github.com/JtheGunner/ha-github-pulsewith the category Integration. - Install GitHub Pulse and restart Home Assistant.
You need one token. It serves every module you enable. A classic token with repo and read:org covers everything; the table shows the minimum per module.
| Module | Classic token | Fine-grained token |
|---|---|---|
| 👤 Profile | no scope for public activity; repo + read:org adds private repositories |
Metadata read, one owner only |
| 📁 Repositories | repo for private repositories |
Metadata, Contents, Issues, Pull requests (read); Actions read if you track workflow runs |
The setup checks the token against every module you select and tells you what is missing. The full endpoint list is in the permission matrix.
Important
Fine-grained tokens belong to a single owner and cannot read Packages. Use a classic token if you need more.
Note
The repository traffic sensors only work for repositories you have write access to; GitHub shows traffic to no one else, and only for the last 14 days. A classic token with repo covers it. GitHub does not document a fine-grained permission for traffic, so if the sensors stay unavailable with a fine-grained token, use a classic one.
| Part | Entities | |
|---|---|---|
| 👤 | Profile | Contributions, commits and pull requests this month; change versus last month and last year (like for like); busiest month; current and longest streak; top language and language shift (estimated) |
| 📁 | Repositories | One device per repository: stars, forks, open issues and pull requests, latest release, CI state of the default branch; commits and active days this month and the change versus last month and last year (like for like); pull requests and issues created this month; all counting every author |
| ⚙️ | Workflow runs | Per repository, if you turn on Track workflow runs: last result, runs today, queued runs, failure rate over 7 and 30 days, average duration, and a binary sensor while a workflow runs |
| 🔔 | Events | Event entities per repository (workflow failed or recovered, release published) and for your account (review requested, pull request merged), also fired on the event bus |
| 🧪 | Custom queries | Your own read-only GraphQL query as a sensor, added under Add custom query. Rendered with templates over value_json. Presets included; see the guide |
| ➕ | Optional sensors | Reviews, issues, active days, strongest weekday, watchers, release downloads, days since last commit or release, pull requests awaiting your review, most active hour and night-owl score (approximate, from GitHub's last 300 events), average time to merge (last 50 merged pull requests), stale pull requests (open, untouched for 14 days), year in review (one-line summary with the details as attributes), followers and following counts, repository traffic (unique visitors and cloners and page views and clones over the last 14 days, peak visitor day, top referrer and page, visitor trend, cloners per visitor; needs write access, see Access token) |
Everything marked optional is created disabled. GitHub Pulse only fetches data that an enabled entity needs, so unused sensors cost no API calls.
Note
On the integration page, your account's device (for example GitHub octocat) appears under Devices that don't belong to a sub-entry. That heading comes from Home Assistant: the profile entities belong to the account itself, while repositories and custom queries are sub-entries. Nothing is misconfigured.
| Service | Purpose |
|---|---|
github_pulse.get_history |
Returns the monthly series and language shares as a response, for scripts and templates |
github_pulse.year_in_review |
Returns contributions, busiest month, top language (estimated) and longest streak of a year, with a one-line summary |
github_pulse.query |
Runs a read-only GraphQL query and returns its data, errors and cost. Same validation and rate budget as custom query sensors; 30 s timeout, 200 kB result limit |
Each event is also fired on the Home Assistant event bus, so any automation can react to it.
| Event type | Fired when | Data |
|---|---|---|
github_pulse_workflow_failed |
A workflow run of a tracked repository fails | repository, workflow, branch, run_id, conclusion, url |
github_pulse_workflow_recovered |
The first run succeeds after a failure | same as above |
github_pulse_release_published |
A tracked repository publishes a release | repository, tag, name, url, prerelease |
github_pulse_review_requested |
Someone asks you to review a pull request | repository, number, title, url |
github_pulse_pr_merged |
One of your pull requests is merged | repository, number, title, url |
History is never announced: on a fresh install the current state is only remembered.
History depth (1 to 10 years, default 3), refresh intervals, contribution time zone, whether to include restricted contributions, language weighting, and an opt-in import of the monthly history into long-term statistics.
Tip
Charts for commits and language shares need no custom card: see the dashboard example.
Note
Why do totals differ from github.com, and why are some counts "restricted"? See visible and restricted contributions.
Note
Language statistics are estimated: GitHub provides language data per repository, not per commit. The estimate weights your commits by each repository's language mix.
Two automation blueprints ship in blueprints/automation/github_pulse. Copy them to config/blueprints/automation/github_pulse/ and create automations from them.
| Blueprint | Fires on | |
|---|---|---|
| 🔴 | ci_failed.yaml |
github_pulse_workflow_failed, optionally filtered by repository and branch |
| 👀 | review_requested.yaml |
github_pulse_review_requested, optionally filtered by repository |
Possible next steps: more presets for custom queries. A Packages module is not planned: GitHub's API returns package names and versions but no download counts. See
docs/concept-and-plan.md.
Issues and pull requests are welcome. See CONTRIBUTING.md for the project layout, conventions and the pull request process. Every behaviour change needs a test.
Requires Python 3.14 and uv.
uv venv --python 3.14 .venv
uv pip install --python .venv/bin/python -r requirements_test.txt
.venv/bin/ruff check . && .venv/bin/ruff format --check .
.venv/bin/mypy custom_components
.venv/bin/pytestSee CHANGELOG.md.
Released under the MIT License.