# tempus2016/taskmate architecture

> Architecture diagram of the GitHub repository tempus2016/taskmate, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tempus2016/taskmate
- Repository: https://github.com/tempus2016/taskmate

## Overview

TaskMate is a Home Assistant family chore, points, and rewards integration. The main workflow is parents configure chores and schedules, children complete them, parents approve pending work, and children spend earned points on rewards. Its coordinators cover additional domain features such as teamwork, auctions, inspections, badges, birthdays, notifications, and recaps; Home Assistant entities and the panel/cards surface those capabilities. The graph follows documented workflows and SOURCE INDEX references; unsampled subsystems are included where the README establishes their product role, without guessing their internal calls.

Main entry points: [`custom_components/taskmate/coordinator.py`](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coordinator.py) (Task coordinator), [`custom_components/taskmate/coord_chores.py`](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_chores.py) (Chore scheduling and completion), [`custom_components/taskmate/coord_notifications.py`](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_notifications.py) (Notifications and recaps), [`custom_components/taskmate/coord_inspections.py`](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_inspections.py) (Surprise inspections)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and access"]
  node_configuration["Integration setup<br/>[config_flow.py]"]
  node_access["Authorization<br/>[authz.py]"]
  node_coordinator["Task coordinator<br/>[coordinator.py]"]
  node_storage[("Persistent state<br/>[storage.py]")]
  node_models["Domain models<br/>[models.py]"]
end

subgraph group_chores["Chore management"]
  node_chore_ops["Chore scheduling and completion<br/>[coord_chores.py]"]
  node_teamwork["Teamwork chores<br/>[coord_teamwork.py]"]
  node_calendar["Calendar integration<br/>[calendar.py]"]
  node_proof["Photo proof<br/>[photos.py]"]
end

subgraph group_rewards["Points and rewards"]
  node_points["Points and streaks<br/>[coord_points.py]"]
  node_reward_ops["Reward claims<br/>[coord_rewards.py]"]
  node_wishlist["Wishlist services"]
end

subgraph group_engagement["Family engagement"]
  node_badges["Badges and birthdays<br/>[coord_badges.py]"]
  node_inspections["Surprise inspections"]
  node_notifications["Notifications and recaps"]
  node_notify_text["Notification text<br/>[notify_strings.py]"]
  node_images["Chore images<br/>[images.py]"]
  node_sounds["Sound effects<br/>[sounds.py]"]
end

subgraph group_interfaces["Home Assistant interfaces"]
  node_panel_api["Panel WebSocket API<br/>[websocket.py]"]
  node_panel["Admin panel<br/>[panel.py]"]
  node_cards["Lovelace cards"]
  node_entities["Home Assistant entities<br/>[sensor.py]"]
  node_services["Inspection services"]
end

node_parents(("Parents"))
node_children(("Children"))
node_ha["Home Assistant"]

node_parents -->|"configures"| node_configuration
node_configuration -.->|"registers integration"| node_ha
node_children -->|"complete chores"| node_cards
node_parents -->|"manage family"| node_panel
node_panel -->|"uses commands"| node_panel_api
node_panel_api -->|"requests operations"| node_coordinator
node_coordinator -->|"delegates chores"| node_chore_ops
node_coordinator -->|"delegates teamwork"| node_teamwork
node_coordinator -->|"delegates badges"| node_badges
node_coordinator -->|"delegates inspections"| node_inspections
node_coordinator -->|"delegates notifications"| node_notifications
node_coordinator -.->|"delegates points"| node_points
node_coordinator -->|"delegates rewards"| node_reward_ops
node_coordinator -->|"uses domain types"| node_models
node_chore_ops -->|"records completion"| node_children
node_chore_ops -->|"queues approval"| node_parents
node_chore_ops -->|"uses evidence photos"| node_proof
node_chore_ops -->|"checks team rules"| node_teamwork
node_parents -->|"approves claims"| node_reward_ops
node_children -->|"claims rewards"| node_reward_ops
node_children -->|"earns points"| node_points
node_parents -->|"edits chore calendar"| node_calendar
node_coordinator -->|"uses calendar operations"| node_calendar
node_parents -->|"starts inspections"| node_services
node_services -->|"invokes inspection actions"| node_inspections
node_notifications -->|"renders messages"| node_notify_text
node_children -->|"manages wishes"| node_wishlist
node_wishlist -->|"invokes wish actions"| node_coordinator
node_ha -->|"exposes entities"| node_entities
node_parents -->|"view dashboards"| node_cards
node_access -->|"checks user context"| node_coordinator
node_badges -->|"uses domain types"| node_models
node_inspections -->|"uses domain types"| node_models
node_notifications -->|"uses localized text"| node_notify_text
node_images -->|"adopts uploaded photos"| node_proof

