Thanks for your interest in improving TaskMate! This is a Home Assistant custom integration for family chore and points tracking. Contributions of all kinds are welcome — bug reports, feature ideas, translations, docs, and code.
- Bugs and features: please open an issue first using the issue templates. For features especially, it's worth agreeing on the approach before writing code.
- Questions and ideas: use Discussions rather than an issue.
- Check the Troubleshooting guide first for common problems.
custom_components/taskmate/
├── __init__.py # integration setup
├── config_flow.py # UI config & options flow
├── coordinator.py # core data coordinator
├── coord_*.py # per-domain coordinators (chores, points, badges, …)
├── sensor.py # sensors the cards read from
├── services.yaml # service definitions
├── websocket.py # WebSocket API commands
├── translations/ # backend strings (da, de, en, en-GB, fr, nb, nl, nn, pl, pt, pt-BR)
├── strings.json # source strings
└── www/ # Lovelace cards (LitElement) + panel + locales
- Backend is Python. Follow the existing patterns — don't introduce new frameworks or heavy dependencies without discussing it first.
- Cards (
www/taskmate-*-card.js) are LitElement-based. Other frontend code is vanilla JS. Cards read chore/child data from the sensors, not by calling services directly to fetch state.
The repo ships a dev container. Open it in GitHub Codespaces, or in VS Code with
the Dev Containers extension ("Reopen in Container"). Setup installs the test
harness, ruff, ESLint and pre-commit, and creates a scratch HA config at
dev-config/ with the integration symlinked in — so hass -c dev-config gives
you a real Home Assistant on port 8123 with your working copy live.
The fastest loop is a real Home Assistant instance with the integration bind-mounted:
- Mount or copy
custom_components/taskmateinto your HA config'scustom_components/directory. - Restart Home Assistant to pick up Python changes.
- For card (
.js) changes, hard-refresh the browser — the cards are cache-busted by the manifest version, so a hard refresh is needed after JS edits.
Run these locally before pushing:
# Lint and formatting (both match the "Ruff" CI check)
ruff check custom_components/taskmate tests scripts
ruff format --check custom_components/taskmate tests scripts # drop --check to fix
# Cards and panel (both match the "ESLint" CI check)
npm ci && npm run lint
npm test # renders the real cards and presses their buttons
# Tests (matches the "Run tests" CI check)
pytest
# Every locale matches en.json (matches the "Translation parity" CI check)
python3 scripts/check_translations.py
# Blueprints, sentences and packaging metadata parse (matches "Data files")
python3 scripts/check_data_files.py
python3 scripts/split_locales.py --check # drop --check to regenerate the bundlesOr install the hooks once and let them run on commit:
pip install pre-commit
pre-commit install
pre-commit run --all-fileshassfest, HACS validation, dependency review and a workflow-security audit
(zizmor) also run in CI, alongside GitHub's CodeQL code scanning.
TaskMate ships in several languages. Any new user-facing string must be added
to every locale in the same PR — da, de, es, fr, it, ja, ko, nb, nl, nn, pl, pt, pt-BR,
ru, sv, tr, uk, and zh-Hans
(plus the English source). English-only PRs with a "translate later" note will
be asked to include the translations.
Backend strings live in custom_components/taskmate/translations/ and
strings.json; card and panel strings live in www/locales/<lang>.json.
Edit only those files. The browser loads smaller per-screen bundles,
www/locales/<lang>/{cards,editor,panel}.json, which
scripts/split_locales.py generates from them. Run it after changing a locale
and commit the result (the pre-commit hook and pre-commit.ci do this for you);
CI fails if the bundles are stale. Which bundle a key goes in follows from its
name (*.editor.* keys go to the editors, panel./wizard./library./
planner./notify. keys to the admin panel, everything else to the cards),
set by the rules at the top of www/taskmate-localize.js.
This is enforced in CI: scripts/check_translations.py fails the build if any
locale's key set differs from en.json in either catalogue. Run it locally to
see exactly which keys are missing.
- Fork and create a feature branch.
- Make your change, keeping the PR focused on one logical thing.
- Run
ruffandpytestlocally. - Test the change on a real Home Assistant instance.
- Open a PR using the template. Link the issue it closes
(
Closes #123) so it auto-closes on merge. - If your change is release-bound and affects behaviour, bump the
manifest.jsonversion.
A maintainer will review, and may ask for changes. Once it's green and approved, it gets merged.
By participating you agree to abide by our Code of Conduct.