Tracks your daily work time logging in Tempo (Jira) and shows a weekly status card in Home Assistant.
- ✅ Green dot = ≥ 4 hours logged that day
- 🔴 Red ring = today, not enough hours yet
- Shows partial hours inside the dot if something is logged but below threshold
- In HACS → Integrations → ⋮ → Custom repositories
- Add
https://github.com/<your-username>/tempo-worklog-haas type Integration - Install "Tempo Worklog"
- Restart Home Assistant
Copy custom_components/tempo_worklog/ into your HA custom_components/ folder and restart.
Add to configuration.yaml:
sensor:
- platform: tempo_worklog
api_token: !secret tempo_api_token
min_hours: 4 # optional, default 4
name: "Work Time" # optionalAdd to secrets.yaml:
tempo_api_token: "your_tempo_api_token_here"Get your token: Tempo → Settings → API Integration → New Token
Copy www/tempo-worklog-card.js to your HA www/ folder, then add as a resource:
# configuration.yaml or via UI: Settings → Dashboards → Resources
lovelace:
resources:
- url: /local/tempo-worklog-card.js
type: moduleAdd the card to your dashboard:
type: custom:tempo-worklog-card
entity: sensor.tempo_worklog_today
name: Work Time # optional
min_hours: 4 # optional, overrides sensor default| Attribute | Description |
|---|---|
week_days |
List of Mon–Fri with date, day_name, hours, logged, is_today, is_future |
today_logged |
true if today meets the threshold |
days_logged_this_week |
Count of logged days so far this week |
min_hours |
Configured threshold |
week_start_date |
ISO date of Monday |
The sensor state is today's total logged hours (float).