click node_configuration "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/config_flow.py"
click node_access "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/authz.py"
click node_coordinator "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coordinator.py"
click node_storage "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/storage.py"
click node_models "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/models.py"
click node_chore_ops "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_chores.py"
click node_teamwork "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_teamwork.py"
click node_calendar "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/calendar.py"
click node_proof "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/photos.py"
click node_points "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_points.py"
click node_reward_ops "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_rewards.py"
click node_wishlist "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/wishlist_services.py"
click node_badges "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_badges.py"
click node_inspections "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_inspections.py"
click node_notifications "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_notifications.py"
click node_notify_text "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/notify_strings.py"
click node_images "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/images.py"
click node_sounds "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/sounds.py"
click node_panel_api "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/websocket.py"
click node_panel "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/panel.py"
click node_cards "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/www/taskmate-child-card.js"
click node_entities "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/sensor.py"
click node_services "https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/inspection_services.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_configuration,node_access,node_coordinator,node_storage,node_models toneBlue
class node_chore_ops,node_teamwork,node_calendar,node_proof toneAmber
class node_points,node_reward_ops,node_wishlist toneMint
class node_badges,node_inspections,node_notifications,node_notify_text,node_images,node_sounds toneRose
class node_panel_api,node_panel,node_cards,node_entities,node_services,node_parents,node_children,node_ha toneIndigo
```

## Components

### Setup and access

- [Integration setup](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/config_flow.py): `custom_components/taskmate/config_flow.py`
- [Authorization](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/authz.py): `custom_components/taskmate/authz.py`
- [Task coordinator](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coordinator.py): `custom_components/taskmate/coordinator.py`
- [Persistent state](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/storage.py): `custom_components/taskmate/storage.py`
- [Domain models](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/models.py): `custom_components/taskmate/models.py`

### Chore management

- [Chore scheduling and completion](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_chores.py): `custom_components/taskmate/coord_chores.py`
- [Teamwork chores](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_teamwork.py): `custom_components/taskmate/coord_teamwork.py`
- [Calendar integration](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/calendar.py): `custom_components/taskmate/calendar.py`
- [Photo proof](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/photos.py): `custom_components/taskmate/photos.py`

### Points and rewards

- [Points and streaks](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_points.py): `custom_components/taskmate/coord_points.py`
- [Reward claims](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_rewards.py): `custom_components/taskmate/coord_rewards.py`
- [Wishlist services](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/wishlist_services.py): `custom_components/taskmate/wishlist_services.py`

### Family engagement

- [Badges and birthdays](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_badges.py): `custom_components/taskmate/coord_badges.py`
- [Surprise inspections](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_inspections.py): `custom_components/taskmate/coord_inspections.py`
- [Notifications and recaps](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/coord_notifications.py): `custom_components/taskmate/coord_notifications.py`
- [Notification text](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/notify_strings.py): `custom_components/taskmate/notify_strings.py`
- [Chore images](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/images.py): `custom_components/taskmate/images.py`
- [Sound effects](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/sounds.py): `custom_components/taskmate/sounds.py`

### Home Assistant interfaces

- [Panel WebSocket API](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/websocket.py): `custom_components/taskmate/websocket.py`
- [Admin panel](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/panel.py): `custom_components/taskmate/panel.py`
- [Lovelace cards](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/www/taskmate-child-card.js): `custom_components/taskmate/www/taskmate-child-card.js`
- [Home Assistant entities](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/sensor.py): `custom_components/taskmate/sensor.py`
- [Inspection services](https://github.com/tempus2016/taskmate/blob/main/custom_components/taskmate/inspection_services.py): `custom_components/taskmate/inspection_services.py`

### Other components

- **Parents**
- **Children**
- **Home Assistant**

## Connections

- Parents → Integration setup: configures
- Integration setup → Home Assistant: registers integration
- Children → Lovelace cards: complete chores
- Parents → Admin panel: manage family
- Admin panel → Panel WebSocket API: uses commands (evidence: `custom_components/taskmate/websocket.py`)
- Panel WebSocket API → Task coordinator: requests operations (evidence: `custom_components/taskmate/websocket.py`)
- Task coordinator → Chore scheduling and completion: delegates chores (evidence: `custom_components/taskmate/coordinator.py`)
- Task coordinator → Teamwork chores: delegates teamwork (evidence: `custom_components/taskmate/coordinator.py`)
- Task coordinator → Badges and birthdays: delegates badges (evidence: `custom_components/taskmate/coordinator.py`)
- Task coordinator → Surprise inspections: delegates inspections (evidence: `custom_components/taskmate/coordinator.py`)
- Task coordinator → Notifications and recaps: delegates notifications (evidence: `custom_components/taskmate/coordinator.py`)
- Task coordinator → Points and streaks: delegates points (evidence: `custom_components/taskmate/coordinator.py`)
- Task coordinator → Reward claims: delegates rewards (evidence: `custom_components/taskmate/coordinator.py`)
- Task coordinator → Domain models: uses domain types (evidence: `custom_components/taskmate/coordinator.py`)
- Chore scheduling and completion → Children: records completion
- Chore scheduling and completion → Parents: queues approval
- Chore scheduling and completion → Photo proof: uses evidence photos (evidence: `custom_components/taskmate/coord_chores.py`)
- Chore scheduling and completion → Teamwork chores: checks team rules (evidence: `custom_components/taskmate/coord_chores.py`)
- Parents → Reward claims: approves claims
- Children → Reward claims: claims rewards
- Children → Points and streaks: earns points
- Parents → Calendar integration: edits chore calendar
- Task coordinator → Calendar integration: uses calendar operations (evidence: `custom_components/taskmate/calendar.py`)
- Parents → Inspection services: starts inspections (evidence: `custom_components/taskmate/inspection_services.py`)
- Inspection services → Surprise inspections: invokes inspection actions (evidence: `custom_components/taskmate/inspection_services.py`)
- Notifications and recaps → Notification text: renders messages (evidence: `custom_components/taskmate/coord_notifications.py`)
- Children → Wishlist services: manages wishes (evidence: `custom_components/taskmate/wishlist_services.py`)
- Wishlist services → Task coordinator: invokes wish actions (evidence: `custom_components/taskmate/wishlist_services.py`)
- Home Assistant → Home Assistant entities: exposes entities
- Parents → Lovelace cards: view dashboards
- Authorization → Task coordinator: checks user context (evidence: `custom_components/taskmate/authz.py`)
- Badges and birthdays → Domain models: uses domain types (evidence: `custom_components/taskmate/coord_badges.py`)
- Surprise inspections → Domain models: uses domain types (evidence: `custom_components/taskmate/coord_inspections.py`)
- Notifications and recaps → Notification text: uses localized text (evidence: `custom_components/taskmate/coord_notifications.py`)
- Chore images → Photo proof: adopts uploaded photos (evidence: `custom_components/taskmate/images.py`)
